diff options
author | Gregory Lee <lee218@llnl.gov> | 2016-12-17 17:04:59 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-12-17 17:04:59 -0800 |
commit | 592df25aefc3a57f8a77a4e75d1f9c3eb957d5ab (patch) | |
tree | 18d2d03fb10745e1d8380613629a5e74b89b52aa | |
parent | 0ef55b831fab41be7efe837a54dae22eeb04562c (diff) | |
download | spack-592df25aefc3a57f8a77a4e75d1f9c3eb957d5ab.tar.gz spack-592df25aefc3a57f8a77a4e75d1f9c3eb957d5ab.tar.bz2 spack-592df25aefc3a57f8a77a4e75d1f9c3eb957d5ab.tar.xz spack-592df25aefc3a57f8a77a4e75d1f9c3eb957d5ab.zip |
build fixes for openblas (#2601)
* build fixes for openblas
* avx2 in openblas nnot supported with older gcc
* merge fix for openblas
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index 86ac38f3b3..d5a70f077b 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -55,6 +55,8 @@ class Openblas(MakefilePackage): # https://github.com/xianyi/OpenBLAS/pull/915 patch('openblas_icc.patch', when='%intel') + parallel = False + @property def blas_libs(self): shared = True if '+shared' in self.spec else False @@ -90,11 +92,14 @@ class Openblas(MakefilePackage): # When mixing compilers make sure that # $SPACK_ROOT/lib/spack/env/<compiler> have symlinks with reasonable # names and hack them inside lib/spack/spack/compilers/<compiler>.py + make_defs = [ 'CC={0}'.format(spack_cc), 'FC={0}'.format(spack_f77), 'MAKE_NO_J=1' ] + if self.spec.satisfies('%gcc@:4.8.4'): + make_defs += ['NO_AVX2=1'] if '~shared' in self.spec: if '+pic' in self.spec: make_defs.extend([ |