diff --git a/scripts/build_scripts/build-adios2-cuda-perlmutter.sh b/scripts/build_scripts/build-adios2-cuda-perlmutter.sh new file mode 100644 index 0000000000..801d945258 --- /dev/null +++ b/scripts/build_scripts/build-adios2-cuda-perlmutter.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +module load cudatoolkit/11.7 +module load gcc/11.2.0 +module load cmake/3.24.3 +module refresh + +######## User Configurations ######## +ADIOS2_HOME=$(pwd) +BUILD_DIR=${ADIOS2_HOME}/build-cuda-perlmutter +INSTALL_DIR=${ADIOS2_HOME}/install-cuda-perlmutter + +num_build_procs=4 + +######## ADIOS2 ######## +mkdir -p "${BUILD_DIR}" +rm -f "${BUILD_DIR}/CMakeCache.txt" +rm -rf "${BUILD_DIR}/CMakeFiles" + +ARGS_ADIOS=( + -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" + -D BUILD_TESTING=OFF + -D ADIOS2_BUILD_EXAMPLES=OFF + -D CMAKE_CXX_COMPILER=g++ + -D CMAKE_C_COMPILER=gcc + + -D ADIOS2_USE_CUDA=ON + + -D CMAKE_POSITION_INDEPENDENT_CODE=TRUE + -D BUILD_SHARED_LIBS=ON + -D ADIOS2_USE_Fortran=OFF +) +cmake "${ARGS_ADIOS[@]}" -S "${ADIOS2_HOME}" -B "${BUILD_DIR}" +cmake --build "${BUILD_DIR}" -j${num_build_procs} +cmake --install "${BUILD_DIR}" diff --git a/scripts/build_scripts/build-adios2-cuda-summit.sh b/scripts/build_scripts/build-adios2-cuda-summit.sh new file mode 100644 index 0000000000..cf813af7b5 --- /dev/null +++ b/scripts/build_scripts/build-adios2-cuda-summit.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +module load gcc/10.2 +module load cuda/11.5 +module load cmake/3.23 +module refresh + +######## User Configurations ######## +ADIOS2_HOME=$(pwd) +BUILD_DIR=${ADIOS2_HOME}/build-cuda-summit +INSTALL_DIR=${ADIOS2_HOME}/install-cuda-summit + +num_build_procs=4 + +######## ADIOS2 ######## +mkdir -p "${BUILD_DIR}" +rm -f "${BUILD_DIR}/CMakeCache.txt" +rm -rf "${BUILD_DIR}/CMakeFiles" + +ARGS_ADIOS=( + -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" + -D BUILD_TESTING=OFF + -D ADIOS2_BUILD_EXAMPLES=OFF + -D CMAKE_CXX_COMPILER=g++ + -D CMAKE_C_COMPILER=gcc + + -D ADIOS2_USE_CUDA=ON + + -D CMAKE_POSITION_INDEPENDENT_CODE=TRUE + -D BUILD_SHARED_LIBS=ON +) +cmake "${ARGS_ADIOS[@]}" -S "${ADIOS2_HOME}" -B "${BUILD_DIR}" +cmake --build "${BUILD_DIR}" -j${num_build_procs} +cmake --install "${BUILD_DIR}"