Lines Matching defs:device
183 * Enables device fission for OpenCL 1.2 platforms.
938 * CL 1.2 version that uses device fission.
1581 * Retain the device.
1582 * \param device A valid device created using createSubDevices
1585 * CL_INVALID_DEVICE if device was not a valid subdevice
1589 static cl_int retain(cl_device_id device)
1590 { return ::clRetainDevice(device); }
1592 * Retain the device.
1593 * \param device A valid device created using createSubDevices
1596 * CL_INVALID_DEVICE if device was not a valid subdevice
1600 static cl_int release(cl_device_id device)
1601 { return ::clReleaseDevice(device); }
1725 static cl_uint getDevicePlatformVersion(cl_device_id device)
1728 clGetDeviceInfo(device, CL_DEVICE_PLATFORM, sizeof(platform), &platform, NULL);
1735 // device and obtain its context
1850 static bool isReferenceCountable(cl_device_id device)
1855 if (device != NULL) {
1856 int version = getDevicePlatformVersion(device);
2108 * This simply copies the device ID value, which is an inexpensive operation.
2110 explicit Device(const cl_device_id &device, bool retainObject = false) :
2111 detail::Wrapper<cl_type>(device, retainObject) { }
2113 /*! \brief Returns the first device on the default context.
2129 * Modify the default device to be used by
2132 * @return updated default device.
2144 * This simply copies the device ID value, which is an inexpensive operation.
2206 * Return the current value of the host clock as seen by the device.
2207 * The resolution of the device timer may be queried with the
2226 * Return a synchronized pair of host and device timestamps as seen by device.
2231 * The resolution of the device timer may be queried with the
2233 * @return A pair of (device timer, host timer) timer values.
2279 // We do not need to retain because this device is being created
2290 * CL 1.1 version that uses device fission extension.
2326 // We do not need to retain because this device is being created
2539 * device. If \a devices argument is NULL, this argument is ignored.
2544 * The application can query specific capabilities of the OpenCL device(s)
2546 * determine which device(s) to use.
2734 /*! \brief Create the default context from the default device type in the default platform.
2830 const Device& device,
2842 cl_device_id deviceID = device();
2887 // Check the platforms we found for a device of our specified type
5929 const Device& device, cl_kernel_work_group_info name, T* param) const
5933 &::clGetKernelWorkGroupInfo, object_, device(), name, param),
5939 getWorkGroupInfo(const Device& device, cl_int* err = NULL) const
5943 cl_int result = getWorkGroupInfo(device, name, ¶m);
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.
6434 * Set to CL_INVALID_BINARY if the binary provided is not valid for the matching device.
6440 * CL_INVALID_BINARY if an invalid program binary was encountered for any device. binaryStatus will return specific status for each device.
6667 const Device& device, cl_program_build_info name, T* param) const
6671 &::clGetProgramBuildInfo, object_, device(), name, param),
6677 getBuildInfo(const Device& device, cl_int* err = NULL) const
6681 cl_int result = getBuildInfo(device, name, ¶m);
6689 * Build info function that returns a vector of device/info pairs for the specified
6691 * On an error reading the info for any device, an empty vector of info will be returned.
7010 Device device = Device::getDefault();
7011 default_ = CommandQueue(context, device, 0, &default_error_);
7063 Device device = context.getInfo<CL_CONTEXT_DEVICES>()[0];
7084 context(), device(), queue_properties, &error);
7099 context(), device(), properties, &error);
7129 Device device = context.getInfo<CL_CONTEXT_DEVICES>()[0];
7150 context(), device(), queue_properties, &error);
7161 context(), device(), static_cast<cl_command_queue_properties>(properties), &error);
7174 * \brief Constructs a CommandQueue for an implementation defined device in the given context
7241 * \brief Constructs a CommandQueue for an implementation defined device in the given context
7303 * \brief Constructs a CommandQueue for a passed device and context
7308 const Device& device,
7332 context(), device(), queue_properties, &error);
7343 context(), device(), properties, &error);
7354 * \brief Constructs a CommandQueue for a passed device and context
7359 const Device& device,
7383 context(), device(), queue_properties, &error);
7394 context(), device(), static_cast<cl_command_queue_properties>(properties), &error);
8294 * Enqueues a command to indicate with which device a set of memory objects
8334 * SVM allocations with a device.
8364 * a device.
8379 * SVM allocations with a device.
8402 * a device.
8416 * SVM allocations with a device.
8438 * a device.
8629 cl::Device device(getInfo<CL_QUEUE_DEVICE>());
8630 cl_platform_id platform = device.getInfo<CL_DEVICE_PLATFORM>();
8662 cl::Device device(getInfo<CL_QUEUE_DEVICE>());
8663 cl_platform_id platform = device.getInfo<CL_DEVICE_PLATFORM>();
8730 * \brief DeviceCommandQueue interface for device cl_command_queues.
8742 * Default construct device command queue on default context and device
8748 cl::Device device = cl::Device::getDefault();
8756 context(), device(), queue_properties, &error);
8765 * Create a device command queue for a specified device in the passed context.
8769 const Device& device,
8780 context(), device(), queue_properties, &error);
8789 * Create a device command queue for a specified device in the passed context.
8793 const Device& device,
8807 context(), device(), queue_properties, &error);
8881 * Create a new default device command queue for the default device,
8883 * If there is already a default queue for the specified device this
8891 cl::Device device = cl::Device::getDefault();
8900 context(), device(), queue_properties, &error));
8911 * Create a new default device command queue for the specified device
8913 * If there is already a default queue for the specified device this
8917 const Context &context, const Device &device, cl_int *err = nullptr)
8928 context(), device(), queue_properties, &error));
8939 * Create a new default device command queue for the specified device
8941 * If there is already a default queue for the specified device this
8945 const Context &context, const Device &device, cl_uint queueSize, cl_int *err = nullptr)
8957 context(), device(), queue_properties, &error));
8971 * Modify the default device command queue to be used for subsequent kernels.
8972 * This can update the default command queue for a device repeatedly to account
8974 * @return updated default device command queue.
8976 static DeviceCommandQueue updateDefault(const Context &context, const Device &device, const DeviceCommandQueue &default_queue, cl_int *err = nullptr)
8979 error = clSetDefaultDeviceCommandQueue(context.get(), device.get(), default_queue.get());
9001 // Specialization for device command queue