This repository is a playground for graph-based dispatching of asynchronous workloads using Kokkos and the P2300 formalism.
Many references are in our references.
Start by reading:
- @cite P2300R10
- @cite henriksen-extending-2025
- https://intel.github.io/cpp-baremetal-senders-and-receivers/
- https://en.cppreference.com/w/cpp/experimental/execution
We can think of a graph (e.g. Kokkos::Graph) as a multi-shot sender chain.
- tests
- stdexec is dedicated to pure
stdexectesting and exploration. - graph is dedicated to implementing
Kokkos::Graphà lastdexec(P2300). Test files are always a triplet, and each use case lives in its own subdirectory. Thetest_stdexec.cppis thestdexecversion of the test. It is compiled and tested. Thetest_kokkos.cppis theKokkosversion of the test. It is compiled and tested. Thetest_outlook.cppis the drafted à la P2300Kokkosversion. It possibly cannot be compiled and should be considered drafted pseudo-code (for now). Note that some things might remain to be decided or drafted or written and are marked with@todo. For instance:diamond/test_stdexec.cppdiamond/test_kokkos.cppdiamond/test_outlook.cpp
- stdexec is dedicated to pure
The function that creates the starting point for the chain of graph nodes has been
named create_graph. A first attempt was to name it just, but it felt wrong.
In general, avoid naming things in an attempt to mimic
stdexecif the intent of the function is not strictly similar to the equivalent instdexec. Otherwise, it will just be confusing.
This repository provides several Docker images. They have the same name, only the tag changes.
gnu-OpenMPuses theg++compiler, and theKokkos::OpenMPbackend is enabled.clang-OpenMPuses theclang++compiler, and theKokkos::OpenMPbackend is enabled.clang-HPXuses theclang++compiler, and theKokkos::Experimental::HPXbackend is enabled.
For the clang-HPX image, we also provide an ARM64 version.