architectures folder where the Architecture subclasses reside
This commit is contained in:
parent
6e56070386
commit
db0695e46a
0
lib/spack/spack/architectures/__init__.py
Normal file
0
lib/spack/spack/architectures/__init__.py
Normal file
17
lib/spack/spack/architectures/cray.py
Normal file
17
lib/spack/spack/architectures/cray.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
import os
|
||||||
|
|
||||||
|
from spack.architecture import Architecture
|
||||||
|
|
||||||
|
class Cray(Architecture):
|
||||||
|
priority = 20
|
||||||
|
front_end = None
|
||||||
|
back_end = None
|
||||||
|
default = None
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
super(Cray, self).__init__('cray')
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def detect(self):
|
||||||
|
return os.path.exists('/opt/cray/craype')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user