| 5238 | #endif // #if defined(CL_HPP_RVALUE_REFERENCES_SUPPORTED) |
| 5239 | |
| 5240 | cl_int build( |
| 5241 | const VECTOR_CLASS<Device>& devices, |
| 5242 | const char* options = NULL, |
| 5243 | void (CL_CALLBACK * notifyFptr)(cl_program, void *) = NULL, |
| 5244 | void* data = NULL) const |
| 5245 | { |
| 5246 | ::size_t numDevices = devices.size(); |
| 5247 | cl_device_id* deviceIDs = (cl_device_id*) alloca(numDevices * sizeof(cl_device_id)); |
| 5248 | for( ::size_t deviceIndex = 0; deviceIndex < numDevices; ++deviceIndex ) { |
| 5249 | deviceIDs[deviceIndex] = (devices[deviceIndex])(); |
| 5250 | } |
| 5251 | |
| 5252 | return detail::errHandler( |
| 5253 | ::clBuildProgram( |
| 5254 | object_, |
| 5255 | (cl_uint) |
| 5256 | devices.size(), |
| 5257 | deviceIDs, |
| 5258 | options, |
| 5259 | notifyFptr, |
| 5260 | data), |
| 5261 | __BUILD_PROGRAM_ERR); |
| 5262 | } |
| 5263 | |
| 5264 | cl_int build( |
| 5265 | const char* options = NULL, |
nothing calls this directly
no test coverage detected