MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Memcpy

Method Memcpy

tensorflow/stream_executor/host/host_gpu_executor.cc:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool HostExecutor::Memcpy(Stream *stream, void *host_dst,
87 const DeviceMemoryBase &gpu_src, uint64 size) {
88 // Enqueue the [asynchronous] memcpy on the stream (HostStream) associated
89 // with the HostExecutor.
90 void *src_mem = const_cast<void *>(gpu_src.opaque());
91 AsHostStream(stream)->EnqueueTask(
92 [host_dst, src_mem, size]() { memcpy(host_dst, src_mem, size); });
93 return true;
94}
95
96bool HostExecutor::Memcpy(Stream *stream, DeviceMemoryBase *gpu_dst,
97 const void *host_src, uint64 size) {

Callers

nothing calls this directly

Calls 3

AsHostStreamFunction · 0.85
opaqueMethod · 0.80
EnqueueTaskMethod · 0.45

Tested by

no test coverage detected