MCPcopy Create free account
hub / github.com/davisking/dlib / memcpy

Function memcpy

dlib/cuda/cuda_data_ptr.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66 // ------------------------------------------------------------------------------------
67
68 void memcpy(
69 void* dest,
70 const cuda_data_void_ptr& src,
71 const size_t num
72 )
73 {
74 DLIB_ASSERT(num <= src.size());
75 if (src.size() != 0)
76 {
77 CHECK_CUDA(cudaMemcpy(dest, src.data(), num, cudaMemcpyDefault));
78 }
79 }
80
81 // ------------------------------------------------------------------------------------
82

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected