¶template <typename BoxCopyFn,
typename LinearCopyFn>
void dispatch_nd_region_copy(
const void* source_base,
void* dest_base,
const region_layout& source_layout,
const region_layout& dest_layout,
const region<3>& copy_region,
size_t elem_size,
BoxCopyFn&& box_copy,
LinearCopyFn&& linear_copy)
template <typename BoxCopyFn,
typename LinearCopyFn>
void dispatch_nd_region_copy(
const void* source_base,
void* dest_base,
const region_layout& source_layout,
const region_layout& dest_layout,
const region<3>& copy_region,
size_t elem_size,
BoxCopyFn&& box_copy,
LinearCopyFn&& linear_copy)
Description
From allocation source_base
indexed by source_layout
to allocation dest_base
indexed by dest_layout
, copy copy_region
elements of elem_size
bytes.
Declared at: include/nd_memory.h:123
Template Parameters
- BoxCopyFn
- LinearCopyFn
Parameters
- const void* source_base
- void* dest_base
- const region_layout& source_layout
- const region_layout& dest_layout
- const region<3>& copy_region
- size_t elem_size
- BoxCopyFn&& box_copy
- LinearCopyFn&& linear_copy