Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
streamCompactExclScan.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
20#include "shambackends/sycl.hpp"
21
22namespace shamalgs::numeric::details {
23
32 std::tuple<std::optional<sycl::buffer<u32>>, u32> stream_compact_excl_scan(
33 sycl::queue &q, sycl::buffer<u32> &buf_flags, u32 len);
34
44 const sham::DeviceScheduler_ptr &sched, sham::DeviceBuffer<u32> &buf_flags, u32 len);
45
46} // namespace shamalgs::numeric::details
std::uint32_t u32
32 bit unsigned integer
A buffer allocated in USM (Unified Shared Memory)
std::tuple< std::optional< sycl::buffer< u32 > >, u32 > stream_compact_excl_scan(sycl::queue &q, sycl::buffer< u32 > &buf_flags, u32 len)
Stream compaction algorithm using exclusive summation.