-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
o source scripts/setenv_crusher_offload.sh o bash scripts/build_crusher_offload_cce.sh
- Loading branch information
1 parent
d1d92aa
commit 9acac34
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|