MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / EnqueueWriteBuffer

Method EnqueueWriteBuffer

tensorflow/lite/delegates/gpu/cl/cl_command_queue.cc:137–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137Status CLCommandQueue::EnqueueWriteBuffer(cl_mem memory, size_t size_in_bytes,
138 const void* data) {
139 auto error_code = clEnqueueWriteBuffer(
140 queue_, memory, CL_TRUE, 0, size_in_bytes, data, 0, nullptr, nullptr);
141 if (error_code != CL_SUCCESS) {
142 return UnknownError(
143 absl::StrCat("Failed to upload data to GPU (clEnqueueWriteBuffer) - ",
144 CLErrorCodeToString(error_code)));
145 }
146 return OkStatus();
147}
148
149Status CLCommandQueue::EnqueueReadBuffer(cl_mem memory, size_t size_in_bytes,
150 void* data) {

Callers 4

WriteDataBHWCMethod · 0.80
WriteDataMethod · 0.80
WriteDataMethod · 0.80
ConvertMethod · 0.80

Calls 4

CLErrorCodeToStringFunction · 0.85
OkStatusFunction · 0.85
UnknownErrorFunction · 0.50
StrCatFunction · 0.50

Tested by

no test coverage detected