Edison - PHASTA/phasta GitHub Wiki

Table of Contents

The following instructions are for execution on the NERSC Edison System.

See the Edison page for system details http://www.nersc.gov/users/computational-systems/edison/

Build

Setup the environment

module load cmake/3.0.0

Create a toolchain file

Create 'Edison.cmake' with the following contents

set(CMAKE_SYSTEM_NAME Catamount)
set(CMAKE_C_COMPILER cc)
set(CMAKE_CXX_COMPILER CC)
set(CMAKE_Fortran_COMPILER ftn)
set(MPI_C_COMPILER cc)
set(MPI_CXX_COMPILER CC)
set(MPI_Fortran_COMPILER CC)

Note, setting MPI_XXX_COMPILER seems to be a bit of a hack to prevent cmake FindMPI from finding the wrong headers/libs.

Create a build directory

mkdir buildEdison
cd buildEdison

Run CMake

cmake \
  -DCMAKE_TOOLCHAIN_FILE=../Edison.cmake \
  -DCMAKE_BUILD_TYPE=Release \
  -DPHASTA_INCOMPRESSIBLE=OFF \
  -DPHASTA_COMPRESSIBLE=ON \
  ..

Build

make VERBOSE=1

Run

Setup the environment

see above

Create a single run job script

Create 'runEdison.sh' with the following contents

#!/bin/bash 
cd $PBS_O_WORKDIR
exe=/path/to/phastaC.exe
aprun -n numProcesses $exe

Submit the job

cd path/to/case/directory # should contain a N-procs_case sub-directory
qsub -l mppwidth=numProcesses -l walltime=HH:MM:SS ./runEdison.sh
⚠️ **GitHub.com Fallback** ⚠️