Lines Matching defs:devices

113  *       std::vector<cl::Device> devices = context.getInfo<CL_CONTEXT_DEVICES>();
118 * program_.build(devices);
123 * cl::CommandQueue queue(context, devices[0], 0, &err);
1652 * OpenCL 1.2 devices do have retain/release.
1682 * OpenCL 1.1 devices do not have retain/release.
1816 cl_device_id *devices = (cl_device_id *) alloca(size);
1817 clGetContextInfo(context, CL_CONTEXT_DEVICES, size, devices, NULL);
1818 return getDevicePlatformVersion(devices[0]);
2148 VECTOR_CLASS<Device>* devices)
2162 devices->assign(&ids[0], &ids[n]);
2174 VECTOR_CLASS<Device>* devices)
2199 devices->assign(&ids[0], &ids[n]);
2257 /*! \brief Gets a list of devices for this platform.
2263 VECTOR_CLASS<Device>* devices) const
2266 if( devices == NULL ) {
2280 devices->assign(&ids[0], &ids[n]);
2285 /*! \brief Get the list of available D3D10 devices.
2293 * \param devices returns a vector of OpenCL D3D10 devices found. The cl::Device
2294 * values returned in devices can be used to identify a specific OpenCL
2295 * device. If \a devices argument is NULL, this argument is ignored.
2312 VECTOR_CLASS<Device>* devices) const
2320 cl_device_id * devices,
2323 if( devices == NULL ) {
2356 devices->assign(&ids[0], &ids[n]);
2508 /*! \brief Constructs a context including a list of specified devices.
2513 const VECTOR_CLASS<Device>& devices,
2525 ::size_t numDevices = devices.size();
2528 deviceIDs[deviceIndex] = (devices[deviceIndex])();
2568 /*! \brief Constructs a context including all or a subset of devices of a specified type.
2604 VECTOR_CLASS<Device> devices;
2610 error = platforms[i].getDevices(type, &devices);
2614 // Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type
2626 if (devices.size() > 0) {
2683 /*! \brief Returns a singleton context including all devices of CL_DEVICE_TYPE_DEFAULT.
5122 * Construct a program object from a list of devices and a per-device list of binaries.
5124 * \param devices A vector of OpenCL device objects for which the program will be created.
5134 * CL_INVALID_VALUE if the length of devices is zero; or if the length of binaries does not match the length of devices;
5136 * CL_INVALID_DEVICE if OpenCL devices listed in devices are not in the list of devices associated with context.
5142 const VECTOR_CLASS<Device>& devices,
5149 const ::size_t numDevices = devices.size();
5171 deviceIDs[deviceIndex] = (devices[deviceIndex])();
5179 context(), (cl_uint) devices.size(),
5199 const VECTOR_CLASS<Device>& devices,
5206 ::size_t numDevices = devices.size();
5209 deviceIDs[deviceIndex] = (devices[deviceIndex])();
5214 (cl_uint) devices.size(),
5267 const VECTOR_CLASS<Device>& devices,
5272 ::size_t numDevices = devices.size();
5275 deviceIDs[deviceIndex] = (devices[deviceIndex])();
5282 devices.size(),
5554 VECTOR_CLASS<cl::Device> devices;
5555 error = context.getInfo(CL_CONTEXT_DEVICES, &devices);
5567 object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);