Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
shamalgs::atomic::AccessedDeviceCounter< int_t > Class Template Reference

Public Member Functions

 AccessedDeviceCounter (sycl::handler &cgh, DeviceCounter< int_t > &gen)
 
template<sycl::memory_order order>
sycl::atomic_ref< int_t, order, sycl::memory_scope_device, sycl::access::address_space::global_space > attach_atomic () const
 

Public Attributes

sycl::accessor< int_t, 1, sycl::access::mode::read_write, sycl::access::target::device > counter
 

Detailed Description

template<class int_t>
class shamalgs::atomic::AccessedDeviceCounter< int_t >

Definition at line 34 of file DeviceCounter.hpp.

Constructor & Destructor Documentation

◆ AccessedDeviceCounter()

template<class int_t >
shamalgs::atomic::AccessedDeviceCounter< int_t >::AccessedDeviceCounter ( sycl::handler &  cgh,
DeviceCounter< int_t > &  gen 
)
inline

Definition at line 39 of file DeviceCounter.hpp.

Member Function Documentation

◆ attach_atomic()

template<class int_t >
template<sycl::memory_order order>
sycl::atomic_ref< int_t, order, sycl::memory_scope_device, sycl::access::address_space::global_space > shamalgs::atomic::AccessedDeviceCounter< int_t >::attach_atomic ( ) const
inline

Definition at line 48 of file DeviceCounter.hpp.

Member Data Documentation

◆ counter

template<class int_t >
sycl::accessor<int_t, 1, sycl::access::mode::read_write, sycl::access::target::device> shamalgs::atomic::AccessedDeviceCounter< int_t >::counter

Definition at line 37 of file DeviceCounter.hpp.


The documentation for this class was generated from the following file: