kokkos-execution 0.0.1
Loading...
Searching...
No Matches
env.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_IMPL_ENV_HPP
2#define KOKKOS_EXECUTION_IMPL_ENV_HPP
3
5
7#define KOKKOS_EXECUTION_FORWARDING_GET_ENV(_type_, _obj_) \
8 [[nodiscard]] \
9 constexpr auto get_env() const noexcept -> ::stdexec::__fwd_env_t<::stdexec::env_of_t<_type_>> { \
10 return ::stdexec::__fwd_env(::stdexec::get_env(_obj_)); \
11 }
12
14#define KOKKOS_EXECUTION_GET_ENV(_type_, _obj_) \
15 [[nodiscard]] \
16 constexpr auto get_env() const noexcept -> stdexec::env_of_t<_type_> { \
17 return stdexec::get_env(_obj_); \
18 }
19
20#endif // KOKKOS_EXECUTION_IMPL_ENV_HPP