Skip to content

Commit

Permalink
put back older versions of mac custom files
Browse files Browse the repository at this point in the history
  • Loading branch information
natalie-perlin committed Nov 11, 2022
1 parent cb9ee60 commit 9f144bf
Show file tree
Hide file tree
Showing 3 changed files with 781 additions and 0 deletions.
37 changes: 37 additions & 0 deletions config/config_mac_gnu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

# Use Lmod for modules definition
LMOD=$(brew --prefix lmod)
source $LMOD/init/profile

# Compiler/MPI combination
export HPC_COMPILER="gnu/11.3.0"
export HPC_MPI="openmpi/4.1.2"
export HPC_PYTHON="python/3.9.13"

# Build options
export USE_SUDO=N
export PKGDIR=pkg
export LOGDIR=log
export OVERWRITE=N
export NTHREADS=4
export MAKE_CHECK=N
export MAKE_VERBOSE=Y
export MAKE_CLEAN=N
export DOWNLOAD_ONLY=N
export STACK_EXIT_ON_FAIL=Y
export WGET="wget -nv "

# gfortran-10 needs the following
export STACK_FFLAGS="-fallow-argument-mismatch -fallow-invalid-boz"
export STACK_CXXFLAGS="-march=native"

BREW=$(brew --prefix)

export CC=$BREW/bin/gcc
export FC=$BREW/bin/gfortran
export CXX=$BREW/bin/g++

export SERIAL_CC=$BREW/bin/gcc
export SERIAL_FC=$BREW/bin/gfortran
export SERIAL_CXX=$BREW/bin/g++
Loading

0 comments on commit 9f144bf

Please sign in to comment.