Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Enumerations | Functions
key_morton_sort.hpp File Reference
#include "shambackends/sycl.hpp"
#include <memory>
+ Include dependency graph for key_morton_sort.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  SortImplType { MultiKernel }
 

Functions

template<class u_morton , SortImplType impl = MultiKernel>
void sycl_sort_morton_key_pair (sycl::queue &queue, u32 morton_count_rounded_pow, std::unique_ptr< sycl::buffer< u32 > > &buf_index, std::unique_ptr< sycl::buffer< u_morton > > &buf_morton)
 sort morton code and generate remap table
 

Detailed Description

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file key_morton_sort.hpp.

Enumeration Type Documentation

◆ SortImplType

enum SortImplType

Definition at line 21 of file key_morton_sort.hpp.

Function Documentation

◆ sycl_sort_morton_key_pair()

template<class u_morton , SortImplType impl = MultiKernel>
void sycl_sort_morton_key_pair ( sycl::queue &  queue,
u32  morton_count_rounded_pow,
std::unique_ptr< sycl::buffer< u32 > > &  buf_index,
std::unique_ptr< sycl::buffer< u_morton > > &  buf_morton 
)

sort morton code and generate remap table

Template Parameters
u_mortonmorton precision
Parameters
queuesycl queue
morton_count_rounded_powmorton codes count (equal to a power of 2)
buf_indexbuffer countaining the index map corresponding to the sorting
buf_mortonmorton buffer that will be sorted