Copy data from the source
buffer.
Prototype
void copy_from_host(size_t batch_idx, const void* buf, size_t size, size_t offset);
Parameters
The following table lists thecopy_from_host
function arguments.
Type | Name | Description |
---|---|---|
size_t | batch_idx | The batch index |
const void* | buf | Source buffer start address |
size_t | size | Data size to be copied |
size_t | offset | The start offset to be copied |
Returns
None.