Searched refs:num_devices_returned (Results 1 – 1 of 1) sorted by relevance
43 size_t num_devices_returned; in get_maximums() local44 err = clGetContextInfo(context, CL_CONTEXT_DEVICES, 0, NULL, &num_devices_returned); in get_maximums()50 devices = (cl_device_id *)malloc(num_devices_returned); in get_maximums()51 err = clGetContextInfo(context, CL_CONTEXT_DEVICES, num_devices_returned, devices, NULL); in get_maximums()57 num_devices_returned /= sizeof(cl_device_id); in get_maximums()58 …if (num_devices_returned > 1) log_info("%d devices in device group.\n", (int)num_devices_returned); in get_maximums()59 if (num_devices_returned < 1) { in get_maximums()72 for (i=0; i<num_devices_returned; i++) { in get_maximums()