summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2022-01-05 15:47:40 +0100
committerGitHub <noreply@github.com>2022-01-05 15:47:40 +0100
commit89d35903004892cdf2f8a8e2bf3df64dc4895a9e (patch)
treec686bd4c3ff5424ed8986eedfe7112063df071f8 /var
parent0f74b7ec440705dcaf465f7525b35e426686c938 (diff)
downloadspack-89d35903004892cdf2f8a8e2bf3df64dc4895a9e.tar.gz
spack-89d35903004892cdf2f8a8e2bf3df64dc4895a9e.tar.bz2
spack-89d35903004892cdf2f8a8e2bf3df64dc4895a9e.tar.xz
spack-89d35903004892cdf2f8a8e2bf3df64dc4895a9e.zip
sirius, spfft: make rocm arch variants conditional (#28251)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/sirius/package.py2
-rw-r--r--var/spack/repos/builtin/packages/spfft/package.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/sirius/package.py b/var/spack/repos/builtin/packages/sirius/package.py
index b5ce00d1f8..c79d8adacb 100644
--- a/var/spack/repos/builtin/packages/sirius/package.py
+++ b/var/spack/repos/builtin/packages/sirius/package.py
@@ -71,7 +71,7 @@ class Sirius(CMakePackage, CudaPackage):
variant('magma', default=False, description="Enable MAGMA support")
variant('nlcglib', default=False, description="enable robust wave function optimization")
variant('rocm', default=False, description='Use ROCm GPU support')
- variant('amdgpu_target', default='gfx803,gfx900,gfx906', multi=True, values=amdgpu_targets)
+ variant('amdgpu_target', default='gfx803,gfx900,gfx906', multi=True, values=amdgpu_targets, when='+rocm')
variant('build_type', default='Release',
description='CMake build type',
values=('Debug', 'Release', 'RelWithDebInfo'))
diff --git a/var/spack/repos/builtin/packages/spfft/package.py b/var/spack/repos/builtin/packages/spfft/package.py
index 7629c9c1e2..a42c3ce048 100644
--- a/var/spack/repos/builtin/packages/spfft/package.py
+++ b/var/spack/repos/builtin/packages/spfft/package.py
@@ -55,7 +55,7 @@ class Spfft(CMakePackage, CudaPackage):
depends_on('rocfft', when='+rocm')
depends_on('hip', when='+rocm')
- variant('amdgpu_target', default='gfx803,gfx900,gfx906', multi=True, values=amdgpu_targets)
+ variant('amdgpu_target', default='gfx803,gfx900,gfx906', multi=True, values=amdgpu_targets, when='+rocm')
depends_on('cuda@:10', when='@:0.9.11 +cuda')