![]() |
Shamrock 2025.10.0
Astrophysical Code
|
Helper class to build morton codes. More...
#include <shamtree/include/shamtree/RadixTreeMortonBuilder.hpp>
Static Public Member Functions | |
| static void | build (sycl::queue &queue, std::tuple< pos_t, pos_t > bounding_box, sycl::buffer< pos_t > &pos_buf, u32 cnt_obj, std::unique_ptr< sycl::buffer< morton_t > > &out_buf_morton, std::unique_ptr< sycl::buffer< u32 > > &out_buf_particle_index_map) |
| build morton code table for the tree | |
| static void | build (sham::DeviceScheduler_ptr dev_sched, std::tuple< pos_t, pos_t > bounding_box, sham::DeviceBuffer< pos_t > &pos_buf, u32 cnt_obj, std::unique_ptr< sycl::buffer< morton_t > > &out_buf_morton, std::unique_ptr< sycl::buffer< u32 > > &out_buf_particle_index_map) |
| static void | build_raw (sycl::queue &queue, std::tuple< pos_t, pos_t > bounding_box, sycl::buffer< pos_t > &pos_buf, u32 cnt_obj, std::unique_ptr< sycl::buffer< morton_t > > &out_buf_morton) |
| build a raw mrton table from a position buffer (no sorting & index map) | |
Helper class to build morton codes.
| morton_t | the morton type used |
| pos_t | the position type (vector) |
| dim | dimensionality |
Definition at line 32 of file RadixTreeMortonBuilder.hpp.
|
static |
Definition at line 68 of file RadixTreeMortonBuilder.cpp.
|
static |
build morton code table for the tree
index map detail : (the given index correspong to the one of an original position)
| queue | the SYCL queue to run on |
| bounding_box | bounding box of the corresponding input coordinates |
| pos_buf | buffer of position to build morton codes from |
| cnt_obj | number of position given in the buffer |
| out_buf_morton | resulting morton buffer (sorted in morton ordering) |
| out_buf_particle_index_map | resulting index map |
Definition at line 27 of file RadixTreeMortonBuilder.cpp.
Here is the call graph for this function:
|
static |
build a raw mrton table from a position buffer (no sorting & index map)
| queue | the SYCL queue to run on |
| bounding_box | bounding box of the corresponding input coordinates |
| pos_buf | buffer of position to build morton codes from |
| cnt_obj | number of position given in the buffer |
| out_buf_morton | resulting morton buffer (unsorted) |
Definition at line 110 of file RadixTreeMortonBuilder.cpp.
Here is the call graph for this function: