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

Function BuildProgram

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

Source from the content-addressed store, hash-verified

60}
61
62Status BuildProgram(cl_program program, const CLDevice& device,
63 const std::string& compiler_options) {
64 const int error_code = clBuildProgram(
65 program, 0, nullptr, compiler_options.c_str(), nullptr, nullptr);
66 if (error_code != CL_SUCCESS) {
67 return UnknownError(absl::StrCat(
68 "Failed to build program executable - ",
69 CLErrorCodeToString(error_code),
70 GetProgramBuildInfo(program, device.id(), CL_PROGRAM_BUILD_LOG)));
71 }
72
73 return OkStatus();
74}
75
76std::string CompilerOptionToString(const CLDevice& device,
77 CompilerOptions option) {

Callers 2

CreateCLProgramFunction · 0.85

Calls 7

CLErrorCodeToStringFunction · 0.85
GetProgramBuildInfoFunction · 0.85
OkStatusFunction · 0.85
c_strMethod · 0.80
UnknownErrorFunction · 0.50
StrCatFunction · 0.50
idMethod · 0.45

Tested by

no test coverage detected