kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Tests::Utils::Functors::FetchIncrement< ViewType, MayThrow, MemoryScope > Struct Template Reference

#include <increment.hpp>

Public Member Functions

void operator() () const noexcept(!MayThrow)

Public Attributes

ViewType::non_const_type counter
ViewType::non_const_type value

Detailed Description

template<Kokkos::utils::concepts::ViewOfRank< 0 > ViewType, bool MayThrow = true, typename MemoryScope = desul::MemoryScopeDevice>
struct Tests::Utils::Functors::FetchIncrement< ViewType, MayThrow, MemoryScope >

Definition at line 45 of file increment.hpp.

Member Function Documentation

◆ operator()()

template<Kokkos::utils::concepts::ViewOfRank< 0 > ViewType, bool MayThrow = true, typename MemoryScope = desul::MemoryScopeDevice>
void Tests::Utils::Functors::FetchIncrement< ViewType, MayThrow, MemoryScope >::operator() ( ) const
inlinenoexcept

Definition at line 49 of file increment.hpp.

References Tests::Utils::atomic_fetch_add(), counter, and value.

Member Data Documentation

◆ counter

template<Kokkos::utils::concepts::ViewOfRank< 0 > ViewType, bool MayThrow = true, typename MemoryScope = desul::MemoryScopeDevice>
ViewType::non_const_type Tests::Utils::Functors::FetchIncrement< ViewType, MayThrow, MemoryScope >::counter

Definition at line 46 of file increment.hpp.

◆ value

template<Kokkos::utils::concepts::ViewOfRank< 0 > ViewType, bool MayThrow = true, typename MemoryScope = desul::MemoryScopeDevice>
ViewType::non_const_type Tests::Utils::Functors::FetchIncrement< ViewType, MayThrow, MemoryScope >::value

Definition at line 46 of file increment.hpp.


The documentation for this struct was generated from the following file:
  • /__w/kokkos-execution/kokkos-execution/tests/utils/functors/increment.hpp