Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
key_morton_sort.hpp
Go to the documentation of this file.
1// -------------------------------------------------------//
2//
3// SHAMROCK code for hydrodynamics
4// Copyright (c) 2021-2026 Timothée David--Cléris <tim.shamrock@proton.me>
5// SPDX-License-Identifier: CeCILL Free Software License Agreement v2.1
6// Shamrock is licensed under the CeCILL 2.1 License, see LICENSE for more information
7//
8// -------------------------------------------------------//
9
10#pragma once
11
18#include "shambackends/sycl.hpp"
19#include <memory>
20
21enum SortImplType { MultiKernel };
22
32template<class u_morton, SortImplType impl = MultiKernel>
34 sycl::queue &queue,
35 u32 morton_count_rounded_pow,
36 std::unique_ptr<sycl::buffer<u32>> &buf_index,
37 std::unique_ptr<sycl::buffer<u_morton>> &buf_morton);
std::uint32_t u32
32 bit unsigned integer
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