| 6438 | |
| 6439 | |
| 6440 | cl_int build( |
| 6441 | const vector<Device>& devices, |
| 6442 | const char* options = nullptr, |
| 6443 | void (CL_CALLBACK * notifyFptr)(cl_program, void *) = nullptr, |
| 6444 | void* data = nullptr) const |
| 6445 | { |
| 6446 | size_type numDevices = devices.size(); |
| 6447 | vector<cl_device_id> deviceIDs(numDevices); |
| 6448 | |
| 6449 | for( size_type deviceIndex = 0; deviceIndex < numDevices; ++deviceIndex ) { |
| 6450 | deviceIDs[deviceIndex] = (devices[deviceIndex])(); |
| 6451 | } |
| 6452 | |
| 6453 | cl_int buildError = ::clBuildProgram( |
| 6454 | object_, |
| 6455 | (cl_uint) |
| 6456 | devices.size(), |
| 6457 | deviceIDs.data(), |
| 6458 | options, |
| 6459 | notifyFptr, |
| 6460 | data); |
| 6461 | |
| 6462 | return detail::buildErrHandler(buildError, __BUILD_PROGRAM_ERR, getBuildInfo<CL_PROGRAM_BUILD_LOG>()); |
| 6463 | } |
| 6464 | |
| 6465 | cl_int build( |
| 6466 | const Device& device, |
nothing calls this directly
no test coverage detected