octopus: Add NFFT variant (#36489)

This commit is contained in:
Ashwin Kumar Karnad 2023-03-30 18:04:29 +02:00 committed by GitHub
parent 906a8c56af
commit e356390575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,11 @@ class Octopus(AutotoolsPackage, CudaPackage):
variant("arpack", default=False, description="Compile with ARPACK") variant("arpack", default=False, description="Compile with ARPACK")
variant("cgal", default=False, description="Compile with CGAL library support") variant("cgal", default=False, description="Compile with CGAL library support")
variant("pfft", default=False, when="+mpi", description="Compile with PFFT") variant("pfft", default=False, when="+mpi", description="Compile with PFFT")
variant(
"nfft",
default=False,
description="Compile with NFFT - Nonequispaced Fast Fourier Transform library",
)
# poke here refers to https://gitlab.e-cam2020.eu/esl/poke # poke here refers to https://gitlab.e-cam2020.eu/esl/poke
# variant('poke', default=False, # variant('poke', default=False,
# description='Compile with poke (not available in spack yet)') # description='Compile with poke (not available in spack yet)')
@ -102,6 +107,7 @@ class Octopus(AutotoolsPackage, CudaPackage):
depends_on("scalapack", when="+scalapack") depends_on("scalapack", when="+scalapack")
depends_on("cgal", when="+cgal") depends_on("cgal", when="+cgal")
depends_on("pfft", when="+pfft") depends_on("pfft", when="+pfft")
depends_on("nfft@3.2.4", when="+nfft")
depends_on("likwid", when="+likwid") depends_on("likwid", when="+likwid")
depends_on("libyaml", when="+libyaml") depends_on("libyaml", when="+libyaml")
depends_on("pnfft", when="+pnfft") depends_on("pnfft", when="+pnfft")
@ -190,6 +196,9 @@ def configure_args(self):
if "+pfft" in spec: if "+pfft" in spec:
args.append("--with-pfft-prefix=%s" % spec["pfft"].prefix) args.append("--with-pfft-prefix=%s" % spec["pfft"].prefix)
if "+nfft" in spec:
args.append("--with-nfft=%s" % spec["nfft"].prefix)
# if '+poke' in spec: # if '+poke' in spec:
# args.extend([ # args.extend([
# '--with-poke-prefix=%s' % spec['poke'].prefix, # '--with-poke-prefix=%s' % spec['poke'].prefix,