summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/kokkos/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kokkos/package.py b/var/spack/repos/builtin/packages/kokkos/package.py
index 22fa7709e2..1d8a41c22d 100644
--- a/var/spack/repos/builtin/packages/kokkos/package.py
+++ b/var/spack/repos/builtin/packages/kokkos/package.py
@@ -217,6 +217,11 @@ class Kokkos(CMakePackage, CudaPackage, ROCmPackage):
def cmake_args(self):
spec = self.spec
+
+ if spec.satisfies('~wrapper+cuda') and not spec.satisfies('%clang'):
+ raise InstallError("Kokkos requires +wrapper when using +cuda"
+ "without clang")
+
options = []
isdiy = "+diy" in spec