Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
convert_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, class vec_prec>
22void sycl_convert_cell_range(
23 sycl::queue &queue,
24
25 u32 leaf_cnt,
26 u32 internal_cnt,
27
28 vec_prec bounding_box_min,
29 vec_prec bounding_box_max,
30
31 std::unique_ptr<sycl::buffer<typename morton_3d::morton_types<u_morton>::int_vec_repr>>
32 &buf_pos_min_cell,
33 std::unique_ptr<sycl::buffer<typename morton_3d::morton_types<u_morton>::int_vec_repr>>
34 &buf_pos_max_cell,
35
36 std::unique_ptr<sycl::buffer<vec_prec>> &buf_pos_min_cell_flt,
37 std::unique_ptr<sycl::buffer<vec_prec>> &buf_pos_max_cell_flt);
std::uint32_t u32
32 bit unsigned integer
Morton curve implementation.