spfft: pass cuda_arch to cmake (#30295)
This commit is contained in:
parent
62abbeaf6f
commit
3e51304b68
@ -86,6 +86,10 @@ def cmake_args(self):
|
|||||||
if spec.satisfies('+cuda'):
|
if spec.satisfies('+cuda'):
|
||||||
args += ["-DSPFFT_GPU_BACKEND=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'):
|
if spec.satisfies('+rocm'):
|
||||||
archs = ",".join(self.spec.variants['amdgpu_target'].value)
|
archs = ",".join(self.spec.variants['amdgpu_target'].value)
|
||||||
args += [
|
args += [
|
||||||
|
Loading…
Reference in New Issue
Block a user