kokkos-execution 0.0.1
Loading...
Searching...
No Matches
increment.hpp File Reference
#include <type_traits>
#include "kokkos-execution/stdexec.hpp"
#include "Kokkos_Core.hpp"
#include "kokkos-utils/concepts/View.hpp"
#include "tests/utils/atomic.hpp"

Go to the source code of this file.

Classes

struct  Tests::Utils::Functors::Increment< ViewType, MayThrow, Atomic, MemoryScope >
 Increment data. More...
struct  Tests::Utils::Functors::FetchIncrement< ViewType, MayThrow, MemoryScope >

Namespaces

namespace  Tests
namespace  Tests::Utils
namespace  Tests::Utils::Functors

Macros

#define THEN_INCREMENT(_data_)
 Add a then using Tests::Utils::Functors::Increment that may throw. // NOLINTNEXTLINE(cppcoreguidelines-macro-usage).
#define THEN_INCREMENT_ATOMIC(_scope_, _data_)
 Same as THEN_INCREMENT, using Tests::Utils::atomic_fetch_add. // NOLINTNEXTLINE(cppcoreguidelines-macro-usage).

Macro Definition Documentation

◆ THEN_INCREMENT

#define THEN_INCREMENT ( _data_)
Value:
stdexec::then(Tests::Utils::Functors::Increment<std::remove_cvref_t<decltype(_data_)>, true, false>{.data = _data_})

Add a then using Tests::Utils::Functors::Increment that may throw. // NOLINTNEXTLINE(cppcoreguidelines-macro-usage).

Definition at line 59 of file increment.hpp.

◆ THEN_INCREMENT_ATOMIC

#define THEN_INCREMENT_ATOMIC ( _scope_,
_data_ )
Value:
stdexec::then( \
std::remove_cvref_t<decltype(_data_)>, \
true, \
true, \
desul::MemoryScope##_scope_ \
>{.data = _data_})

Same as THEN_INCREMENT, using Tests::Utils::atomic_fetch_add. // NOLINTNEXTLINE(cppcoreguidelines-macro-usage).

Definition at line 63 of file increment.hpp.