Releasing kokkos-execution: a customization of std::execution for Kokkos
We are happy to announce the public release of
kokkos-execution.
kokkos-execution provides a customization of std::execution for Kokkos.
kokkos-execution is experimental. The repository is intended for research on the software design
and implementation choices. It also serves to explore new opportunities enabled by
std::execution and its structured concurrency approach for implementing HPC applications,
as well as to collaborate with other developers.
#include "Kokkos_Core.hpp"
#include "kokkos-execution/execution_space.hpp"
int main() {
const Kokkos::ScopeGuard guard{};
{
const Kokkos::DefaultExecutionSpace exec {};
const Kokkos::Execution::ExecutionSpaceContext ctx{exec};
stdexec::sync_wait(stdexec::schedule(ctx.get_scheduler()) | stdexec::then(KOKKOS_LAMBDA(){Kokkos::printf("hello world");}));
}
return EXIT_SUCCESS;
}