MCPcopy Create free account
hub / github.com/KomputeProject/kompute / record

Method record

src/OpTensorSyncDevice.cpp:27–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void
28OpTensorSyncDevice::record(const vk::CommandBuffer& commandBuffer)
29{
30 KP_LOG_DEBUG("Kompute OpTensorSyncDevice record called");
31
32 for (size_t i = 0; i < this->mTensors.size(); i++) {
33 if (this->mTensors[i]->tensorType() == Tensor::TensorTypes::eDevice) {
34 this->mTensors[i]->recordCopyFromStagingToDevice(commandBuffer);
35 }
36 }
37}
38
39void
40OpTensorSyncDevice::preEval(const vk::CommandBuffer& /*commandBuffer*/)

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.80
tensorTypeMethod · 0.80

Tested by

no test coverage detected