Skip to content

Commit

Permalink
Merge pull request #14 from COSIMA/use-repro-flags-for-gadi
Browse files Browse the repository at this point in the history
Use reproducibility flags
  • Loading branch information
aekiss authored Jan 15, 2020
2 parents f8ee368 + 504aaff commit db46453
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions util/make_dir/make.nci
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#
COUPLE=$(OASIS_HOME)
ARCHDIR=$(COUPLE)/Linux
Expand Down Expand Up @@ -26,15 +25,19 @@ ARFLAGS = -ruv
# -g is necessary in F90FLAGS and LDFLAGS for pgf90 versions lower than 6.1
# For compiling in double precision, put -r8
# For compiling in single precision, remove -r8 and add -Duse_realtype_single
NCI_INTEL_FLAGS = -r8 -i4 -traceback -fpe0 -convert big_endian -fno-alias -ip -check noarg_temp_created
NCI_REPRO_FLAGS = -fp-model precise -fp-model source -align all
ifeq ($(DEBUG), yes)
F90FLAGS_1 = -convert big_endian -i4 -r8 -traceback -O -debug all -g -check all -fpe0 -CB -fno-alias -ip -align all -assume nobuffered_io -check noarg_temp_created
CPPDEF = -Duse_netCDF -Duse_comm_$(CHAN) -DTREAT_OVERLAY -DDEBUG -D__VERBOSE
MCT_FCFLAGS = -O0 -debug all -g -check all -fpe0 -ip -align all
NCI_DEBUG_FLAGS = -g3 -O0 -fpe0 -no-vec -debug all -check all -no-vec -assume nobuffered_io
F90FLAGS_1 = $(NCI_INTEL_FLAGS) $(NCI_REPRO_FLAGS) $(NCI_DEBUG_FLAGS)
CPPDEF = -Duse_netCDF -Duse_comm_$(CHAN) -DTREAT_OVERLAY -DDEBUG -D__VERBOSE
MCT_FCFLAGS = $(NCI_REPRO_FLAGS) $(NCI_DEBUG_FLAGS) -ip
else
F90FLAGS_1 = -convert big_endian -i4 -r8 -O3 -xCORE-AVX2 -axSKYLAKE-AVX512,CASCADELAKE -g -traceback -fno-alias -ip -align all -fpe0 -assume buffered_io -check noarg_temp_created
CPPDEF = -Duse_netCDF -Duse_comm_$(CHAN) -DTREAT_OVERLAY
MCT_FCFLAGS = -O3 -xCORE-AVX2 -axSKYLAKE-AVX512,CASCADELAKE -ip -align all
endif
NCI_OPTIM_FLAGS = -g3 -O2 -axCORE-AVX2 -debug all -check none -qopt-report=5 -qopt-report-annotate -assume buffered_io
F90FLAGS_1 = $(NCI_INTEL_FLAGS) $(NCI_REPRO_FLAGS) $(NCI_OPTIM_FLAGS)
CPPDEF = -Duse_netCDF -Duse_comm_$(CHAN) -DTREAT_OVERLAY
MCT_FCFLAGS = $(NCI_REPRO_FLAGS) $(NCI_OPTIM_FLAGS) -ip
endif
f90FLAGS_1 = $(F90FLAGS_1)
FFLAGS_1 = $(F90FLAGS_1)
fFLAGS_1 = $(F90FLAGS_1)
Expand All @@ -61,3 +64,4 @@ fFLAGS = $(fFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
CCFLAGS = $(CCFLAGS_1) $(INCPSMILE) $(CPPDEF) -I$(NETCDF_INCLUDE)
#
#############################################################################

0 comments on commit db46453

Please sign in to comment.