diff options
author | downloadico <download@carc.unm.edu> | 2021-07-30 03:33:42 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 11:33:42 +0200 |
commit | 72acc54d8471b953025e4c690c4919e0475dcec0 (patch) | |
tree | 7cf42724a90d65f4edd4b98ccb1dd8dd63e7d8cf /var | |
parent | 711ed176063f28faee9632f4d41a700b1a0e7f29 (diff) | |
download | spack-72acc54d8471b953025e4c690c4919e0475dcec0.tar.gz spack-72acc54d8471b953025e4c690c4919e0475dcec0.tar.bz2 spack-72acc54d8471b953025e4c690c4919e0475dcec0.tar.xz spack-72acc54d8471b953025e4c690c4919e0475dcec0.zip |
octopus: add cuda variant (#25126)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/octopus/package.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/octopus/package.py b/var/spack/repos/builtin/packages/octopus/package.py index d5aa933ff3..20236119ad 100644 --- a/var/spack/repos/builtin/packages/octopus/package.py +++ b/var/spack/repos/builtin/packages/octopus/package.py @@ -8,7 +8,7 @@ import llnl.util.tty as tty from spack import * -class Octopus(Package): +class Octopus(Package, CudaPackage): """A real-space finite-difference (time-dependent) density-functional theory code.""" @@ -114,10 +114,15 @@ class Octopus(Package): '--with-scalapack=%s' % spec['scalapack'].libs ]) - # --with-etsf-io-prefix= - # --with-sparskit=${prefix}/lib/libskit.a - # --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix} - # --with-berkeleygw-prefix=${prefix} + if '+cuda' in spec: + args.extend([ + '--enable-cuda' + ]) + + # --with-etsf-io-prefix= + # --with-sparskit=${prefix}/lib/libskit.a + # --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix} + # --with-berkeleygw-prefix=${prefix} # When preprocessor expands macros (i.e. CFLAGS) defined as quoted # strings the result may be > 132 chars and is terminated. |