qmcpack: enable linking with armpl-gcc and acfl for BLAS and FFT (#34496)

This commit is contained in:
Annop Wongwathanarat 2023-01-20 02:09:12 +00:00 committed by GitHub
parent 6713f7feda
commit a1b0213fcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,6 +270,17 @@ def cmake_args(self):
args.append("-DFFTW_HOME={0}".format(fftw_prefix))
args.append("-DFFTW_INCLUDE_DIRS={0}".format(fftw_prefix.include))
args.append("-DFFTW_LIBRARY_DIRS={0}".format(fftw_prefix.lib))
elif "^armpl-gcc" in spec:
args.append("-DFFTW_LIBRARIES={0}".format(spec["armpl-gcc"].libs.joined(";")))
args.append("-DFFTW_INCLUDE_DIR={0}".format(spec["armpl-gcc"].headers.directories[0]))
elif "^acfl" in spec:
args.append("-DFFTW_LIBRARIES={0}".format(spec["acfl"].libs.joined(";")))
args.append("-DFFTW_INCLUDE_DIR={0}".format(spec["acfl"].headers.directories[0]))
if "^armpl-gcc" in spec:
args.append("-DBLAS_LIBRARIES={0}".format(spec["armpl-gcc"].libs.joined(";")))
elif "^acfl" in spec:
args.append("-DBLAS_LIBRARIES={0}".format(spec["acfl"].libs.joined(";")))
args.append("-DBOOST_ROOT={0}".format(self.spec["boost"].prefix))
args.append("-DHDF5_ROOT={0}".format(self.spec["hdf5"].prefix))