Skip to content

Instantly share code, notes, and snippets.

@dineshadepu
Created October 30, 2023 15:57
Show Gist options
  • Save dineshadepu/881c35ec5ff3dea5c2710a9f97db034e to your computer and use it in GitHub Desktop.
Save dineshadepu/881c35ec5ff3dea5c2710a9f97db034e to your computer and use it in GitHub Desktop.
ArborX installation

Install Kokkos, for GPU build

Install benchmark

Can be found https://github.com/google/benchmark#requirements here

Install Boost

  1. Download from https://www.boost.org/users/history/version_1_82_0.html
  2. Unzip and create a folder 'install'
  3. Installation instructions are https://www.boost.org/doc/libs/1_83_0/more/getting_started/unix-variants.html#prepare-to-use-a-boost-library-binary

Install ArborX

export ARBORX_INSTALL_DIR=/home/dinesh/post_doc/softwares/kokkos/build/install
export BOOST_INSTALL_DIR=/home/dinesh/post_doc/softwares/boost_1_82_0/install

OPTIONS=(
    -D CMAKE_INSTALL_PREFIX="${ARBORX_INSTALL_DIR}"
    -D ARBORX_ENABLE_MPI=ON
    -D ARBORX_ENABLE_EXAMPLES=ON
    -D Kokkos_ROOT="${KOKKOS_INSTALL_DIR}"
    -D CMAKE_CXX_COMPILER="${KOKKOS_INSTALL_DIR}/bin/nvcc_wrapper" # only for CUDA-enabled Kokkos
    -D CMAKE_CXX_EXTENSIONS=OFF # required by Kokkos
    )
cmake "${OPTIONS[@]}" "${ARBORX_DIR:-../}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment