This repository contains all the files inside kokkos, the repository's test files (apart from Kokkos). My entire goal for this project is to debug in Kokkos and find any potential issue hidden in internal functions.
This repo will have distinct file containing internal test cases. (Currently it only contains the dynamic rank part, and further will be added in future)
The project fetches Kokkos automatically via CMake FetchContent:
cmake -B build -S . \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_BUILD_TYPE=Release \
-DKokkos_ENABLE_SERIAL=ON \
-DKokkos_ENABLE_OPENMP=ON
cmake --build build
ctest --test-dir build --output-on-failureIf you already have Kokkos built locally, point CMake at it:
# First build Kokkos (one-time):
git clone https://github.com/kokkos/kokkos.git
cmake -B kokkos/build -S kokkos \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_BUILD_TYPE=Release \
-DKokkos_ENABLE_OPENMP=ON \
-DKokkos_ARCH_NATIVE=ON \
-DKokkos_ENABLE_DEPRECATED_CODE_4=OFF
cmake --build kokkos/build
# Then build this project:
cmake -B build -S . -DKokkos_DIR=kokkos/build
cmake --build build
ctest --test-dir build --output-on-failure