![]() |
Shamrock 2025.10.0
Astrophysical Code
|
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 |
Accesses version of DynamicIdGenerator see doc for example (DynamicIdGenerator)
| int_t | the int type used by the counter (preferentially u32 or u64) |
| group_size | the group size used in SYCL |
Definition at line 84 of file DynamicIdGenerator.hpp.
|
inline |
Definition at line 91 of file DynamicIdGenerator.hpp.
|
inline |
compute the local ids and return the result DynamicId
| it | the nd_item given by SYCL |
Definition at line 101 of file DynamicIdGenerator.hpp.
| 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.
| sycl::local_accessor<int_t, 1> shamalgs::atomic::AccessedDynamicIdGenerator< int_t, group_size >::local_group_id |
Definition at line 89 of file DynamicIdGenerator.hpp.