-
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.
Modifications to support additional offload builds
Revised the code to build on ORNL spock and Cray/HPE tulip: o Use the same offload code path for CRAY_SDK macro as for INTEL_SDK macro o Modify bml_add_norm_ellpack() and bml_add_identity_ellpack() to follow similar syntax as in bml_add_ellpack() - Note: Tests needed for bml_add_norm_ellpack() and bml_add_identity_ellpack() o Create a typed bml_deallocate_ellpack() (see issue #524) o Add scripts for building on spock - scripts/setenv_spock_offload.sh - scripts/build_spock_offload_cce.sh o Add scripts for building on tulip - scripts/setenv_tulip_offload.sh - scripts/build_tulip_offload_cce.sh
- Loading branch information
Showing
9 changed files
with
239 additions
and
37 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,30 @@ | ||
#!/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:=Auto} | ||
export BML_OPENMP=${BML_OPENMP:=yes} | ||
export INSTALL_DIR=${INSTALL_DIR:="${MY_PATH}/install"} | ||
export BML_MAGMA=${BML_MAGMA:=yes} | ||
export MAGMA_ROOT=${MAGMA_HOME} | ||
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 EXTRA_CFLAGS=${EXTRA_CFLAGS:="-Ofast -DUSE_OMP_OFFLOAD -DCRAY_SDK"} | ||
export CMAKE_C_FLAGS=${CMAKE_C_FLAGS:="-Ofast -DUSE_OMP_OFFLOAD -DCRAY_SDK"} | ||
export EXTRA_LINK_FLAGS=${EXTRA_LINK_FLAGS:="-L${LIBSCI_BASE_DIR}/cray/9.0/x86_64/lib"} | ||
|
||
./build.sh configure | ||
|
||
pushd build | ||
make -j8 | ||
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,30 @@ | ||
#!/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:=Auto} | ||
export BML_OPENMP=${BML_OPENMP:=yes} | ||
export INSTALL_DIR=${INSTALL_DIR:="${MY_PATH}/install"} | ||
export BML_MAGMA=${BML_MAGMA:=yes} | ||
export MAGMA_ROOT=${MAGMA_HOME} | ||
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 EXTRA_CFLAGS=${EXTRA_CFLAGS:="-Ofast -DUSE_OMP_OFFLOAD -DCRAY_SDK"} | ||
export CMAKE_C_FLAGS=${CMAKE_C_FLAGS:="-Ofast -DUSE_OMP_OFFLOAD -DCRAY_SDK"} | ||
export EXTRA_LINK_FLAGS=${EXTRA_LINK_FLAGS:="-L${BLASDIR} -l${BLASLIB}"} | ||
|
||
./build.sh configure | ||
|
||
pushd build | ||
make -j8 | ||
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,13 @@ | ||
#!/bin/bash | ||
|
||
module load craype-accel-amd-gfx908 | ||
#module unload cray-mvapich2 cray-libsci | ||
#module use /home/groups/coegroup/share/coe/modulefiles | ||
module load rocm/4.1.0 | ||
#module swap cce cce/11.0.4 | ||
#module load ompi/4.1.0/cce/11.0.4/rocm/4.1.1 | ||
#module load blas | ||
#module load rocm/4.2.0 | ||
module load cmake | ||
export LD_LIBRARY_PATH="$CRAY_LD_LIBRARY_PATH:$LD_LIBRARY_PATH" | ||
|
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,13 @@ | ||
#!/bin/bash | ||
|
||
module load craype-accel-amd-gfx908 | ||
module unload cray-mvapich2 cray-libsci | ||
module use /home/groups/coegroup/share/coe/modulefiles | ||
module load rocm/4.1.1 | ||
module swap cce cce/11.0.4 | ||
module load ompi/4.1.0/cce/11.0.4/rocm/4.1.1 | ||
module load blas | ||
#module load rocm/4.2.0 | ||
module load cmake | ||
export LD_LIBRARY_PATH="$CRAY_LD_LIBRARY_PATH:$LD_LIBRARY_PATH" | ||
|
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
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
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
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
Oops, something went wrong.