Installing Spack

$ cd
$ git clone
$ cd spack
$ ./ user --install

Add the following settings to ~/.bashrc or ~/.bash_profile.

# Spack package management
if [ -d "$HOME/spack" ]; then
    export SPACK_ROOT=$HOME/spack
    source $SPACK_ROOT/share/spack/

Using Nektar++

Install nektar++:

$ spack install nektar %gcc@5.4.0 ^openmpi@2.0.4+pmi fabrics=verbs schedulers=slurm ^cmake@3.9.6

The following job (cpu.slurm) requests all 16 CPU cores per node, which can be submitted via sbatch -N 1 cpu.slurm.


#SBATCH -J nektar
#SBATCH -p cpu
#SBATCH --mail-type=end
#SBATCH -o %j.out
#SBATCH -e %j.err
#SBATCH --exclusive

ulimit -s unlimited
ulimit -l unlimited

module purge
source <(spack module tcl loads --dependencies nektar %gcc@5.4.0 )

srun --mpi=pmi2 IncNavierStokesSolver-rg