fixed flake errors
This commit is contained in:
parent
26d1ddc176
commit
0d18f7249c
@ -4,6 +4,7 @@
|
|||||||
from spack.operating_systems.cnl import Cnl
|
from spack.operating_systems.cnl import Cnl
|
||||||
from spack.util.executable import which
|
from spack.util.executable import which
|
||||||
|
|
||||||
|
|
||||||
class CrayXc(Platform):
|
class CrayXc(Platform):
|
||||||
priority = 20
|
priority = 20
|
||||||
front_end = 'sandybridge'
|
front_end = 'sandybridge'
|
||||||
@ -47,7 +48,9 @@ def __init__(self):
|
|||||||
def detect(self):
|
def detect(self):
|
||||||
try:
|
try:
|
||||||
cc_verbose = which('ftn')
|
cc_verbose = which('ftn')
|
||||||
text = cc_verbose('-craype-verbose', output=str, error=str, ignore_errors=True).split()
|
text = cc_verbose('-craype-verbose',
|
||||||
|
output=str, error=str,
|
||||||
|
ignore_errors=True).split()
|
||||||
if '-D__CRAYXC' in text:
|
if '-D__CRAYXC' in text:
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user