Lines Matching defs:devices
303 // Print build info for all devices
1575 * OpenCL 1.2 devices do have retain/release.
1605 * OpenCL 1.1 devices do not have retain/release.
1740 vector<cl_device_id> devices(size/sizeof(cl_device_id));
1741 clGetContextInfo(context, CL_CONTEXT_DEVICES, size, devices.data(), NULL);
1742 return getDevicePlatformVersion(devices[0]);
2257 vector<Device>* devices)
2273 if (devices) {
2274 devices->resize(ids.size());
2281 (*devices)[i] = Device(ids[i], false);
2294 vector<Device>* devices)
2320 if (devices) {
2321 devices->resize(ids.size());
2328 (*devices)[i] = Device(ids[i], false);
2489 /*! \brief Gets a list of devices for this platform.
2495 vector<Device>* devices) const
2498 if( devices == NULL ) {
2516 if (devices) {
2517 devices->resize(ids.size());
2522 (*devices)[i] = Device(ids[i], true);
2529 /*! \brief Get the list of available D3D10 devices.
2537 * \param devices returns a vector of OpenCL D3D10 devices found. The cl::Device
2538 * values returned in devices can be used to identify a specific OpenCL
2539 * device. If \a devices argument is NULL, this argument is ignored.
2556 vector<Device>* devices) const
2564 cl_device_id * devices,
2567 if( devices == NULL ) {
2604 if (devices) {
2605 devices->resize(ids.size());
2610 (*devices)[i] = Device(ids[i], true);
2794 /*! \brief Constructs a context including a list of specified devices.
2799 const vector<Device>& devices,
2811 size_type numDevices = devices.size();
2815 deviceIDs[deviceIndex] = (devices[deviceIndex])();
2855 /*! \brief Constructs a context including all or a subset of devices of a specified type.
2891 vector<Device> devices;
2897 error = platforms[i].getDevices(type, &devices);
2903 // Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type
2915 if (devices.size() > 0) {
2971 /*! \brief Returns a singleton context including all devices of CL_DEVICE_TYPE_DEFAULT.
3648 * This is the minimum of the maximum sizes of all devices in the context.
6071 * \note It is only possible to enable fine-grained system SVM if all devices
6076 * if no devices in the context support fine-grained system SVM.
6425 * Construct a program object from a list of devices and a per-device list of binaries.
6427 * \param devices A vector of OpenCL device objects for which the program will be created.
6437 * CL_INVALID_VALUE if the length of devices is zero; or if the length of binaries does not match the length of devices;
6439 * CL_INVALID_DEVICE if OpenCL devices listed in devices are not in the list of devices associated with context.
6445 const vector<Device>& devices,
6452 const size_type numDevices = devices.size();
6481 deviceIDs[deviceIndex] = (devices[deviceIndex])();
6489 context(), (cl_uint) devices.size(),
6509 const vector<Device>& devices,
6516 size_type numDevices = devices.size();
6519 deviceIDs[deviceIndex] = (devices[deviceIndex])();
6524 (cl_uint) devices.size(),
6583 const vector<Device>& devices,
6588 size_type numDevices = devices.size();
6592 deviceIDs[deviceIndex] = (devices[deviceIndex])();
6598 devices.size(),
6690 * info type and for all devices in the program.
7184 vector<cl::Device> devices;
7185 error = context.getInfo(CL_CONTEXT_DEVICES, &devices);
7215 context(), devices[0](), queue_properties, &error);
7230 context(), devices[0](), properties, &error);
7251 vector<cl::Device> devices;
7252 error = context.getInfo(CL_CONTEXT_DEVICES, &devices);
7281 context(), devices[0](), queue_properties, &error);
7292 context(), devices[0](), static_cast<cl_command_queue_properties>(properties), &error);