| 50 | } |
| 51 | |
| 52 | Status 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 | |
| 62 | Status BuildProgram(cl_program program, const CLDevice& device, |
| 63 | const std::string& compiler_options) { |
no test coverage detected