Added bgq architecture subclass: may require additional functionality to support
This commit is contained in:
parent
b61d554dc8
commit
08729315c6
1 changed files with 19 additions and 0 deletions
19
lib/spack/spack/architectures/bgq.py
Normal file
19
lib/spack/spack/architectures/bgq.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
import os
|
||||||
|
|
||||||
|
from spack.architecture import Architecture, Target
|
||||||
|
|
||||||
|
class Bgq(Architecture):
|
||||||
|
priority = 30
|
||||||
|
front_end = 'power7'
|
||||||
|
back_end = 'powerpc'
|
||||||
|
default = 'powerpc'
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
super(Bgq, self).__init__('cray')
|
||||||
|
self.add_target('power7', Target('power7'))
|
||||||
|
self.add_target('powerpc', Target('powerpc'))
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def detect(self):
|
||||||
|
return os.path.exists('/bgsys')
|
||||||
|
|
Loading…
Reference in a new issue