Added bgq architecture subclass: may require additional functionality to support

This commit is contained in:
Gregory Becker 2015-11-05 09:21:56 -08:00
parent b61d554dc8
commit 08729315c6

View 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')