git clone https://github.com/kokkos/kokkos.git
module use /opt/scorec/spack/rhel9/v0201_4/lmod/linux-rhel9-x86_64/Core/
module load gcc/12.3.0-iil3lno mpich/4.1.1-xpoyz4t cuda/12.1.1-zxa4msk
module load cmake/3.20.0
cmake -S . \
-B build \
-DCMAKE_CXX_COMPILER=g++ \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_INSTALL_PREFIX=/lore/<username>/Kokkos/Install \
-DKokkos_ENABLE_OPENMP=ON
Build and Install: Run the config.sh file with the command . config.sh
and go to the build
directory (cd build
). Run the command make install
.
Add in your environment variable: Add the executable to the LD_LIBRARY_PATH
environment variable. Use the following command to add to the environment variable.
export LD_LIBRARY_PATH=/lore/<username>/Kokkos/Install/lib64:$LD_LIBRARY_PATH
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.