sirius: fix cuda_arch flags (#39889)
This commit is contained in:
parent
516f0461b8
commit
d88ecf0af0
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue