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:
parent
ebc5e26c2d
commit
3c87d137a3
20
lib/spack/spack/operating_system/cnl.py
Normal file
20
lib/spack/spack/operating_system/cnl.py
Normal 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
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user