lammps: enable linking with armpl-gcc FFT (#34980)

This commit is contained in:
Annop Wongwathanarat 2023-01-18 19:25:41 +00:00 committed by GitHub
parent f050b1cf78
commit ee3529fc10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -909,6 +909,12 @@ def cmake_args(self):
args.append("-DFFT=MKL")
if "^amdfftw" in spec:
args.append(self.define("FFT", "FFTW3"))
if "^armpl-gcc" in spec:
args.append(self.define("FFT", "FFTW3"))
args.append(self.define("FFTW3_LIBRARY", self.spec["fftw-api"].libs[0]))
args.append(
self.define("FFTW3_INCLUDE_DIR", self.spec["fftw-api"].headers.directories[0])
)
if "^cray-fftw" in spec:
args.append("-DFFT=FFTW3")
# Using the -DFFT_SINGLE setting trades off a little accuracy