MCPcopy Create free account
hub / github.com/apache/singa / CopyToFrom

Method CopyToFrom

src/core/device/cuda_gpu.cc:171–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void CudaGPU::CopyToFrom(void* dst, const void* src, size_t nBytes,
172 CopyDirection direction, Context* ctx) {
173 // cudaMemcpy(dst, src, nBytes, copyKind[direction]);
174 cudaMemcpyAsync(dst, src, nBytes, copyKind[direction], ctx_.stream);
175}
176
177size_t CudaGPU::GetAllocatedMem() {
178 if (pool_ != nullptr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected