diff --git a/var/spack/repos/builtin/packages/sirius/package.py b/var/spack/repos/builtin/packages/sirius/package.py index 8716f89ef2..e9b6b5cd45 100644 --- a/var/spack/repos/builtin/packages/sirius/package.py +++ b/var/spack/repos/builtin/packages/sirius/package.py @@ -342,8 +342,10 @@ def cmake_args(self): ) # Make SIRIUS handle it + elif "@6:7.4.3" in spec: + args.append(self.define("CMAKE_CUDA_ARCH", ";".join(cuda_arch))) else: - args.append(self.define("CUDA_ARCH", ";".join(cuda_arch))) + args.append(self.define("CMAKE_CUDA_ARCHITECTURES", ";".join(cuda_arch))) if "+rocm" in spec: archs = ",".join(self.spec.variants["amdgpu_target"].value)