summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnop Wongwathanarat <annop.wongwathanarat@gmail.com>2022-11-08 15:44:03 +0000
committerGitHub <noreply@github.com>2022-11-08 08:44:03 -0700
commite4c2d1afc6952426ce148e439d781881f38b6cfe (patch)
treeb78f0f08c31c7eb77b40063ad37107211feac956
parent89976af732a3055dbc6b2bfe3fae057e58e1293f (diff)
downloadspack-e4c2d1afc6952426ce148e439d781881f38b6cfe.tar.gz
spack-e4c2d1afc6952426ce148e439d781881f38b6cfe.tar.bz2
spack-e4c2d1afc6952426ce148e439d781881f38b6cfe.tar.xz
spack-e4c2d1afc6952426ce148e439d781881f38b6cfe.zip
gromacs: enable linking with armpl-gcc FFT (#33750)
-rw-r--r--var/spack/repos/builtin/packages/gromacs/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gromacs/package.py b/var/spack/repos/builtin/packages/gromacs/package.py
index 52e66ee4cd..95bc7dab98 100644
--- a/var/spack/repos/builtin/packages/gromacs/package.py
+++ b/var/spack/repos/builtin/packages/gromacs/package.py
@@ -489,6 +489,13 @@ class Gromacs(CMakePackage):
options.append(
"-DFFTWF_LIBRARIES={0}".format(self.spec["amdfftw"].libs.joined(";"))
)
+ elif "^armpl-gcc" in self.spec:
+ options.append(
+ "-DFFTWF_INCLUDE_DIR={0}".format(self.spec["armpl-gcc"].headers.directories[0])
+ )
+ options.append(
+ "-DFFTWF_LIBRARY={0}".format(self.spec["armpl-gcc"].libs.joined(";"))
+ )
# Ensure that the GROMACS log files report how the code was patched
# during the build, so that any problems are easier to diagnose.