From d88ecf0af0ebc8db5e78893ddd3347ad32b9993e Mon Sep 17 00:00:00 2001 From: Simon Pintarelli <1237199+simonpintarelli@users.noreply.github.com> Date: Mon, 11 Sep 2023 18:13:49 +0200 Subject: [PATCH] sirius: fix cuda_arch flags (#39889) --- var/spack/repos/builtin/packages/sirius/package.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)