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

Accesses version of DynamicIdGenerator see doc for example (DynamicIdGenerator) More...

#include <shamalgs/include/shamalgs/atomic/DynamicIdGenerator.hpp>

Public Member Functions

 AccessedDynamicIdGenerator (sycl::handler &cgh, DynamicIdGenerator< int_t, group_size > &gen)
 
DynamicId< int_t > compute_id (sycl::nd_item< 1 > it) const
 compute the local ids and return the result DynamicId
 

Public Attributes

sycl::accessor< int_t, 1, sycl::access::mode::read_write, sycl::access::target::device > group_id
 
sycl::local_accessor< int_t, 1 > local_group_id
 

Detailed Description

template<class int_t, u32 group_size>
class shamalgs::atomic::AccessedDynamicIdGenerator< int_t, group_size >

Accesses version of DynamicIdGenerator see doc for example (DynamicIdGenerator)

Template Parameters
int_tthe int type used by the counter (preferentially u32 or u64)
group_sizethe group size used in SYCL

Definition at line 84 of file DynamicIdGenerator.hpp.

Constructor & Destructor Documentation

◆ AccessedDynamicIdGenerator()

template<class int_t , u32 group_size>
shamalgs::atomic::AccessedDynamicIdGenerator< int_t, group_size >::AccessedDynamicIdGenerator ( sycl::handler &  cgh,
DynamicIdGenerator< int_t, group_size > &  gen 
)
inline

Definition at line 91 of file DynamicIdGenerator.hpp.

Member Function Documentation

◆ compute_id()

template<class int_t , u32 group_size>
DynamicId< int_t > shamalgs::atomic::AccessedDynamicIdGenerator< int_t, group_size >::compute_id ( sycl::nd_item< 1 >  it) const
inline

compute the local ids and return the result DynamicId

Parameters
itthe nd_item given by SYCL
Returns
DynamicId<int_t> the dynamic id

Definition at line 101 of file DynamicIdGenerator.hpp.

Member Data Documentation

◆ group_id

template<class int_t , u32 group_size>
sycl::accessor<int_t, 1, sycl::access::mode::read_write, sycl::access::target::device> shamalgs::atomic::AccessedDynamicIdGenerator< int_t, group_size >::group_id

Definition at line 87 of file DynamicIdGenerator.hpp.

◆ local_group_id

template<class int_t , u32 group_size>
sycl::local_accessor<int_t, 1> shamalgs::atomic::AccessedDynamicIdGenerator< int_t, group_size >::local_group_id

Definition at line 89 of file DynamicIdGenerator.hpp.


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