MCPcopy Create free account
hub / github.com/catboost/catboost / CopyMemoryAsync

Function CopyMemoryAsync

catboost/cuda/cuda_lib/cuda_base.h:236–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234
235 template <class T>
236 static void CopyMemoryAsync(const T* from, T* to, ui64 size, const TCudaStream& stream) {
237 CUDA_SAFE_CALL(cudaMemcpyAsync(static_cast<void*>(to), static_cast<void*>(const_cast<T*>(from)), sizeof(T) * size, cudaMemcpyDefault, stream.GetStream()));
238 }
239
240 inline void SetDevice(int devId) {
241 CUDA_SAFE_CALL(cudaSetDevice(devId));

Callers 15

operator[]Method · 0.85
AsyncWriteMethod · 0.85
ReadMethod · 0.85
ExecMethod · 0.85
SubmitAsyncExecImplMethod · 0.85
SubmitTasksMethod · 0.85
operator()Method · 0.85
Y_UNIT_TESTFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls 1

GetStreamMethod · 0.45

Tested by 1

Y_UNIT_TESTFunction · 0.68