summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/sirius/package.py4
1 files changed, 3 insertions, 1 deletions
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 @@ class Sirius(CMakePackage, CudaPackage, ROCmPackage):
)
# 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)