A fork of the official Kokkos repository to make it compatible with Symbelmynë2's unit system
  • C++ 96.1%
  • CMake 2.6%
  • Shell 0.6%
  • Groovy 0.5%
  • Python 0.1%
Find a file
Guillaume Tcherniatinsky 0d772b9ba2
Some checks failed
Scorecard analysis workflow / Scorecard analysis (push) Failing after 5s
staged-continuous-integration / files-changed (push) Failing after 4s
staged-continuous-integration / smoketest (push) Failing after 0s
staged-continuous-integration / clang-smoketest (push) Has been skipped
staged-continuous-integration / pre-commit (push) Failing after 2m18s
staged-continuous-integration / osx-ci-3 (push) Has been skipped
staged-continuous-integration / osx-ci-4 (push) Has been skipped
staged-continuous-integration / CI (OPENMP, clang++, ubuntu:latest) (push) Has been skipped
staged-continuous-integration / CI (OPENMP, g++, ubuntu:latest) (push) Has been skipped
staged-continuous-integration / pre-commit-check (push) Failing after 0s
staged-continuous-integration / codeql (push) Failing after 0s
staged-continuous-integration / windows (push) Failing after 0s
staged-continuous-integration / linux (push) Failing after 0s
staged-continuous-integration / osx-x64 (push) Failing after 0s
staged-continuous-integration / performance-test (push) Failing after 0s
staged-continuous-integration / Analyze (push) Has been skipped
staged-continuous-integration / Cuda VS-2022 (push) Has been skipped
staged-continuous-integration / Serial VS-2022 (push) Has been skipped
staged-continuous-integration / Modules VS-2022 (push) Has been skipped
staged-continuous-integration / Threads Clang VS-2022 (push) Has been skipped
staged-continuous-integration / CI (arm64, OPENMP, RelWithDebInfo, -DKokkos_ARCH_NATIVE=ON -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, ubuntu:latest, 23) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Debug, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", clang++, , fedora:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (arm64, SERIAL, Release, -DKokkos_ARCH_NATIVE=ON -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (arm64, THREADS, RelWithDebInfo, -DKokkos_ARCH_NATIVE=ON -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Debug, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", clang++, , ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Debug, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, , fedora:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Debug, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, , ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Debug, icpx, -fp-model=precise -Wno-pass-failed, ubuntu:intel, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, RelWithDebInfo, g++-12, ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Release, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", clang++, , fedora:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Release, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", clang++, , ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Release, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, , fedora:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Release, -DCMAKE_CXX_CLANG_TIDY="clang-tidy;-warnings-as-errors=*", g++, , ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / CI (x64, OPENMP, Release, icpx, -fp-model=precise -Wno-pass-failed -fsanitize=address,undefined -fno-sanitize=function -fno-sanitize=vptr -fno-sanitize-recover=all, ubuntu:intel, -fsanitize=address,undefined -fno-sanitize=function -fno-sanitize=vptr -f… (push) Has been skipped
staged-continuous-integration / CI (x64, SERIAL, RelWithDebInfo, clang++, -ffinite-math-only -Wno-nan-infinity-disabled -fsanitize=address,undefined -fno-sanitize=function -fno-sanitize=vptr -fno-sanitize-recover=all, ubuntu:latest, -fsanitize=address,undefined -fno-sanitize=function… (push) Has been skipped
staged-continuous-integration / CI (x64, THREADS, RelWithDebInfo, clang++, -fsanitize=address,undefined -fno-sanitize=function -fno-sanitize=vptr -fno-sanitize-recover=all, ubuntu:latest, -fsanitize=address,undefined -fno-sanitize=function -fno-sanitize=vptr -fno-sanitize-recover=all… (push) Has been skipped
staged-continuous-integration / CI (x64, THREADS, RelWithDebInfo, g++, ubuntu:latest, 23) (push) Has been skipped
staged-continuous-integration / CI (x86, OPENMP, RelWithDebInfo, -DKokkos_ENABLE_HWLOC=OFF, g++, -m32, ubuntu:latest, 20) (push) Has been skipped
staged-continuous-integration / osx-ci (push) Has been skipped
staged-continuous-integration / osx-ci-1 (push) Has been skipped
staged-continuous-integration / osx-ci-2 (push) Has been skipped
fix: remove static assert to make Kokkos::complex usable with custom floating point number types
2026-06-08 11:44:52 +02:00
.github Only run GitHub actions for push events to the kokkos/kokkos repository (#9207) 2026-05-27 17:43:17 -06:00
.gitlab Test with external mdspan 2026-05-04 15:15:01 -04:00
.jenkins Add a minimal g++-16 modules build (#9149) 2026-05-26 15:39:23 -06:00
algorithms Fix(Random): Implicit-widening-of-multiplication-result (#9208) 2026-05-27 16:25:32 -06:00
benchmarks Remove unused <sys/time.h> includes 2026-05-19 12:50:57 +02:00
bin nvcc_wrapper: Handle response files. (#9175) 2026-05-20 11:31:18 -06:00
cmake CMake:Remove dead-code in cuda compiler_id_cmake (#9204) 2026-05-26 11:54:59 -06:00
containers Implement create_mirror_view_and_copy one argument convenience overload (#9185) 2026-05-28 11:13:24 -06:00
core fix: remove static assert to make Kokkos::complex usable with custom floating point number types 2026-06-08 11:44:52 +02:00
docs Fix link in CONTRIBUTING 2026-02-24 07:50:01 -05:00
example Add a minimal MSVC modules build (#9148) 2026-05-20 11:33:36 -06:00
scripts Add a minimal g++-16 modules build (#9149) 2026-05-26 15:39:23 -06:00
simd simd-sve: replace memory load by zip-lane-set in gen-based simd constructors (#9192) 2026-05-23 06:52:09 -06:00
tpls Update desul commit hash value 2026-04-28 16:23:36 -04:00
.clang-format clang-format 16 2024-08-08 08:43:33 -04:00
.clang-tidy Re-enable bugprone-invalid-enum-default-initialization check 2026-03-02 15:39:25 -05:00
.cmake-format.py Use cmake-format for enforcing uniform formatting in CMake files (#7356) 2024-09-27 19:36:12 -06:00
.git-blame-ignore-revs Ignore cmake-format changes in blame 2024-10-06 09:49:28 -04:00
.gitattributes Update export-ignore directives (add mailmap and pre-commit, drop appveyor) 2025-11-14 06:43:11 -05:00
.gitignore git: add CMakeUserPresets.json to the gitignore 2022-04-20 15:42:45 -07:00
.mailmap Map author/committer names and/or E-Mail addresses (#8537) 2025-10-09 10:56:19 -06:00
.pre-commit-config.yaml Bump https://github.com/Lucas-C/pre-commit-hooks from v1.5.5 to 1.5.6 2026-05-06 20:58:12 +00:00
CHANGELOG.md Cherry-pick 5.1.1 changelog into develop 2026-04-28 16:34:32 -04:00
CITATION.cff Add a CITATION.cff file (#7008) 2024-05-20 17:52:21 -04:00
CMakeLists.txt Bump develop version to 5.1.99 2026-03-04 18:41:59 -05:00
COPYRIGHT.md nextsilicon: Initial NextSilicon backend support 2026-04-02 16:22:02 -05:00
CTestConfig.cmake Test CDash on HPSF GitLab CI (#7667) 2025-01-23 06:06:23 +09:00
LICENSE Fix trailing whitespaces 2025-11-12 16:26:55 -05:00
README.md Update Kokkos version in README.md 2026-04-06 10:46:00 -04:00

Kokkos

OpenSSF Best Practices

Kokkos: Core Libraries

Kokkos Core implements a programming model in C++ for writing performance portable applications targeting all major HPC platforms. For that purpose it provides abstractions for both parallel execution of code and data management. Kokkos is designed to target complex node architectures with N-level memory hierarchies and multiple types of execution resources. It currently can use CUDA, HIP, SYCL, HPX, OpenMP and C++ threads as backend programming models with several other backends in development.

Kokkos Core is part of the Kokkos C++ Performance Portability Programming Ecosystem.

Kokkos is a Linux Foundation project.

Learning about Kokkos

To start learning about Kokkos:

  • Kokkos Lectures: they contain a mix of lecture videos and hands-on exercises covering all the important capabilities.

  • Programming guide: contains in "narrative" form a technical description of the programming model, machine model, and the main building blocks like the Views and parallel dispatch.

  • API reference: organized by category, i.e., core, algorithms, containers, and simd.

  • Use cases and Examples: a serie of examples ranging from how to use Kokkos with MPI to Fortran interoperability.

Obtaining Kokkos

The latest release of Kokkos can be obtained from the GitHub releases page.

The current release is 5.1.0.

curl -OJ -L https://github.com/kokkos/kokkos/releases/download/5.1.0/kokkos-5.1.0.tar.gz
# Or with wget
wget https://github.com/kokkos/kokkos/releases/download/5.1.0/kokkos-5.1.0.tar.gz
# Or with git
git clone --depth=2 --branch 5.1.0 https://github.com/kokkos/kokkos.git

To clone the latest development version of Kokkos from GitHub:

git clone --branch develop  https://github.com/kokkos/kokkos.git

Building Kokkos

To build Kokkos, you will need to have a C++ compiler that supports C++20 or later. All requirements including minimum and primary tested compiler versions can be found here.

Building and installation instructions are described here.

You can also install Kokkos using Spack: spack install kokkos. Available configuration options can be displayed using spack info kokkos.

For the complete documentation: kokkos.org/kokkos-core-wiki/

Support

For questions find us on Slack: https://kokkosteam.slack.com or open a GitHub issue.

For non-public questions send an email to: crtrott(at)sandia.gov

Contributing

Please see this page for details on how to contribute.

Citing Kokkos

Please see the following page.

License

License

The full license statement used in all headers is available here or here.