From 183a994633b54c8571a8f6b2e42a134e35762010 Mon Sep 17 00:00:00 2001 From: Jean-Luc Fattebert Date: Wed, 11 Oct 2023 07:46:46 -0400 Subject: [PATCH] Add script for cray compiler on AMD GPU cce/15.0.1 required instead of default to avoid segfaults rocm/5.1.0 required instead of default to avoid diagonalization tests failures (double and double complex) --- scripts/build_crusher_magma_cce.sh | 34 +++++++++++++++++++++++++++++ scripts/setenv_crusher_magma_cce.sh | 7 ++++++ 2 files changed, 41 insertions(+) create mode 100755 scripts/build_crusher_magma_cce.sh create mode 100755 scripts/setenv_crusher_magma_cce.sh diff --git a/scripts/build_crusher_magma_cce.sh b/scripts/build_crusher_magma_cce.sh new file mode 100755 index 00000000..17ed1f8b --- /dev/null +++ b/scripts/build_crusher_magma_cce.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +# Make sure all the paths are correct + +rm -r build +rm -r install + +MY_PATH=$(pwd) + +export CC=${CC:=cc} +export FC=${FC:=ftn} +export CXX=${CXX:=CC} + +export BLAS_VENDOR=${BLAS_VENDOR:=OpenBLAS} + +export BML_OPENMP=${BML_OPENMP:=yes} + +export BML_MAGMA=${BML_MAGMA:=yes} +export MAGMA_ROOT=${OLCF_MAGMA_ROOT} +export BML_ROCSOLVER=${BML_ROCSOLVER:=no} +export BML_TESTING=${BML_TESTING:=yes} +export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:=Release} +export INSTALL_DIR="/autofs/nccs-svm1_proj/csc304/bml/crusher/cce" +export EXTRA_FFLAGS=${EXTRA_FCFLAGS:="-hsystem_alloc"} + +export BML_NONMPI_PRECOMMAND=${BML_NONMPI_PRECOMMAND:="srun"} +export BML_NONMPI_PRECOMMAND_ARGS=${BML_NONMPI_PRECOMMAND_ARGS:="-n1;-c4;--gpus=1"} + +./build.sh configure + +pushd build +make -j8 +make install +popd diff --git a/scripts/setenv_crusher_magma_cce.sh b/scripts/setenv_crusher_magma_cce.sh new file mode 100755 index 00000000..de8adebb --- /dev/null +++ b/scripts/setenv_crusher_magma_cce.sh @@ -0,0 +1,7 @@ +#!/bin/bash +module load craype-accel-amd-gfx90a +module load cmake +module load rocm/5.1.0 +module load magma/2.6.1 +module load cce/15.0.1 +module load openblas