From 26b9592780f09714b36a49424ee84698e1bb8ad5 Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Tue, 7 Apr 2015 22:32:00 -0700 Subject: [PATCH] Add disablement of cpu throttle check. --- var/spack/packages/atlas/package.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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')