summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2016-01-07 13:01:05 -0800
committerGregory Becker <becker33@llnl.gov>2016-01-07 13:01:05 -0800
commit53d4f82ce1863d0871f53a7e20b75d73b8d4fad6 (patch)
treeab57974e2aea6f22784aea26cba2fc4601d7d534 /lib
parent83917c4c302851a0d4ff91ef652fdd1b26fb1e08 (diff)
downloadspack-53d4f82ce1863d0871f53a7e20b75d73b8d4fad6.tar.gz
spack-53d4f82ce1863d0871f53a7e20b75d73b8d4fad6.tar.bz2
spack-53d4f82ce1863d0871f53a7e20b75d73b8d4fad6.tar.xz
spack-53d4f82ce1863d0871f53a7e20b75d73b8d4fad6.zip
Improved cray architecture class
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/platforms/cray_xc.py (renamed from lib/spack/spack/platforms/cray.py)13
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/spack/spack/platforms/cray.py b/lib/spack/spack/platforms/cray_xc.py
index 815a9aea98..e3adb182ea 100644
--- a/lib/spack/spack/platforms/cray.py
+++ b/lib/spack/spack/platforms/cray_xc.py
@@ -2,7 +2,7 @@ import os
from spack.architecture import Platform, Target
-class Cray(Platform):
+class CrayXc(Platform):
priority = 20
front_end = 'sandybridge'
back_end = 'ivybridge'
@@ -13,7 +13,7 @@ class Cray(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(Cray, self).__init__('cray')
+ super(CrayXc, self).__init__('cray_xc')
# Handle the default here so we can check for a key error
if 'CRAY_CPU_TARGET' in os.environ:
@@ -24,12 +24,17 @@ class Cray(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(self.front_end, Target(self.front_end, 'PATH'))
+ 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_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))
+# 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.