MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / build

Method build

include/internal/CL/cl.hpp:5240–5262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

errHandlerFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected