Lines Matching refs:numDevices
258 size_t numDevices = 0; in main() local
261 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, 0, NULL, &numDevices); in main()
267 deviceIDs = (cl_device_id *)malloc(numDevices); in main()
272 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, numDevices, deviceIDs, NULL); in main()
278 numDevices /= sizeof(cl_device_id); in main()
280 if (numDevices < 1) { in main()
288 for( size_t i = 0; i < numDevices; i++ ) { in main()
324 size_t numDevices = 0; in main() local
327 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, 0, NULL, &numDevices); in main()
332 deviceIDs = (cl_device_id *)malloc(numDevices); in main()
337 error = clGetContextInfo( sCurrentContext, CL_CONTEXT_DEVICES, numDevices, deviceIDs, NULL); in main()
343 numDevices /= sizeof(cl_device_id); in main()
345 if (numDevices < 1) { in main()
354 for( size_t i = 0; i < numDevices; i++ ) { in main()