diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-04-07 22:32:00 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-06-06 18:19:05 -0700 |
commit | 26b9592780f09714b36a49424ee84698e1bb8ad5 (patch) | |
tree | 194ade88161698b1e9ff3cfd82bc592eb6d682c3 | |
parent | 8b9dcfe6359ac0ba044906549dccc5e2e6275c09 (diff) | |
download | spack-26b9592780f09714b36a49424ee84698e1bb8ad5.tar.gz spack-26b9592780f09714b36a49424ee84698e1bb8ad5.tar.bz2 spack-26b9592780f09714b36a49424ee84698e1bb8ad5.tar.xz spack-26b9592780f09714b36a49424ee84698e1bb8ad5.zip |
Add disablement of cpu throttle check.
-rw-r--r-- | var/spack/packages/atlas/package.py | 14 |
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') |