amrex: must use AMReX_CUDA_ARCH for version > 20.11 (#22025)
This commit is contained in:
parent
1ac2cc5081
commit
651df70213
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue