amrex: must use AMReX_CUDA_ARCH for version > 20.11 (#22025)

This commit is contained in:
mic84 2021-03-01 11:45:04 -08:00 committed by GitHub
parent 1ac2cc5081
commit 651df70213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,7 +169,7 @@ def cmake_args(self):
args.append('-DAMReX_CUDA_ERROR_CAPTURE_THIS=ON')
args.append('-DAMReX_CUDA_ERROR_CROSS_EXECUTION_SPACE_CALL=ON')
cuda_arch = self.spec.variants['cuda_arch'].value
args.append('-DCUDA_ARCH=' + self.get_cuda_arch_string(cuda_arch))
args.append('-DAMReX_CUDA_ARCH=' + self.get_cuda_arch_string(cuda_arch))
if '+rocm' in self.spec:
args.append('-DCMAKE_CXX_COMPILER={0}'.format(self.spec['hip'].hipcc))