| 60 | } |
| 61 | |
| 62 | Status 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 | |
| 76 | std::string CompilerOptionToString(const CLDevice& device, |
| 77 | CompilerOptions option) { |
no test coverage detected