Skip to content

Instantly share code, notes, and snippets.

@jklymak
Created July 23, 2017 22:22
Show Gist options
  • Select an option

  • Save jklymak/1e6735ff442f31e1d9fe8e7843dbd493 to your computer and use it in GitHub Desktop.

Select an option

Save jklymak/1e6735ff442f31e1d9fe8e7843dbd493 to your computer and use it in GitHub Desktop.
conrad build_option
#!/bin/bash
#
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia64_cray_archer,v 1.4 2016/03/13 18:30:34 dfer Exp $
# $Name: checkpoint66g $
# To be used with the suite of cray compilers (PrgEnv-cray).
# To get netcdf, add:
# module load cray-netcdf-hdf5parallel
# module load cray-mpich
CC='cc'
FC='ftn'
F90C='ftn'
DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI'
CPP='cpp -traditional -P'
EXTENDED_SRC_FLAG='-Mextend'
GET_FC_VERSION="-V"
CHECK_FOR_LAPACK=t
#INCLUDES='-I/opt/cray/netcdf-hdf5parallel/4.3.3.1/cray/83/include -I/opt/cray/mpt/7.5.3/gni/mpich-cray/84/include'
#LIBS='-L/opt/cray/netcdf-hdf5parallel/4.3.3.1/cray/83/lib -L/opt/cray/mpt/7.5.3/gni/mpich-cray/84/lib'
#INCLUDES='-I/opt/cray/mpt/7.2.4/gni/mpich2-cray64/83/include'
#LIBS='-L/opt/cray/mpt/7.2.4/gni/mpich2-cray64/83/lib'
INCLUDES='-I$(CRAY_MPICH_DIR)/include -I$(CRAY_NETCDF_DIR)/include'
LIBS='-L$(CRAY_MPICH_DIR)/lib -L$(CRAY_NETCDF_DIR)/lib'
NOOPTFLAGS='-O0'
NOOPTFILES=''
if test "x$IEEE" = x ; then #- with optimisation:
# FOPTIM='-O2 -hfp3 -Oipa5' for less agressive optimization
# Be aware not all experiments pass the restart test with optimization
FOPTIM='-O3 -hfp3 -Oipa5'
else
if test "x$DEVEL" = x ; then #- no optimisation + IEEE :
FOPTIM='-O0 -hfp0'
else #- development/check options:
FOPTIM='-O0 -hfp0'
FOPTIM="$FOPTIM -g -Rbc -rm -hmsgs -hnegmsgs"
fi
fi
FOPTIM='-O3 -hfp3 -Oipa5'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment