MUDA
Loading...
Searching...
No Matches
kernel_copy_construct.h
1#pragma once
2#include <cuda.h>
3#include <muda/buffer/buffer_fwd.h>
4
5namespace muda::details::buffer
6{
7// copy construct 0D
8template <typename T>
9MUDA_HOST void kernel_copy_construct(cudaStream_t stream,
10 VarView<T> dst,
11 CVarView<T> src);
12
13// copy construct 1D
14template <typename T>
15MUDA_HOST void kernel_copy_construct(int grid_dim,
16 int block_dim,
17 cudaStream_t stream,
18 BufferView<T> dst,
19 CBufferView<T> src);
20
21// copy construct 2D
22template <typename T>
23MUDA_HOST void kernel_copy_construct(int grid_dim,
24 int block_dim,
25 cudaStream_t stream,
26 Buffer2DView<T> dst,
27 CBuffer2DView<T> src);
28
29// copy construct 3D
30template <typename T>
31MUDA_HOST void kernel_copy_construct(int grid_dim,
32 int block_dim,
33 cudaStream_t stream,
34 Buffer3DView<T> dst,
35 CBuffer3DView<T> src);
36} // namespace muda::details::buffer
37
38#include "details/kernel_copy_construct.inl"