Difference between revisions of "TIEGCM"
Line 57: | Line 57: | ||
COUPLING := NO | COUPLING := NO | ||
EXECNAME := tiegcm.x | EXECNAME := tiegcm.x | ||
− | MPIF90 | + | TAU_MAKEFILE := <path to TAU>/ibm64/lib/Makefile.tau-mpi-pdt |
+ | TAU_OPTIONS := '-optKeepFiles -optVerbose -optCPPReset="-WF,-DAIX,-DMPI" -optTauSelectFile="select.tau"' | ||
+ | MPIF90 := tau_f90.sh -tau_makefile=$(TAU_MAKEFILE) -tau_options=$(TAU_OPTIONS) | ||
MPI := TRUE | MPI := TRUE | ||
</pre> | </pre> | ||
+ | |||
+ | With this selective instrumentation file: | ||
+ | |||
+ | <pre> | ||
+ | BEGIN_FILE_EXCLUDE_LIST | ||
+ | |||
+ | wei01gcm.F | ||
+ | wei05sc.F | ||
+ | |||
+ | END_FILE_EXCLUDE_LIST | ||
+ | </pre> | ||
+ | |||
+ | saved as '''select.tau''' in the src directory | ||
%> MAKE_MACHINE=Make.bluefire make | %> MAKE_MACHINE=Make.bluefire make | ||
== Running TIEGCM == | == Running TIEGCM == |
Revision as of 21:26, 28 February 2012
Background
Link | Code Version | Machine | Date |
---|---|---|---|
HAO website | 1.94 | Bluefire | February 2012 |
Building PDT
./configure --xlC -arch=ibm64 make make install
Building TAU
./configure -arch=ibm64 -cc=xlc_r -c++=xlC_r -fortran=ibm64 -pdt=<path to pdtoolkit-3.17> -mpi make install
After TAU is built setup your environment for TAU by doing:
export TAU_MAKEFILE=<path to TAU>/ibm64/lib/Makefile.tau-mpi-pdt export TAU_OPTIONS='-optKeepFiles -optVerbose -optCPPReset="-WF,-DAIX,-DMPI"'
Building TIEGCM
You will need a version of gmake to compile TIEGCM, so make sure the 'make' command will use gmake:
make -v GNU Make ...
copy over the scripts you will need:
cd src ; cp ../scripts/Make.bluefire .
modify the Makefile to include these variables:
OS := $(shell uname -s) VPATH := $(subst $(space),:,$(DIRS)) INC_DIRS := $(foreach dir,$(DIRS),-I$(dir)) -I. -I$(INC_NETCDF) SOURCES := $(shell cat Srcfiles) SOURCES := $(addsuffix .f, $(basename $(SOURCES))) OBJS := $(addsuffix .o, $(basename $(SOURCES))) DIRS := `pwd` LIBS += -L$(LIB_NETCDF) -lnetcdf COUPLING := NO EXECNAME := tiegcm.x TAU_MAKEFILE := <path to TAU>/ibm64/lib/Makefile.tau-mpi-pdt TAU_OPTIONS := '-optKeepFiles -optVerbose -optCPPReset="-WF,-DAIX,-DMPI" -optTauSelectFile="select.tau"' MPIF90 := tau_f90.sh -tau_makefile=$(TAU_MAKEFILE) -tau_options=$(TAU_OPTIONS) MPI := TRUE
With this selective instrumentation file:
BEGIN_FILE_EXCLUDE_LIST wei01gcm.F wei05sc.F END_FILE_EXCLUDE_LIST
saved as select.tau in the src directory
%> MAKE_MACHINE=Make.bluefire make