RAJA package: Don't set both CUDA_ARCH and CMAKE_CUDA_FLAGS (#19589)

This commit is contained in:
David Beckingsale 2020-10-28 16:54:23 -07:00 committed by GitHub
parent f028079564
commit 44bacefb27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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