diff options
author | Annop Wongwathanarat <annop.wongwathanarat@gmail.com> | 2023-01-17 17:34:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 09:34:43 -0800 |
commit | 10d5f14c852823e36c06d82cbc0b62218e8c8606 (patch) | |
tree | a04ae1946f8d684bf4beb1cda03c6fcb8057fb98 | |
parent | c0389ab3d077073824792511ef74fff1d79fe384 (diff) | |
download | spack-10d5f14c852823e36c06d82cbc0b62218e8c8606.tar.gz spack-10d5f14c852823e36c06d82cbc0b62218e8c8606.tar.bz2 spack-10d5f14c852823e36c06d82cbc0b62218e8c8606.tar.xz spack-10d5f14c852823e36c06d82cbc0b62218e8c8606.zip |
cp2k: enable linking with armpl-gcc for BLAS and FFT (#34981)
-rw-r--r-- | var/spack/repos/builtin/packages/cp2k/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py index 11d6daad5e..d9bf35874d 100644 --- a/var/spack/repos/builtin/packages/cp2k/package.py +++ b/var/spack/repos/builtin/packages/cp2k/package.py @@ -116,6 +116,7 @@ class Cp2k(MakefilePackage, CudaPackage): depends_on("fftw+openmp", when="^fftw") depends_on("amdfftw+openmp", when="^amdfftw") depends_on("cray-fftw+openmp", when="^cray-fftw") + depends_on("armpl-gcc threads=openmp", when="^armpl-gcc") depends_on("openblas threads=openmp", when="^openblas") # The Cray compiler wrappers will automatically add libsci_mp with # -fopenmp. Since CP2K unconditionally links blas/lapack/scalapack @@ -276,6 +277,9 @@ class Cp2k(MakefilePackage, CudaPackage): elif "^amdfftw" in spec: fftw = spec["amdfftw:openmp" if "+openmp" in spec else "amdfftw"] fftw_header_dir = fftw.headers.directories[0] + elif "^armpl-gcc" in spec: + fftw = spec["armpl-gcc:openmp" if "+openmp" in spec else "armpl-gcc"] + fftw_header_dir = fftw.headers.directories[0] elif "^intel-mkl" in spec: fftw = spec["intel-mkl"] fftw_header_dir = fftw.headers.directories[0] + "/fftw" |