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

Utility to count group id on device. More...

Public Member Functions

 DeviceCounter (sycl::queue &q)
 
AccessedDeviceCounter< int_t > get_access (sycl::handler &cgh)
 

Public Attributes

sycl::buffer< int_t > counter
 

Detailed Description

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

Utility to count group id on device.

Template Parameters
int_t

Definition at line 58 of file DeviceCounter.hpp.

Constructor & Destructor Documentation

◆ DeviceCounter()

template<class int_t >
shamalgs::atomic::DeviceCounter< int_t >::DeviceCounter ( sycl::queue &  q)
inlineexplicit

Definition at line 62 of file DeviceCounter.hpp.

Member Function Documentation

◆ get_access()

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

Definition at line 66 of file DeviceCounter.hpp.

Member Data Documentation

◆ counter

template<class int_t >
sycl::buffer<int_t> shamalgs::atomic::DeviceCounter< int_t >::counter

Definition at line 60 of file DeviceCounter.hpp.


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