MCPcopy Create free account
hub / github.com/NVIDIA/DALI / copyD2D

Function copyD2D

include/dali/core/dev_buffer.h:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28template <typename T>
29void copyD2D(T *dst, const T *src, size_t n, AccessOrder order = {}) {
30 if (order.is_device())
31 CUDA_CALL(cudaMemcpyAsync(dst, src, n*sizeof(T), cudaMemcpyDeviceToDevice, order.stream()));
32 else
33 CUDA_CALL(cudaMemcpy(dst, src, n*sizeof(T), cudaMemcpyDeviceToDevice));
34}
35
36template <typename T>
37void copyD2H(T *dst, const T *src, size_t n, AccessOrder order = {}) {

Callers 5

from_deviceMethod · 0.85
copyMethod · 0.85
reallocateMethod · 0.85

Calls 2

CUDA_CALLFunction · 0.85
streamMethod · 0.45

Tested by

no test coverage detected