MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / build

Method build

include/CL/opencl.hpp:6440–6463  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 5

clBuildProgramFunction · 0.85
buildErrHandlerFunction · 0.85
push_backMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected