-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/burmark1/parted
- Loading branch information
Showing
54 changed files
with
2,529 additions
and
760 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/usr/bin/env bash | ||
|
||
############################################################################### | ||
# Copyright (c) 2017-23, Lawrence Livermore National Security, LLC | ||
# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: (BSD-3-Clause) | ||
############################################################################### | ||
|
||
if [[ $# -lt 1 ]]; then | ||
echo | ||
echo "You must pass 1 argument to the script (in this order): " | ||
echo " 1) SYCL compiler installation path" | ||
echo | ||
echo "For example: " | ||
echo " corona_sycl.sh /usr/workspace/raja-dev/clang_sycl_hip_gcc10.2.1_rocm5.1.0/install" | ||
exit | ||
fi | ||
|
||
SYCL_PATH=$1 | ||
shift 1 | ||
|
||
BUILD_SUFFIX=corona-sycl | ||
: ${BUILD_TYPE:=RelWithDebInfo} | ||
RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/toss4/corona_sycl.cmake | ||
|
||
echo | ||
echo "Creating build directory build_${BUILD_SUFFIX} and generating configuration in it" | ||
echo "Configuration extra arguments:" | ||
echo " $@" | ||
echo | ||
|
||
rm -rf build_${BUILD_SUFFIX}_${USER} >/dev/null | ||
mkdir build_${BUILD_SUFFIX}_${USER} && cd build_${BUILD_SUFFIX}_${USER} | ||
|
||
DATE=$(printf '%(%Y-%m-%d)T\n' -1) | ||
|
||
export PATH=${SYCL_PATH}/bin:$PATH | ||
|
||
## NOTE: RAJA tests are turned off due to compilation issues. | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \ | ||
-DSYCL_LIB_PATH:STRING="${SYCL_PATH}/lib" \ | ||
-C ${RAJA_HOSTCONFIG} \ | ||
-DENABLE_OPENMP=Off \ | ||
-DENABLE_CUDA=Off \ | ||
-DRAJA_ENABLE_TARGET_OPENMP=Off \ | ||
-DENABLE_ALL_WARNINGS=Off \ | ||
-DENABLE_SYCL=On \ | ||
-DCMAKE_C_COMPILER=clang \ | ||
-DCMAKE_CXX_COMPILER=clang++ \ | ||
-DCMAKE_LINKER=clang++ \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DENABLE_TESTS=Off \ | ||
-DENABLE_EXAMPLES=On \ | ||
"$@" \ | ||
.. | ||
|
||
echo | ||
echo "***********************************************************************" | ||
echo | ||
echo "Remember to export PATH=${SYCL_PATH}/bin:\$PATH to obtain the correct compiler paths." | ||
echo | ||
echo "cd into directory build_${BUILD_SUFFIX}_${USER} and run make to build RAJA" | ||
echo | ||
echo "***********************************************************************" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
#!/usr/bin/env bash | ||
|
||
############################################################################### | ||
# Copyright (c) 2017-23, Lawrence Livermore National Security, LLC | ||
# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: (BSD-3-Clause) | ||
############################################################################### | ||
|
||
if [[ $# -lt 2 ]]; then | ||
echo | ||
echo "You must pass 2 or more arguments to the script (in this order): " | ||
echo " 1) compiler version number" | ||
echo " 2) HIP compute architecture" | ||
echo " 3...) optional arguments to cmake" | ||
echo | ||
echo "For example: " | ||
echo " toss4_amdclang_asan.sh 5.7.0 gfx90a" | ||
exit | ||
fi | ||
|
||
COMP_VER=$1 | ||
COMP_ARCH=$2 | ||
shift 2 | ||
|
||
HOSTCONFIG="hip_3_X" | ||
|
||
if [[ ${COMP_VER} == 4.* ]] | ||
then | ||
##HIP_CLANG_FLAGS="-mllvm -amdgpu-fixed-function-abi=1" | ||
HOSTCONFIG="hip_4_link_X" | ||
elif [[ ${COMP_VER} == 3.* ]] | ||
then | ||
HOSTCONFIG="hip_3_X" | ||
else | ||
echo "Unknown hip version, using ${HOSTCONFIG} host-config" | ||
fi | ||
|
||
BUILD_SUFFIX=lc_toss4-amdclang-${COMP_VER}-${COMP_ARCH}-asan | ||
RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/toss4/${HOSTCONFIG}.cmake | ||
|
||
echo | ||
echo "Creating build directory build_${BUILD_SUFFIX} and generating configuration in it" | ||
echo "Configuration extra arguments:" | ||
echo " $@" | ||
echo | ||
echo "To get cmake to work you may have to configure with" | ||
echo " -DHIP_PLATFORM=amd" | ||
echo | ||
echo "To use fp64 HW atomics you must configure with these options when using gfx90a and hip >= 5.2" | ||
echo " -DCMAKE_CXX_FLAGS=\"-munsafe-fp-atomics\"" | ||
echo | ||
|
||
rm -rf build_${BUILD_SUFFIX} >/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
|
||
module load cmake/3.23.1 | ||
|
||
# unload rocm to avoid configuration problems where the loaded rocm and COMP_VER | ||
# are inconsistent causing the rocprim from the module to be used unexpectedly | ||
# module unload rocm | ||
|
||
if [[ ${COMP_VER} =~ .*magic.* ]]; then | ||
ROCM_PATH="/usr/tce/packages/rocmcc/rocmcc-${COMP_VER}" | ||
else | ||
ROCM_PATH="/usr/tce/packages/rocmcc-tce/rocmcc-${COMP_VER}" | ||
fi | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DROCM_ROOT_DIR="${ROCM_PATH}" \ | ||
-DHIP_ROOT_DIR="${ROCM_PATH}/hip" \ | ||
-DHIP_PATH=${ROCM_PATH}/llvm/bin \ | ||
-DCMAKE_C_COMPILER=${ROCM_PATH}/llvm/bin/amdclang \ | ||
-DCMAKE_CXX_COMPILER=${ROCM_PATH}/llvm/bin/amdclang++ \ | ||
-DCMAKE_HIP_ARCHITECTURES="${COMP_ARCH}:xnack+" \ | ||
-DGPU_TARGETS="${COMP_ARCH}:xnack+" \ | ||
-DAMDGPU_TARGETS="${COMP_ARCH}:xnack+" \ | ||
-DCMAKE_C_FLAGS="-fsanitize=address -shared-libsan" \ | ||
-DCMAKE_CXX_FLAGS="-fsanitize=address -shared-libsan" \ | ||
-DBLT_CXX_STD=c++14 \ | ||
-C ${RAJA_HOSTCONFIG} \ | ||
-DENABLE_HIP=ON \ | ||
-DENABLE_OPENMP=ON \ | ||
-DENABLE_CUDA=OFF \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. | ||
|
||
echo | ||
echo "***********************************************************************" | ||
echo | ||
echo "cd into directory build_${BUILD_SUFFIX} and run make to build RAJAPerf" | ||
echo | ||
echo " Please note that you have to have a consistent build environment" | ||
echo " when you make RAJA as cmake may reconfigure; load the appropriate" | ||
echo " rocm and rocmcc modules (${COMP_VER}) when building." | ||
echo | ||
echo " module load rocm/COMP_VER rocmcc/COMP_VER" | ||
echo " srun -n1 make" | ||
echo | ||
echo " Run with these environment options when using asan" | ||
echo " ASAN_OPTIONS=print_suppressions=0:detect_leaks=0" | ||
echo " HSA_XNACK=1" | ||
echo | ||
echo "***********************************************************************" |
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,77 @@ | ||
#!/usr/bin/env bash | ||
|
||
############################################################################### | ||
# Copyright (c) 2017-23, Lawrence Livermore National Security, LLC | ||
# and RAJA project contributors. See the RAJAPerf/LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: (BSD-3-Clause) | ||
############################################################################### | ||
|
||
if [[ $# -lt 3 ]]; then | ||
echo | ||
echo "You must pass 3 or more arguments to the script (in this order): " | ||
echo " 1) compiler version number" | ||
echo " 2) HIP version" | ||
echo " 3) HIP compute architecture" | ||
echo " 4...) optional arguments to cmake" | ||
echo | ||
echo "For example: " | ||
echo " toss4_cce_hip.sh 14.0.3 5.2.3 gfx90a" | ||
exit | ||
fi | ||
|
||
COMP_VER=$1 | ||
HIP_VER=$2 | ||
HIP_ARCH=$3 | ||
shift 3 | ||
|
||
HOSTCONFIG="hip_3_X" | ||
|
||
BUILD_SUFFIX=lc_toss4-cce-${COMP_VER}-hip-${HIP_VER}-${HIP_ARCH} | ||
RAJA_HOSTCONFIG=../tpl/RAJA/host-configs/lc-builds/toss4/${HOSTCONFIG}.cmake | ||
|
||
echo | ||
echo "Creating build directory build_${BUILD_SUFFIX} and generating configuration in it" | ||
echo "Configuration extra arguments:" | ||
echo " $@" | ||
echo | ||
echo "To use fp64 HW atomics you must configure with these options when using gfx90a and hip >= 5.2" | ||
echo " -DCMAKE_CXX_FLAGS=\"-munsafe-fp-atomics\"" | ||
echo | ||
|
||
rm -rf build_${BUILD_SUFFIX} >/dev/null | ||
mkdir build_${BUILD_SUFFIX} && cd build_${BUILD_SUFFIX} | ||
|
||
|
||
module load cmake/3.24.2 | ||
|
||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_C_COMPILER="/usr/tce/packages/cce-tce/cce-${COMP_VER}/bin/craycc" \ | ||
-DCMAKE_CXX_COMPILER="/usr/tce/packages/cce-tce/cce-${COMP_VER}/bin/crayCC" \ | ||
-DHIP_PATH=/opt/rocm-${HIP_VER}/hip \ | ||
-DCMAKE_HIP_ARCHITECTURES=${HIP_ARCH} \ | ||
-DGPU_TARGETS=${HIP_ARCH} \ | ||
-DAMDGPU_TARGETS=${HIP_ARCH} \ | ||
-DBLT_CXX_STD=c++14 \ | ||
-C ${RAJA_HOSTCONFIG} \ | ||
-DENABLE_HIP=ON \ | ||
-DENABLE_OPENMP=ON \ | ||
-DENABLE_CUDA=OFF \ | ||
-DCMAKE_INSTALL_PREFIX=../install_${BUILD_SUFFIX} \ | ||
"$@" \ | ||
.. | ||
|
||
echo | ||
echo "***********************************************************************" | ||
echo | ||
echo "cd into directory build_${BUILD_SUFFIX} and run make to build RAJA" | ||
echo | ||
echo " Please note that you have to have a consistent build environment" | ||
echo " when you make RAJA as cmake may reconfigure; load the appropriate" | ||
echo " cce module (${COMP_VER}) when building." | ||
echo | ||
echo " module load cce-tce/${COMP_VER}" | ||
echo " srun -n1 make" | ||
echo | ||
echo "***********************************************************************" |
Oops, something went wrong.