Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
compute_ranges.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
19#include <memory>
20
21template<class u_morton>
22void sycl_compute_cell_ranges(
23
24 sycl::queue &queue,
25
26 u32 leaf_cnt,
27 u32 internal_cnt,
28 std::unique_ptr<sycl::buffer<u_morton>> &buf_morton,
29 std::unique_ptr<sycl::buffer<u32>> &buf_lchild_id,
30 std::unique_ptr<sycl::buffer<u32>> &buf_rchild_id,
31 std::unique_ptr<sycl::buffer<u8>> &buf_lchild_flag,
32 std::unique_ptr<sycl::buffer<u8>> &buf_rchild_flag,
33 std::unique_ptr<sycl::buffer<u32>> &buf_endrange,
34 std::unique_ptr<sycl::buffer<typename shamrock::sfc::MortonCodes<u_morton, 3>::int_vec_repr>>
35 &buf_pos_min_cell,
36 std::unique_ptr<sycl::buffer<typename shamrock::sfc::MortonCodes<u_morton, 3>::int_vec_repr>>
37 &buf_pos_max_cell);
std::uint32_t u32
32 bit unsigned integer
Morton curve implementation.