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

Method Run

catboost/cuda/cuda_util/helpers.cpp:112–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 Y_SAVELOAD_DEFINE(Source, Dest);
111
112 void Run(const TCudaStream& stream) const {
113 CB_ENSURE(Dest.Size() == 1, LabeledOutput(Dest.Size()));
114 CB_ENSURE(Dest.ObjectSize() == Source.ObjectSize(), LabeledOutput(Dest.ObjectSize(), Source.ObjectSize()));
115 if (Source.Size()) {
116 CopyMemoryAsync(Source.GetForObject(Source.ObjectCount() - 1), Dest.Get(), Dest.ObjectSize(), stream);
117 } else {
118 NKernel::FillBuffer(Dest.Get(), (T)0, Dest.ObjectSize(), stream.GetStream());
119 }
120 }
121 };
122}
123

Callers

nothing calls this directly

Calls 7

CopyMemoryAsyncFunction · 0.85
ObjectSizeMethod · 0.80
GetForObjectMethod · 0.80
SizeMethod · 0.45
ObjectCountMethod · 0.45
GetMethod · 0.45
GetStreamMethod · 0.45

Tested by

no test coverage detected