compilenersc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
compilenersc [2016/09/19 16:40] – [Notes for Specific Nimrod Versions] wsi | compilenersc [2022/07/21 06:59] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Compiling Nimrod at NERSC ====== | ||
+ | Tips for getting nimrod to compile at nersc. Compile on your login node, test and run on compute nodes (see: [[runnersc|Running Jobs at NERSC]]) | ||
+ | ===== Modules ===== | ||
+ | Software that Nimrod needs can easily be used by loading modules. Typically needed: acml, parmetis, superlu_dist | ||
+ | < | ||
+ | $ module load parmetis | ||
+ | $ module load acml | ||
+ | | ||
+ | | ||
+ | http:// | ||
+ | |||
+ | Nersc doesn' | ||
+ | $ module swap PrgEnv-intel/ | ||
+ | $ module load cray-tpsl gsl | ||
+ | | ||
+ | and link superlu, metis, appropriately. | ||
+ | ===== Make.inc ===== | ||
+ | Make.inc contains machine specific definitions for compiling Nimrod. Examples are in make_includes/ | ||
+ | |||
+ | F90= ftn | ||
+ | CC = cc | ||
+ | |||
+ | Environment variables can be used for various math libs: | ||
+ | SLUD_LIB = $(NIMHOME)/ | ||
+ | |||
+ | ===== Notes for Specific Nimrod Versions ===== | ||
+ | === Cone === | ||
+ | |||
+ | |||
+ | Make sure to load GSL module. | ||
+ | Switch to gnu compilers (gfortran). Use local_linux.f for local.f | ||
+ | $ module load acml parmetis superlu_dist superlu gsl | ||
+ | $ module swap PrgEnv-pgi PrgEnv-gnu | ||
+ | $ rm local.f && ln -s local_linux.f local.f | ||
+ | |||
+ | |||
+ | === NIMWSI-bootcamp / NIMWSI-Edison / NIMWSI-cori === | ||
+ | |||
+ | Switch to gnu compilers (gfortran). | ||
+ | Compile superlu, superlu-dist, | ||
+ | Compile nimsetvn and nimset-mod as well | ||
+ | $ module swap PrgEnv-pgi PrgEnv-gnu | ||
+ | $ make | ||
+ | $ cd nimsetvn && make && cd .. | ||
+ | $ cd nimset-mod && make && cd .. | ||
+ | |||
+ | ===== More Information ===== | ||
+ | http:// |