Difference between revisions of "NEK"
Line 18: | Line 18: | ||
== Building NEK == | == Building NEK == | ||
+ | |||
+ | use the pgi modules: | ||
+ | module load PE-pgi openmpi/1.5.1-pgi | ||
+ | |||
+ | As an example we will build and run for the 3D vortex example: | ||
+ | |||
+ | cd examples/vortex | ||
+ | cp ../../trunk/nek/makenek . | ||
+ | cp ../../trunk/tools/scripts/nekbmpi . | ||
+ | |||
+ | This gives us the scripts needed to build and run NEK. | ||
+ | |||
+ | First edit '''makenek''' and change the compiler to the TAU wrapper scripts: | ||
+ | # source path | ||
+ | SOURCE_ROOT="<path to trunk/nek>" | ||
+ | |||
+ | # Fortran compiler | ||
+ | F77="tau_f90.sh" | ||
+ | |||
+ | # C compiler | ||
+ | CC="tau_cc.sh" | ||
+ | |||
+ | Setup your environment: | ||
+ | |||
+ | export TAU_MAKEFILE=<path to TAU>/x86_64/lib/Makefile.tau-mpi-pgi | ||
+ | |||
+ | Compile |
Revision as of 00:45, 29 February 2012
Background
Link | Code Version | Machine | Date |
---|---|---|---|
SVN repo | svn February 2012 | Keeneland | ebruary 2012 |
Building NEK
use the pgi modules:
module load PE-pgi openmpi/1.5.1-pgi
As an example we will build and run for the 3D vortex example:
cd examples/vortex cp ../../trunk/nek/makenek . cp ../../trunk/tools/scripts/nekbmpi .
This gives us the scripts needed to build and run NEK.
First edit makenek and change the compiler to the TAU wrapper scripts:
# source path SOURCE_ROOT="<path to trunk/nek>"
# Fortran compiler F77="tau_f90.sh"
# C compiler CC="tau_cc.sh"
Setup your environment:
export TAU_MAKEFILE=<path to TAU>/x86_64/lib/Makefile.tau-mpi-pgi
Compile