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

Method AsyncWrite

catboost/cuda/cuda_lib/cuda_kernel_buffer.h:153–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151 }
152
153 void AsyncWrite(const TVector<T>& data,
154 const TCudaStream& stream) const {
155 CB_ENSURE(data.size() <= Size());
156 NCudaLib::TMemoryCopier<EPtrType::Host, Type>::CopyMemoryAsync(data.data(), Get(), data.size(), stream);
157 }
158
159 void Write(const TVector<T>& data, const TCudaStream& stream) const {
160 if (Type == EPtrType::CudaHost) {

Callers

nothing calls this directly

Calls 5

CopyMemoryAsyncFunction · 0.85
SizeFunction · 0.50
GetFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected