diff options
author | Ashwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com> | 2023-03-28 22:50:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 13:50:36 -0700 |
commit | a3a9b48ed72f4e4eb8f3f00c898fd28775b03337 (patch) | |
tree | 0f20e402036325861d1711abc95d6302334a211f | |
parent | e0fb737e8e030c423eb407224c6bbd0c06771338 (diff) | |
download | spack-a3a9b48ed72f4e4eb8f3f00c898fd28775b03337.tar.gz spack-a3a9b48ed72f4e4eb8f3f00c898fd28775b03337.tar.bz2 spack-a3a9b48ed72f4e4eb8f3f00c898fd28775b03337.tar.xz spack-a3a9b48ed72f4e4eb8f3f00c898fd28775b03337.zip |
octopus: Add pnfft variant (#36492)
-rw-r--r-- | var/spack/repos/builtin/packages/octopus/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py index cb7e63c956..3ec5b6673a 100644 --- a/var/spack/repos/builtin/packages/octopus/package.py +++ b/var/spack/repos/builtin/packages/octopus/package.py @@ -55,6 +55,12 @@ class Octopus(AutotoolsPackage, CudaPackage): variant("libyaml", default=False, description="Compile with libyaml") variant("elpa", default=False, description="Compile with ELPA") 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") depends_on("autoconf", type="build", when="@develop") @@ -98,6 +104,7 @@ class Octopus(AutotoolsPackage, CudaPackage): depends_on("pfft", when="+pfft") depends_on("likwid", when="+likwid") depends_on("libyaml", when="+libyaml") + depends_on("pnfft", when="+pnfft") depends_on("nlopt", when="+nlopt") # optional dependencies: @@ -184,6 +191,8 @@ class Octopus(AutotoolsPackage, CudaPackage): # args.extend([ # '--with-poke-prefix=%s' % spec['poke'].prefix, # ]) + if "+pnfft" in spec: + args.append("--with-pnfft-prefix=%s" % spec["pnfft"].prefix) if "+libvdwxc" in spec: args.append("--with-libvdwxc-prefix=%s" % spec["libvdwxc"].prefix) |