singularity-eos: remove conditional depends_on (#50381)

This commit is contained in:
Harmen Stoppels
2025-05-08 18:42:06 +02:00
committed by GitHub
parent 7b93d01a68
commit 7bbf581169

View File

@@ -4,7 +4,6 @@
import os import os
import spack
from spack.package import * from spack.package import *
@@ -115,9 +114,7 @@ class SingularityEos(CMakePackage, CudaPackage):
# specfic specs when using GPU/cuda offloading # specfic specs when using GPU/cuda offloading
depends_on("kokkos +wrapper+cuda_lambda", when="+cuda+kokkos") depends_on("kokkos +wrapper+cuda_lambda", when="+cuda+kokkos")
# fix for older spacks depends_on("kokkos-kernels ~shared", when="+kokkos-kernels")
if Version(spack.spack_version) >= Version("0.17"):
depends_on("kokkos-kernels ~shared", when="+kokkos-kernels")
for _flag in list(CudaPackage.cuda_arch_values): for _flag in list(CudaPackage.cuda_arch_values):
depends_on("kokkos cuda_arch=" + _flag, when="+cuda+kokkos cuda_arch=" + _flag) depends_on("kokkos cuda_arch=" + _flag, when="+cuda+kokkos cuda_arch=" + _flag)