-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from marshallward/om2prof
libaccessom2 intercommunicator profiling support
- Loading branch information
Showing
7 changed files
with
190 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
platform ?= nci | ||
|
||
1deg: | ||
bld/build.sh nci auscom 360x300 | ||
bld/build.sh $(platform) auscom 360x300 | ||
025deg: | ||
bld/build.sh nci auscom 1440x1080 | ||
bld/build.sh $(platform) auscom 1440x1080 | ||
01deg: | ||
bld/build.sh nci auscom 3600x2700 | ||
bld/build.sh $(platform) auscom 3600x2700 | ||
|
||
clean: | ||
rm -rf build_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
#============================================================================== | ||
# Makefile macros for xe.nci.org.au, an SGI ALTIX system running Linux | ||
# Note: Use the -mp flag if precision is critical. It slows down the | ||
# code by 25% (or more). | ||
#============================================================================== | ||
|
||
INCLDIR := -I. | ||
SLIBS := | ||
ULIBS := | ||
CPP := cpp | ||
FC := scorep mpif90 | ||
|
||
CPPFLAGS := -P -traditional | ||
CPPDEFS := -DLINUX -DPAROPT | ||
CFLAGS := -c -O2 | ||
FIXEDFLAGS := -132 | ||
FREEFLAGS := | ||
|
||
ifeq ($(DEBUG), 1) | ||
FFLAGS := -r8 -i4 -O0 -traceback -g -debug all -check all -no-vec -align all -w -fpe0 -ftz -convert big_endian -assume byterecl -assume nobuffered_io -check noarg_temp_created | ||
CPPDEFS := $(CPPDEFS) -DDEBUG=$(DEBUG) | ||
else | ||
FFLAGS := -r8 -i4 -O2 -traceback -g -align all -xHost -fpe0 -w -ftz -convert big_endian -assume byterecl -assume buffered_io -check noarg_temp_created | ||
endif | ||
|
||
MOD_SUFFIX := mod | ||
LD := $(FC) | ||
LDFLAGS := $(FFLAGS) -v | ||
|
||
CPPDEFS := $(CPPDEFS) -DNXGLOB=$(NXGLOB) -DNYGLOB=$(NYGLOB) \ | ||
-DNUMIN=$(NUMIN) -DNUMAX=$(NUMAX) \ | ||
-DTRAGE=$(TRAGE) -DTRFY=$(TRFY) -DTRLVL=$(TRLVL) \ | ||
-DTRPND=$(TRPND) -DNTRAERO=$(NTRAERO) -DTRBRI=$(TRBRI) \ | ||
-DNBGCLYR=$(NBGCLYR) -DTRBGCS=$(TRBGCS) \ | ||
-DNICECAT=$(NICECAT) -DNICELYR=$(NICELYR) \ | ||
-DNSNWLYR=$(NSNWLYR) \ | ||
-DBLCKX=$(BLCKX) -DBLCKY=$(BLCKY) -DMXBLCKS=$(MXBLCKS) | ||
|
||
ifeq ($(COMMDIR), mpi) | ||
SLIBS := $(SLIBS) -lmpi | ||
endif | ||
|
||
ifeq ($(DITTO), yes) | ||
CPPDEFS := $(CPPDEFS) -DREPRODUCIBLE | ||
endif | ||
|
||
ifeq ($(IO_TYPE), netcdf) | ||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
INCLDIR := $(INCLDIR) -I$(NETCDF_ROOT)/include | ||
SLIBS := $(SLIBS) -L$(NETCDF_ROOT)/lib -lnetcdf -lnetcdff | ||
endif | ||
|
||
ifeq ($(USE_ESMF), yes) | ||
CPPDEFS := $(CPPDEFS) -Duse_esmf | ||
INCLDIR := $(INCLDIR) -I ??? | ||
SLIBS := $(SLIBS) -L ??? -lesmf -lcprts -lrt -ldl | ||
endif | ||
|
||
ifeq ($(AusCOM), yes) | ||
CPPDEFS := $(CPPDEFS) -DAusCOM -Dcoupled | ||
INCLDIR := $(INCLDIR) $(CPL_INCS) $(LIBAUSCOM_INCS) | ||
SLIBS := $(SLIBS) -L$(CPLLIBDIR) -laccessom2 | ||
endif | ||
|
||
ifeq ($(UNIT_TESTING), yes) | ||
CPPDEFS := $(CPPDEFS) -DUNIT_TESTING | ||
endif | ||
ifeq ($(ACCESS), yes) | ||
CPPDEFS := $(CPPDEFS) -DACCESS | ||
endif | ||
# standalone CICE with AusCOM mods | ||
ifeq ($(ACCICE), yes) | ||
CPPDEFS := $(CPPDEFS) -DACCICE | ||
endif | ||
# no MOM just CICE+UM | ||
ifeq ($(NOMOM), yes) | ||
CPPDEFS := $(CPPDEFS) -DNOMOM | ||
endif | ||
ifeq ($(OASIS3_MCT), yes) | ||
CPPDEFS := $(CPPDEFS) -DOASIS3_MCT | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# Recommendations: | ||
# use processor_shape = slenderX1 or slenderX2 in ice_in | ||
# one per processor with distribution_type='cartesian' or | ||
# squarish blocks with distribution_type='rake' | ||
# If BLCKX (BLCKY) does not divide NXGLOB (NYGLOB) evenly, padding | ||
# will be used on the right (top) of the grid. | ||
|
||
setenv NTASK 480 | ||
setenv RES 1440x1080 | ||
|
||
set NXGLOB = `echo $RES | sed s/x.\*//` | ||
set NYGLOB = `echo $RES | sed s/.\*x//` | ||
|
||
setenv BLCKX `expr $NXGLOB / 24` # x-dimension of blocks ( not including ) | ||
setenv BLCKY `expr $NYGLOB / 20` # y-dimension of blocks ( ghost cells ) | ||
|
||
source /etc/profile.d/nf_csh_modules | ||
module purge | ||
module load intel-fc/17.0.1.132 | ||
module load intel-cc/17.0.1.132 | ||
module load netcdf/4.2.1.1 | ||
module load openmpi/1.10.2 | ||
module load scorep/3.1 | ||
|
||
# correct papi module | ||
module unload papi | ||
module use /short/z35/dsr900/tools/Modules | ||
module load papi/5.1.1-patched |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
# Recommendations: | ||
# use processor_shape = slenderX1 or slenderX2 in ice_in | ||
# one per processor with distribution_type='cartesian' or | ||
# squarish blocks with distribution_type='rake' | ||
# If BLCKX (BLCKY) does not divide NXGLOB (NYGLOB) evenly, padding | ||
# will be used on the right (top) of the grid. | ||
|
||
setenv NTASK 1200 | ||
setenv RES 3600x2700 | ||
|
||
set NXGLOB = `echo $RES | sed s/x.\*//` | ||
set NYGLOB = `echo $RES | sed s/.\*x//` | ||
|
||
setenv BLCKX `expr $NXGLOB / 40` # x-dimension of blocks ( not including ) | ||
setenv BLCKY `expr $NYGLOB / 30` # y-dimension of blocks ( ghost cells ) | ||
|
||
source /etc/profile.d/nf_csh_modules | ||
module purge | ||
module load intel-fc/17.0.1.132 | ||
module load intel-cc/17.0.1.132 | ||
module load netcdf/4.2.1.1 | ||
module load openmpi/1.10.2 | ||
module load scorep/3.1 | ||
|
||
# correct papi module | ||
module unload papi | ||
module use /short/z35/dsr900/tools/Modules | ||
module load papi/5.1.1-patched |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
setenv NTASK 24 | ||
setenv RES 360x300 | ||
set NXGLOB = `echo $RES | sed s/x.\*//` | ||
set NYGLOB = `echo $RES | sed s/.\*x//` | ||
|
||
setenv BLCKX `expr $NXGLOB / 24` # x-dimension of blocks ( not including ) | ||
setenv BLCKY `expr $NYGLOB / 1` # y-dimension of blocks ( ghost cells ) | ||
|
||
source /etc/profile.d/nf_csh_modules | ||
module purge | ||
module load intel-fc/17.0.1.132 | ||
module load intel-cc/17.0.1.132 | ||
module load netcdf/4.2.1.1 | ||
module load openmpi/1.10.2 | ||
module load scorep/3.1 | ||
|
||
# correct papi module | ||
module unload papi | ||
module use /short/z35/dsr900/tools/Modules | ||
module load papi/5.1.1-patched |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters