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, kokkos_pair, raw mdspan (a bit) and further will be added in future)
List of contributions that have been made to the UPSTREAM repo Kokkos:
This is here for me to track what has been changed through my end.
kokks:
- Fix ambiguous overload in Kokkos::resize with ExecutionSpace .
- Fix silent state mutation in tuning variable ID registry
- Fix: Add bounds check to prevent OOB access in tuner dimension indexing
- Fix: Correct type reference in IndexTypeTrait error reporting
- Fix: unset the variable _UPPERCASE_CMAKE_BUILD_TYPE properly due to missing _
- CMake:Remove dead-code in cuda compiler_id_cmake
- small typo in kokkos_function.cmake
- Fix: Address FIXMEs in DynRankView required_allocation_size and add unit tests
- Fix typos, Bash quoting, and variable initialization in compiler scripts
- Refactoring AMD architecture loops
- A small typo in README.md
- Duplicate source file accumulation in CMake test generation
Mdspan:
Kokkos_Core_Wiki:
-
CMake_project: In this repository systematically approach which is used in Kokkos cmake files, using official CMake and as well as Kokkos_CMake for proper investigation.
-
Cuda_code: In this repository the kokkos official cuda folder investigation Kokkos_Cuda and as well as Cuda official documentations used for proper investigation.
-
DiscDomComKok : In this repository I tried some idea and tried some initial phase though not able to perfectly implement it. But I could work in future. If you find it useful, you can knock me. We can discuss grabbing with coffee. I would really appreciate.
You can build with either way.
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-failureNote : coding agent was used only for code review as i work independently, i need a tool for checking things, that's why.
Thank you for your time.
Reference: Kokkos Core Library