summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-02-16 15:23:38 -0800
committerMario Melara <maamelara@gmail.com>2016-02-16 15:23:38 -0800
commit62b0293963bd21ff734993e5ac577650af0faa3f (patch)
treec1459a2753e01454374c8cb5bb9154e66dd7485c /lib
parent31ab2383067830e47d54788a2cac01f949e77798 (diff)
downloadspack-62b0293963bd21ff734993e5ac577650af0faa3f.tar.gz
spack-62b0293963bd21ff734993e5ac577650af0faa3f.tar.bz2
spack-62b0293963bd21ff734993e5ac577650af0faa3f.tar.xz
spack-62b0293963bd21ff734993e5ac577650af0faa3f.zip
Cleaned up the file. Got rid of commented out sections of code since they weren't going to be used anyway
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/platforms/cray_xc.py28
1 files changed, 13 insertions, 15 deletions
diff --git a/lib/spack/spack/platforms/cray_xc.py b/lib/spack/spack/platforms/cray_xc.py
index b37d36a62c..d48b6ffcfa 100644
--- a/lib/spack/spack/platforms/cray_xc.py
+++ b/lib/spack/spack/platforms/cray_xc.py
@@ -17,7 +17,7 @@ class CrayXc(Platform):
if we use CRAY_CPU_TARGET as the default. This will ensure
that if we're on a XC-40 or XC-30 then we can detect the target
'''
- super(CrayXc, self).__init__('cray_xc')
+ super(CrayXc, self).__init__('crayxc')
# Handle the default here so we can check for a key error
if 'CRAY_CPU_TARGET' in os.environ:
@@ -28,23 +28,21 @@ class CrayXc(Platform):
self.front_end = self.default
self.back_end = self.default
-
# Could switch to use modules and fe targets for front end
# Currently using compilers by path for front end.
self.add_target('sandybridge', Target('sandybridge', 'PATH'))
- self.add_target('ivybridge', Target('ivybridge', 'MODULES', 'craype-ivybridge'))
- self.add_target('haswell', Target('haswell', 'MODULES', 'craype-haswell'))
-
- self.add_operating_system('SuSE11', OperatingSystem('SuSE11', '11'))
- self.add_operating_system('GNU/Linux', OperatingSystem('GNU/Linux', '10'))
-
-# self.add_target(self.front_end, Target(self.front_end, 'PATH'))
- # Back End compiler needs the proper target module loaded.
-# self.add_target(self.back_end, Target(self.front_end, 'MODULES', 'craype-'+ self.back_end))
-# self.add_target(self.default, Target(self.default, 'MODULES', 'craype-' + self.default))
- # This is kludgy and the order matters when the targets are all haswell
- # This is because the last one overwrites the others when they have the
- # same name.
+
+ self.add_target('ivybridge',
+ Target('ivybridge', 'MODULES', 'craype-ivybridge'))
+
+ self.add_target('haswell',
+ Target('haswell', 'MODULES', 'craype-haswell'))
+
+ self.add_operating_system('SuSE11',
+ OperatingSystem('SuSE11', '11'))
+
+ self.add_operating_system('GNU/Linux',
+ OperatingSystem('GNU/Linux', '10'))
@classmethod
def detect(self):