Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
karras_alg.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
36template<class u_morton>
38 sycl::queue &queue,
39 u32 internal_cell_count,
40 sycl::buffer<u_morton> &in_morton,
41 sycl::buffer<u32> &out_buf_lchild_id,
42 sycl::buffer<u32> &out_buf_rchild_id,
43 sycl::buffer<u8> &out_buf_lchild_flag,
44 sycl::buffer<u8> &out_buf_rchild_flag,
45 sycl::buffer<u32> &out_buf_endrange);
std::uint32_t u32
32 bit unsigned integer
void sycl_karras_alg(sycl::queue &queue, u32 internal_cell_count, sycl::buffer< u_morton > &in_morton, sycl::buffer< u32 > &out_buf_lchild_id, sycl::buffer< u32 > &out_buf_rchild_id, sycl::buffer< u8 > &out_buf_lchild_flag, sycl::buffer< u8 > &out_buf_rchild_flag, sycl::buffer< u32 > &out_buf_endrange)
Karras 2012 algorithm with addition endrange buffer.