Skip to content

Commit f3010b0

Browse files
authored
kokkos: fix host backend requirement (spack#2397)
1 parent cd94661 commit f3010b0

File tree

1 file changed

+3
-1
lines changed
  • repos/spack_repo/builtin/packages/kokkos

1 file changed

+3
-1
lines changed

repos/spack_repo/builtin/packages/kokkos/package.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ class Kokkos(CMakePackage, CudaPackage, ROCmPackage):
9494
"sycl": [False, "Whether to build the SYCL backend"],
9595
"openmptarget": [False, "Whether to build the OpenMPTarget backend"],
9696
}
97-
requires("+serial", when="~openmp ~threads", msg="Kokkos requires at least one host backend")
97+
requires(
98+
"+serial", when="~hpx ~openmp ~threads", msg="Kokkos requires at least one host backend"
99+
)
98100

99101
tpls_variants = {
100102
"hpx": [False, "Whether to enable the HPX library"],

0 commit comments

Comments
 (0)