Compiling at NERSC
Perlmutter
Log into Perlmutter via
ssh perlmutter-p1.nersc.gov
Compiling with GCC + CUDA
Load gcc and CUDA
module load PrgEnv-gnu
module load cudatoolkit
module load python
Note
We require python >= 3.7 for the compilation process
Build, e.g. the Castro Sedov hydro test problem
make COMP=gnu TINY_PROFILE=TRUE USE_MPI=TRUE USE_OMP=FALSE USE_CUDA=TRUE -j 4
Hypre
Hypre should be obtained from GitHub, and built using the same PrgEnv that you are using for Castro:
HYPRE_CUDA_SM=80 CXX=CC CC=cc FC=ftn ./configure --prefix=/path/to/hypre/install --with-MPI --with-cuda --enable-unified-memory