45 template<
class Functor_iter>
58 uint c1 = sham::min(cbeg, cend);
59 uint c2 = sham::max(cbeg, cend);
64 for (
unsigned int id_s = _startrange; id_s < _endrange; id_s++) {
std::uint32_t u32
32 bit unsigned integer
A buffer allocated in USM (Unified Shared Memory)
void complete_event_state(sycl::event e) const
Complete the event state of the buffer.
const T * get_read_access(sham::EventList &depends_list, SourceLocation src_loc=SourceLocation{}) const
Get a read-only pointer to the buffer's data.
Class to manage a list of SYCL events.
void for_each_in_cell(const u32 &cell_id, Functor_iter &&func_it) const
Iterate over all particles in a given cell.
const u32 * reduc_index_map
Pointer to the reduction index map.
u32 offset_leaf
number of internal cells & offset to retrieve the first leaf
const u32 * endrange
Id of the other end of the index range corresponding to the cell.
const u32 * sort_index_map
Pointer to the sort index map.
bool is_id_leaf(u32 id) const
is the given id a leaf (Note that if there is no internal cell every node is a leaf)
host version of the cell iterator
u32 offset_leaf
number of internal cells & offset to retrieve the first leaf
std::vector< u32 > endrange
End range.
acc get_read_access() const
get read only accessor
std::vector< u32 > reduc_index_map
Reduction index map.
std::vector< u32 > sort_index_map
Sort index map.
Iterator over cells of a BinaryTree.
const sham::DeviceBuffer< u32 > & buf_sort_index_map
Sort index map buffer.
u32 offset_leaf
number of internal cells & offset to retrieve the first leaf
const sham::DeviceBuffer< u32 > & buf_endrange
End range buffer.
acc get_read_access(sham::EventList &deps) const
Get a read-only access to the buffers.
const sham::DeviceBuffer< u32 > & buf_reduc_index_map
Reduction index map buffer.
void complete_event_state(sycl::event e) const
Completes the event state for the associated buffers.