diff options
author | healther <healther@users.noreply.github.com> | 2017-09-21 21:28:24 +0200 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-09-21 12:28:24 -0700 |
commit | bce26745e30386ef9a2aa71a8c99ee9d353843ed (patch) | |
tree | 749e5a7c31058b23cce45215278340879afde072 | |
parent | f39fa2fee948590ac4c895c1339f41eac9ebd575 (diff) | |
download | spack-bce26745e30386ef9a2aa71a8c99ee9d353843ed.tar.gz spack-bce26745e30386ef9a2aa71a8c99ee9d353843ed.tar.bz2 spack-bce26745e30386ef9a2aa71a8c99ee9d353843ed.tar.xz spack-bce26745e30386ef9a2aa71a8c99ee9d353843ed.zip |
Add cpu_target variant to openblas (#5090)
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index d8b52a43cd..56d9ee821a 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -51,6 +51,10 @@ class Openblas(MakefilePackage): variant('openmp', default=False, description="Enable OpenMP support.") variant('pic', default=True, description='Build position independent code') + variant('cpu_target', default='', + description='Set CPU target architecture (leave empty for ' + 'autodetection; GENERIC, SSE_GENERIC, NEHALEM, ...)') + # virtual dependency provides('blas') provides('lapack') @@ -108,8 +112,12 @@ class Openblas(MakefilePackage): 'FC={0}'.format(spack_f77), 'MAKE_NO_J=1' ] + if self.spec.variants['cpu_target'].value: + make_defs += [ + 'TARGET={0}'.format(self.spec.variants['cpu_target'].value) + ] # invoke make with the correct TARGET for aarch64 - if 'aarch64' in spack.architecture.sys_type(): + elif 'aarch64' in spack.architecture.sys_type(): make_defs += [ 'TARGET=PILEDRIVER', 'TARGET=ARMV8' |