From ebf48499fff7174da9cf7e6b13eaa1572a14959a Mon Sep 17 00:00:00 2001 From: Vicente Bolea Date: Thu, 15 Aug 2024 12:15:16 -0400 Subject: [PATCH] Merge pull request #4303 from anagainaru/build-frontier Update the script to build adios with Kokkos for Frontier (cherry picked from commit c837711b998245205188861f87c44d0a814a4ffb) --- .../build-adios2-kokkos-crusher.sh | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 scripts/build_scripts/build-adios2-kokkos-crusher.sh diff --git a/scripts/build_scripts/build-adios2-kokkos-crusher.sh b/scripts/build_scripts/build-adios2-kokkos-crusher.sh deleted file mode 100644 index 0330c44abd..0000000000 --- a/scripts/build_scripts/build-adios2-kokkos-crusher.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# shellcheck disable=SC2191 - -module load rocm/5.4.0 -module load gcc/11.2.0 -module load cmake/3.23.2 -module load craype-accel-amd-gfx90a - -######## User Configurations ######## -Kokkos_HOME=$HOME/kokkos/kokkos -ADIOS2_HOME=$(pwd) -BUILD_DIR=${ADIOS2_HOME}/build-kokkos-crusher -INSTALL_DIR=${ADIOS2_HOME}/install-kokkos-crusher - -num_build_procs=4 - -######## Kokkos ######## -mkdir -p "${BUILD_DIR}/kokkos" -rm -f "${BUILD_DIR}/kokkos/CMakeCache.txt" -rm -rf "${BUILD_DIR}/kokkos/CMakeFiles" - -ARGS=( - -D CMAKE_BUILD_TYPE=RelWithDebInfo - -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" - -D CMAKE_CXX_COMPILER=hipcc - - -D Kokkos_ENABLE_SERIAL=ON - -D Kokkos_ARCH_ZEN3=ON - -D Kokkos_ENABLE_HIP=ON - -D Kokkos_ARCH_VEGA90A=ON - - -D CMAKE_CXX_STANDARD=17 - -D CMAKE_CXX_EXTENSIONS=OFF - -D CMAKE_POSITION_INDEPENDENT_CODE=TRUE - -D BUILD_SHARED_LIBS=ON -) -cmake "${ARGS[@]}" -S "${Kokkos_HOME}" -B "${BUILD_DIR}/kokkos" -cmake --build "${BUILD_DIR}/kokkos" -j${num_build_procs} -cmake --install "${BUILD_DIR}/kokkos" - -######## ADIOS2 ######## -mkdir -p "${BUILD_DIR}/adios2" -rm -f "${BUILD_DIR}/adios2/CMakeCache.txt" -rm -rf "${BUILD_DIR}/adios2/CMakeFiles" - -ARGS_ADIOS=( - -D CMAKE_INSTALL_PREFIX="${INSTALL_DIR}" - -D CMAKE_CXX_COMPILER=g++ - -D CMAKE_C_COMPILER=gcc - - -D ADIOS2_USE_Kokkos=ON - -D Kokkos_ROOT="${INSTALL_DIR}" - - -D CMAKE_POSITION_INDEPENDENT_CODE=TRUE - -D BUILD_SHARED_LIBS=ON -) -cmake "${ARGS_ADIOS[@]}" -S "${ADIOS2_HOME}" -B "${BUILD_DIR}"/adios2 -cmake --build "${BUILD_DIR}/adios2" -j${num_build_procs} -cmake --install "${BUILD_DIR}/adios2"