octopus: add cuda variant (#25126)
This commit is contained in:
parent
711ed17606
commit
72acc54d84
@ -8,7 +8,7 @@
|
|||||||
from spack import *
|
from spack import *
|
||||||
|
|
||||||
|
|
||||||
class Octopus(Package):
|
class Octopus(Package, CudaPackage):
|
||||||
"""A real-space finite-difference (time-dependent) density-functional
|
"""A real-space finite-difference (time-dependent) density-functional
|
||||||
theory code."""
|
theory code."""
|
||||||
|
|
||||||
@ -114,6 +114,11 @@ def install(self, spec, prefix):
|
|||||||
'--with-scalapack=%s' % spec['scalapack'].libs
|
'--with-scalapack=%s' % spec['scalapack'].libs
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if '+cuda' in spec:
|
||||||
|
args.extend([
|
||||||
|
'--enable-cuda'
|
||||||
|
])
|
||||||
|
|
||||||
# --with-etsf-io-prefix=
|
# --with-etsf-io-prefix=
|
||||||
# --with-sparskit=${prefix}/lib/libskit.a
|
# --with-sparskit=${prefix}/lib/libskit.a
|
||||||
# --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix}
|
# --with-pfft-prefix=${prefix} --with-mpifftw-prefix=${prefix}
|
||||||
|
Loading…
Reference in New Issue
Block a user