Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
append_subset_to.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
21
22namespace shamalgs::primitives {
23
37 template<class T>
39 const sham::DeviceBuffer<T> &buf,
40 const sham::DeviceBuffer<u32> &idxs_buf,
41 u32 nvar,
42 sham::DeviceBuffer<T> &buf_other,
43 u32 start_enque);
44
45} // namespace shamalgs::primitives
std::uint32_t u32
32 bit unsigned integer
A buffer allocated in USM (Unified Shared Memory)
namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
void append_subset_to(const sham::DeviceBuffer< T > &buf, const sham::DeviceBuffer< u32 > &idxs_buf, u32 nvar, sham::DeviceBuffer< T > &buf_other, u32 start_enque)
Appends a subset of elements from one buffer to another.