spfft: pass cuda_arch to cmake (#30295)

This commit is contained in:
Simon Pintarelli 2022-04-26 14:59:48 +02:00 committed by GitHub
parent 62abbeaf6f
commit 3e51304b68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,6 +86,10 @@ def cmake_args(self):
if spec.satisfies('+cuda'):
args += ["-DSPFFT_GPU_BACKEND=CUDA"]
cuda_arch = self.spec.variants['cuda_arch'].value
if cuda_arch[0] != 'none':
args += [self.define('CMAKE_CUDA_ARCHITECTURES', cuda_arch)]
if spec.satisfies('+rocm'):
archs = ",".join(self.spec.variants['amdgpu_target'].value)
args += [