diff options
author | Diana Bite <diana.bite@arm.com> | 2017-06-15 12:38:24 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-06-15 06:38:24 -0500 |
commit | a9a780562610e32b854c94864d4736252261759e (patch) | |
tree | 244c5d7cf20ab197c78b886d824f60133facc03b /var/spack | |
parent | 41e4a034ffd89b6e31411a00ad765e7f936dc3ab (diff) | |
download | spack-a9a780562610e32b854c94864d4736252261759e.tar.gz spack-a9a780562610e32b854c94864d4736252261759e.tar.bz2 spack-a9a780562610e32b854c94864d4736252261759e.tar.xz spack-a9a780562610e32b854c94864d4736252261759e.zip |
openblas: Fix build on aarch64. (#4487)
- invoke make with the correct TARGET for aarch64
- foforce PILERDRIVER as openblas cannot correctly detect CPU on aarch64
- update url to more recent version
Diffstat (limited to 'var/spack')
-rw-r--r-- | var/spack/repos/builtin/packages/openblas/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/openblas/package.py b/var/spack/repos/builtin/packages/openblas/package.py index 4ebb38aa7a..5353bdcc48 100644 --- a/var/spack/repos/builtin/packages/openblas/package.py +++ b/var/spack/repos/builtin/packages/openblas/package.py @@ -24,13 +24,14 @@ ############################################################################## from spack import * from spack.package_test import * +import spack.architecture import os class Openblas(MakefilePackage): """OpenBLAS: An optimized BLAS library""" homepage = 'http://www.openblas.net' - url = 'http://github.com/xianyi/OpenBLAS/archive/v0.2.15.tar.gz' + url = 'http://github.com/xianyi/OpenBLAS/archive/v0.2.19.tar.gz' version('0.2.19', '28c998054fd377279741c6f0b9ea7941') version('0.2.18', '805e7f660877d588ea7e3792cda2ee65') @@ -97,6 +98,12 @@ class Openblas(MakefilePackage): 'FC={0}'.format(spack_f77), 'MAKE_NO_J=1' ] + # invoke make with the correct TARGET for aarch64 + if 'aarch64' in spack.architecture.sys_type(): + make_defs += [ + 'TARGET=PILEDRIVER', + 'TARGET=ARMV8' + ] if self.spec.satisfies('%gcc@:4.8.4'): make_defs += ['NO_AVX2=1'] if '~shared' in self.spec: |