Difference between revisions of "TIEGCM"
Line 19: | Line 19: | ||
== Building PDT == | == Building PDT == | ||
− | + | ./configure --xlC -arch=ibm64 | |
− | + | make | |
− | + | make install | |
== Building TAU == | == 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: | After TAU is built setup your environment for TAU by doing: | ||
− | + | export TAU_MAKEFILE=/glade/home/sbiersdo/tau-2.21.1/ibm64/lib/Makefile.tau-mpi-pdt | |
− | + | export TAU_OPTIONS='-optKeepFiles -optVerbose -optCPPReset="-WF,-DAIX,-DMPI"' | |
== Building TIEGCM == | == Building TIEGCM == | ||
Line 38: | Line 38: | ||
You will need a version of gmake to compile TIEGCM, so make sure the 'make' command will use gmake: | 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: | copy over the scripts you will need: | ||
− | + | cd src ; cp ../scripts/Make.bluefire . | |
modify the '''Makefile''' to include these variables: | modify the '''Makefile''' to include these variables: | ||
− | + | <pre> | |
OS := $(shell uname -s) | OS := $(shell uname -s) | ||
VPATH := $(subst $(space),:,$(DIRS)) | VPATH := $(subst $(space),:,$(DIRS)) | ||
Line 56: | Line 56: | ||
LIBS += -L$(LIB_NETCDF) -lnetcdf | LIBS += -L$(LIB_NETCDF) -lnetcdf | ||
COUPLING := NO | COUPLING := NO | ||
− | EXECNAME := tiegcm.x | + | EXECNAME := tiegcm.x |
MPI := TRUE | MPI := TRUE | ||
− | + | </pre> | |
− | |||
− | |||
− | |||
== Running TIEGCM == | == Running TIEGCM == |
Revision as of 18:41, 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=/glade/home/sbiersdo/tau-2.21.1/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 MPI := TRUE