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 >
 Increment data. More...

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(_data_)
 Same as THEN_INCREMENT, using Tests::Utils::atomic_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 35 of file increment.hpp.

◆ THEN_INCREMENT_ATOMIC

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

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

Definition at line 39 of file increment.hpp.