Added compiler strategy entry and also added new operating system subclass called CNL for compute node linux (name will probably change because I can't find docs on the EXACT name)

This commit is contained in:
Mario Melara 2016-02-22 16:17:33 -08:00
parent ebc5e26c2d
commit 3c87d137a3
3 changed files with 33 additions and 6 deletions

View File

@ -0,0 +1,20 @@
import spack
from spack.architecture import OperatingSystem
class ComputeNodeLinux(OperatingSystem):
""" Compute Node Linux (CNL) is the operating system used for the Cray XC
series super computers. It is a very stripped down version of GNU/Linux.
Any compilers found through this operating system will be used with
modules. If updated, user must make sure that version and name are
updated to indicate that OS has been upgraded (or downgraded)
"""
def __init__(self):
name = 'CNL'
version = '10'
super(ComputeNodeLinux, self).__init__(name, version, "MODULES")
def compiler_strategy(self):
return self.compiler_strategy
def find_compilers(self):
pass

View File

@ -17,9 +17,13 @@ def detect_operating_system():
name, version = detect_operating_system()
super(LinuxDistro, self).__init__(name, version)
super(LinuxDistro, self).__init__(name, version, "PATH")
@property
def compiler_strategy(self):
return "PATH"
return self.compiler_strategy
def find_compilers(self):
pass

View File

@ -34,11 +34,14 @@ def get_mac_release():
name, version = get_mac_release()
super(MacOSX, self).__init__(name, version)
super(MacOSX, self).__init__(name, version, "PATH")
@property
def compiler_strategy(self):
return "PATH"
return self.compiler_strategy
def find_compilers(self):
pass