octopus: Add pnfft variant (#36492)
This commit is contained in:
parent
e0fb737e8e
commit
a3a9b48ed7
1 changed files with 9 additions and 0 deletions
|
@ -55,6 +55,12 @@ class Octopus(AutotoolsPackage, CudaPackage):
|
||||||
variant("libyaml", default=False, description="Compile with libyaml")
|
variant("libyaml", default=False, description="Compile with libyaml")
|
||||||
variant("elpa", default=False, description="Compile with ELPA")
|
variant("elpa", default=False, description="Compile with ELPA")
|
||||||
variant("nlopt", default=False, description="Compile with nlopt")
|
variant("nlopt", default=False, description="Compile with nlopt")
|
||||||
|
variant(
|
||||||
|
"pnfft",
|
||||||
|
default=False,
|
||||||
|
when="+pfft",
|
||||||
|
description="Compile with PNFFT - Parallel Nonequispaced FFT library",
|
||||||
|
)
|
||||||
variant("debug", default=False, description="Compile with debug flags")
|
variant("debug", default=False, description="Compile with debug flags")
|
||||||
|
|
||||||
depends_on("autoconf", type="build", when="@develop")
|
depends_on("autoconf", type="build", when="@develop")
|
||||||
|
@ -98,6 +104,7 @@ class Octopus(AutotoolsPackage, CudaPackage):
|
||||||
depends_on("pfft", when="+pfft")
|
depends_on("pfft", when="+pfft")
|
||||||
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("nlopt", when="+nlopt")
|
depends_on("nlopt", when="+nlopt")
|
||||||
|
|
||||||
# optional dependencies:
|
# optional dependencies:
|
||||||
|
@ -184,6 +191,8 @@ def configure_args(self):
|
||||||
# args.extend([
|
# args.extend([
|
||||||
# '--with-poke-prefix=%s' % spec['poke'].prefix,
|
# '--with-poke-prefix=%s' % spec['poke'].prefix,
|
||||||
# ])
|
# ])
|
||||||
|
if "+pnfft" in spec:
|
||||||
|
args.append("--with-pnfft-prefix=%s" % spec["pnfft"].prefix)
|
||||||
|
|
||||||
if "+libvdwxc" in spec:
|
if "+libvdwxc" in spec:
|
||||||
args.append("--with-libvdwxc-prefix=%s" % spec["libvdwxc"].prefix)
|
args.append("--with-libvdwxc-prefix=%s" % spec["libvdwxc"].prefix)
|
||||||
|
|
Loading…
Reference in a new issue