From a3a9b48ed72f4e4eb8f3f00c898fd28775b03337 Mon Sep 17 00:00:00 2001 From: Ashwin Kumar Karnad <46030335+iamashwin99@users.noreply.github.com> Date: Tue, 28 Mar 2023 22:50:36 +0200 Subject: [PATCH] octopus: Add pnfft variant (#36492) --- var/spack/repos/builtin/packages/octopus/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 @@ def configure_args(self): # 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)