From 1f47d3529eca2688c94f964c2c28be078800b7c1 Mon Sep 17 00:00:00 2001 From: Natalie Perlin Date: Tue, 31 Oct 2023 06:29:33 -0400 Subject: [PATCH] update config_macos_gnu.sh, compile options for MacOS --- config/config_macos_gnu.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/config/config_macos_gnu.sh b/config/config_macos_gnu.sh index 9dd5d9dc..b9459e7b 100644 --- a/config/config_macos_gnu.sh +++ b/config/config_macos_gnu.sh @@ -14,7 +14,7 @@ export USE_SUDO=N export PKGDIR=pkg export LOGDIR=log export OVERWRITE=N -export NTHREADS=8 +export NTHREADS=4 export MAKE_CHECK=N export MAKE_VERBOSE=Y export MAKE_CLEAN=N @@ -24,8 +24,12 @@ export WGET="wget -nv " # # gfortran-10 needs the following -export STACK_FFLAGS="-fallow-argument-mismatch -fallow-invalid-boz" +export STACK_FFLAGS="-fallow-argument-mismatch -fallow-invalid-boz -march=native " +export STACK_CFLAGS="-march=native" export STACK_CXXFLAGS="-march=native" +export STACK_mpi_FFLAGS="-fopenmp" +export STACK_mpi_CFLAGS="-fopenmp" +export STACK_mpi_CXXFLAGS="-fopenmp" BREW=$(brew --prefix)