summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/packages/atlas/package.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/var/spack/packages/atlas/package.py b/var/spack/packages/atlas/package.py
index 7ee85f7f16..fc0a1a7e67 100644
--- a/var/spack/packages/atlas/package.py
+++ b/var/spack/packages/atlas/package.py
@@ -16,10 +16,22 @@ class Atlas(Package):
version('3.10.2', 'a4e21f343dec8f22e7415e339f09f6da')
+ def patch(self):
+ # Disable thraed check. LLNL's environment does not allow
+ # disabling of CPU throttling in a way that ATLAS actually
+ # understands.
+ filter_file(r'^\s+if \(thrchk\) exit\(1\);', 'if (0) exit(1);',
+ 'CONFIG/src/config.c')
+ # TODO: investigate a better way to add the check back in
+ # TODO: using, say, MSRs. Or move this to a variant.
+
def install(self, spec, prefix):
with working_dir('ATLAS-Build', create=True):
self.module.configure = Executable('../configure')
- configure("--prefix=%s" % prefix)
+ configure('--prefix=%s' % prefix,
+ '-C', 'ic', 'cc',
+ '-C', 'if', 'f77',
+ "--dylibs")
make()
make('check')