diff --git a/Tools/machines/perlmutter-nersc/Containerfile b/Tools/machines/perlmutter-nersc/Containerfile index 9d355bfdc4e..4ad4ad46196 100644 --- a/Tools/machines/perlmutter-nersc/Containerfile +++ b/Tools/machines/perlmutter-nersc/Containerfile @@ -6,6 +6,12 @@ ENV DEBIAN_FRONTEND=noninteractive \ SW_DIR=/opt/software \ FORCE_UNSAFE_CONFIGURE=1 +# Perlmutter A100 compilation optimization +ENV AMREX_CUDA_ARCH=8.0 \ + CUDAARCHS=80 \ + CXXFLAGS="-march=znver3" \ + CFLAGS="-march=znver3" + # Install essential system dependencies including MPI libraries RUN apt-get update && apt-get install -y --no-install-recommends \ autoconf \