sirius: fix cuda_arch flags (#39889)

This commit is contained in:
Simon Pintarelli
2023-09-11 18:13:49 +02:00
committed by GitHub
parent 516f0461b8
commit d88ecf0af0

View File

@@ -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)