summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2021-02-20 00:47:55 -0800
committerGitHub <noreply@github.com>2021-02-20 09:47:55 +0100
commitaa01123bbae9c747d4f76c7251a6609762a0cfb2 (patch)
tree221888c83c037c4e51b4ea0f27013541eed96205
parentf65e6ae4e6d2cea11a4143518f8b7f951238ed77 (diff)
downloadspack-aa01123bbae9c747d4f76c7251a6609762a0cfb2.tar.gz
spack-aa01123bbae9c747d4f76c7251a6609762a0cfb2.tar.bz2
spack-aa01123bbae9c747d4f76c7251a6609762a0cfb2.tar.xz
spack-aa01123bbae9c747d4f76c7251a6609762a0cfb2.zip
VTK-m: fixed inconsistencies in directives (#21820)
* VTK-m: No `pic` variant A leftover conflict between `shared` and `pic` variants, the latter is not part of the package anymore, leads to a solver error with clingo. This removes the outdated conflict section. * VTK-m: Kokkos AMD GPU variant changed
-rw-r--r--var/spack/repos/builtin/packages/vtk-m/package.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/vtk-m/package.py b/var/spack/repos/builtin/packages/vtk-m/package.py
index 1b1536e03b..fa5e5babfd 100644
--- a/var/spack/repos/builtin/packages/vtk-m/package.py
+++ b/var/spack/repos/builtin/packages/vtk-m/package.py
@@ -61,11 +61,6 @@ class VtkM(CMakePackage, CudaPackage):
amdgpu_targets = (
'gfx900', 'gfx906', 'gfx908'
)
- kokkos_amd_gpu_map = {
- 'gfx900': 'vega900',
- 'gfx906': 'vega906',
- 'gfx908': 'vega908'
- }
variant('amdgpu_target', default='none', multi=True, values=('none',) + amdgpu_targets)
conflicts("+hip", when="amdgpu_target=none")
@@ -77,14 +72,13 @@ class VtkM(CMakePackage, CudaPackage):
depends_on("tbb", when="+tbb")
depends_on("mpi", when="+mpi")
- for kokkos_value in kokkos_amd_gpu_map:
- depends_on("kokkos@develop +hip amd_gpu_arch=%s" % kokkos_amd_gpu_map[kokkos_value], when="amdgpu_target=%s" % kokkos_value)
+ for amdgpu_value in amdgpu_targets:
+ depends_on("kokkos@develop +rocm amdgpu_target=%s" % amdgpu_value, when="amdgpu_target=%s" % amdgpu_value)
depends_on("rocm-cmake@3.7:", when="+hip")
depends_on("hip@3.7:", when="+hip")
conflicts("+hip", when="+cuda")
- conflicts("~shared", when="~pic")
def cmake_args(self):
spec = self.spec