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

Function GetBinarySize

tensorflow/lite/delegates/gpu/cl/cl_program.cc:52–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Status GetBinarySize(cl_program program, size_t* binary_size) {
53 cl_int error_code = clGetProgramInfo(program, CL_PROGRAM_BINARY_SIZES,
54 sizeof(size_t), binary_size, nullptr);
55 if (error_code != CL_SUCCESS) {
56 return UnknownError(absl::StrCat("Failed to get program binary size - ",
57 CLErrorCodeToString(error_code)));
58 }
59 return OkStatus();
60}
61
62Status BuildProgram(cl_program program, const CLDevice& device,
63 const std::string& compiler_options) {

Callers 1

GetBinaryMethod · 0.85

Calls 4

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

Tested by

no test coverage detected