# please set your project account export proj="" # change me! GPU projects must end in "..._g" # remembers the location of this script export MY_PROFILE=$(cd $(dirname $BASH_SOURCE) && pwd)"/"$(basename $BASH_SOURCE) if [ -z ${proj-} ]; then echo "WARNING: The 'proj' variable is not yet set in your $MY_PROFILE file! Please edit its line 2 to continue!"; return; fi # required dependencies module load cmake/3.22.1 module load gcc/11.2.0 module load cuda/11.7.1 module load openmpi/4.1.2/gcc.11.2.0 # optional: for QED support with detailed tables module load boost/1.78.0/gcc.11.2.0 # optional: for openPMD and PSATD+RZ support module load OpenBLAS/0.3.21 module load hdf5/1.13.1/gcc.11.2.0-openmpi.4.1.2 export CMAKE_PREFIX_PATH=${HOME}/sw/hpc3/gpu/c-blosc-1.21.1:$CMAKE_PREFIX_PATH export CMAKE_PREFIX_PATH=${HOME}/sw/hpc3/gpu/adios2-2.8.3:$CMAKE_PREFIX_PATH export CMAKE_PREFIX_PATH=${HOME}/sw/hpc3/gpu/blaspp-master:$CMAKE_PREFIX_PATH export CMAKE_PREFIX_PATH=${HOME}/sw/hpc3/gpu/lapackpp-master:$CMAKE_PREFIX_PATH export LD_LIBRARY_PATH=${HOME}/sw/hpc3/gpu/c-blosc-1.21.1/lib64:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=${HOME}/sw/hpc3/gpu/adios2-2.8.3/lib64:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=${HOME}/sw/hpc3/gpu/blaspp-master/lib64:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=${HOME}/sw/hpc3/gpu/lapackpp-master/lib64:$LD_LIBRARY_PATH # optional: CCache #module load ccache # missing # optional: for Python bindings module load python/3.10.2 if [ -d "${HOME}/sw/hpc3/gpu/venvs/warpx-gpu" ] then source ${HOME}/sw/hpc3/gpu/venvs/warpx-gpu/bin/activate fi # an alias to request an interactive batch node for one hour # for parallel execution, start on the batch node: srun alias getNode="salloc -N 1 -t 0:30:00 --gres=gpu:V100:1 -p free-gpu" # an alias to run a command on a batch node for up to 30min # usage: runNode alias runNode="srun -N 1 -t 0:30:00 --gres=gpu:V100:1 -p free-gpu" # optimize CUDA compilation for V100 export AMREX_CUDA_ARCH=7.0 # compiler environment hints export CXX=$(which g++) export CC=$(which gcc) export FC=$(which gfortran) export CUDACXX=$(which nvcc) export CUDAHOSTCXX=${CXX}