Skip to content

Commit

Permalink
Build scripts for crusher offload
Browse files Browse the repository at this point in the history
  o source scripts/setenv_crusher_offload.sh
  o bash scripts/build_crusher_offload_cce.sh
  • Loading branch information
mewall authored and nicolasbock committed Mar 21, 2022
1 parent d1d92aa commit 9acac34
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
27 changes: 27 additions & 0 deletions scripts/build_crusher_offload_cce.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/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 BML_OPENMP=${BML_OPENMP:=yes}
export BUILD_DIR=${BUILD_DIR:="${MY_PATH}/build"}
export INSTALL_DIR=${INSTALL_DIR:="${MY_PATH}/install"}
export BML_TESTING=${BML_TESTING:=yes}
export CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:=Release}
export CMAKE_Fortran_FLAGS=${CMAKE_Fortran_FLAGS:="-ef -DCRAY_SDK"}
export CMAKE_C_FLAGS=${CMAKE_C_FLAGS:="-Ofast -DUSE_OMP_OFFLOAD -DCRAY_SDK"}
export BLAS_LIBRARIES=${BLAS_LIBRARIES:="-L${LIBSCI_BASE_DIR}/cray/9.0/x86_64/lib -lsci_cray"}

./build.sh configure

pushd ${BUILD_DIR}
make -j16
make install
popd
7 changes: 7 additions & 0 deletions scripts/setenv_crusher_offload.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

module load craype-accel-amd-gfx90a
module load rocm
module load cmake
export LD_LIBRARY_PATH="$CRAY_LD_LIBRARY_PATH:$LD_LIBRARY_PATH"

0 comments on commit 9acac34

Please sign in to comment.