RAJA package: Don't set both CUDA_ARCH and CMAKE_CUDA_FLAGS (#19589)
This commit is contained in:
parent
f028079564
commit
44bacefb27
1 changed files with 0 additions and 2 deletions
|
@ -51,8 +51,6 @@ def cmake_args(self):
|
||||||
if not spec.satisfies('cuda_arch=none'):
|
if not spec.satisfies('cuda_arch=none'):
|
||||||
cuda_arch = spec.variants['cuda_arch'].value
|
cuda_arch = spec.variants['cuda_arch'].value
|
||||||
options.append('-DCUDA_ARCH=sm_{0}'.format(cuda_arch[0]))
|
options.append('-DCUDA_ARCH=sm_{0}'.format(cuda_arch[0]))
|
||||||
flag = '-arch sm_{0}'.format(cuda_arch[0])
|
|
||||||
options.append('-DCMAKE_CUDA_FLAGS:STRING={0}'.format(flag))
|
|
||||||
else:
|
else:
|
||||||
options.append('-DENABLE_CUDA=OFF')
|
options.append('-DENABLE_CUDA=OFF')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue