Shamrock
2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
shamalgs
include
shamalgs
primitives
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
20
#include "
shambackends/DeviceBuffer.hpp
"
21
22
namespace
shamalgs::primitives
{
23
37
template
<
class
T>
38
void
append_subset_to
(
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
DeviceBuffer.hpp
u32
std::uint32_t u32
32 bit unsigned integer
Definition
aliases_int.hpp:27
sham::DeviceBuffer
A buffer allocated in USM (Unified Shared Memory)
Definition
DeviceBuffer.hpp:106
shamalgs::primitives
namespace for primitive algorithm (e.g. sort, scan, reductions, ...)
Definition
ImplControl.hpp:23
shamalgs::primitives::append_subset_to
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.
Definition
append_subset_to.cpp:45
Generated on Wed May 13 2026 13:21:48 for Shamrock by
1.9.8