summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormic84 <mrosso@lbl.gov>2021-03-01 11:45:04 -0800
committerGitHub <noreply@github.com>2021-03-01 11:45:04 -0800
commit651df702132ce5bd07d35330554068c7c3f270b1 (patch)
tree8f3da877943db3a2d34b1e08bc4a4cd51577eb5f
parent1ac2cc5081332090d3149ec00943c6376eefcca0 (diff)
downloadspack-651df702132ce5bd07d35330554068c7c3f270b1.tar.gz
spack-651df702132ce5bd07d35330554068c7c3f270b1.tar.bz2
spack-651df702132ce5bd07d35330554068c7c3f270b1.tar.xz
spack-651df702132ce5bd07d35330554068c7c3f270b1.zip
amrex: must use AMReX_CUDA_ARCH for version > 20.11 (#22025)
-rw-r--r--var/spack/repos/builtin/packages/amrex/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py
index e4cf189057..3fce1f304b 100644
--- a/var/spack/repos/builtin/packages/amrex/package.py
+++ b/var/spack/repos/builtin/packages/amrex/package.py
@@ -169,7 +169,7 @@ class Amrex(CMakePackage, CudaPackage, ROCmPackage):
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))