Got rid of the compiler strategy from target

This commit is contained in:
Mario Melara 2016-03-02 12:08:43 -08:00
parent 47c8e1366f
commit 90e90f61c1
4 changed files with 7 additions and 7 deletions

View file

@ -9,8 +9,8 @@ class Bgq(Platform):
def __init__(self): def __init__(self):
super(Bgq, self).__init__('bgq') super(Bgq, self).__init__('bgq')
self.add_target(self.front_end, Target(self.front_end, 'PATH')) self.add_target(self.front_end, Target(self.front_end))
self.add_target(self.back_end, Target(self.back_end, 'PATH')) self.add_target(self.back_end, Target(self.back_end,))
@classmethod @classmethod
def detect(self): def detect(self):

View file

@ -31,11 +31,11 @@ def __init__(self):
# Could switch to use modules and fe targets for front end # Could switch to use modules and fe targets for front end
# Currently using compilers by path for front end. # Currently using compilers by path for front end.
self.add_target('sandybridge', Target('sandybridge', 'PATH')) self.add_target('sandybridge', Target('sandybridge'))
self.add_target('ivybridge', self.add_target('ivybridge',
Target('ivybridge', 'MODULES', 'craype-ivybridge')) Target('ivybridge', 'craype-ivybridge'))
self.add_target('haswell', self.add_target('haswell',
Target('haswell', 'MODULES', 'craype-haswell')) Target('haswell','craype-haswell'))
self.add_operating_system('SuSE', LinuxDistro()) self.add_operating_system('SuSE', LinuxDistro())
self.add_operating_system('CNL', Cnl()) self.add_operating_system('CNL', Cnl())

View file

@ -10,7 +10,7 @@ class Darwin(Platform):
def __init__(self): def __init__(self):
super(Darwin, self).__init__('darwin') super(Darwin, self).__init__('darwin')
self.add_target(self.default, Target(self.default, 'PATH')) self.add_target(self.default, Target(self.default))
mac_os = MacOsx() mac_os = MacOsx()
self.default_os = mac_os.name self.default_os = mac_os.name
self.add_operating_system(mac_os.name, mac_os) self.add_operating_system(mac_os.name, mac_os)

View file

@ -10,7 +10,7 @@ class Linux(Platform):
def __init__(self): def __init__(self):
super(Linux, self).__init__('linux') super(Linux, self).__init__('linux')
self.add_target(self.default, Target(self.default, 'PATH')) self.add_target(self.default, Target(self.default))
linux_dist = LinuxDistro() linux_dist = LinuxDistro()
self.default_os = linux_dist.name self.default_os = linux_dist.name
self.add_operating_system(linux_dist.name, linux_dist) self.add_operating_system(linux_dist.name, linux_dist)