|Default constructor. More...|
|int||operator() (const device &device) const override|
|Overload that scores both CPUs and GPUs positive if they have SPIR support, GPUs are scored higher. More...|
|Public Member Functions inherited from cl::sycl::device_selector|
|Constructs a device_selector. More...|
|device_selector (const device_selector &rhs)|
|Constructs a device_selector from another device_selector. More...|
|Empty destructor. More...|
|COMPUTECPP_TEST_VIRTUAL device||select_device () const|
|Performs a platform and device selection and returns a pointer to the resulting cl::sycl::device object. More...|
|Protected Member Functions inherited from cl::sycl::device_selector|
|device||evaluate_devices () const|
|Evaluates devices and returns the most suitable one. More...|
|Protected Attributes inherited from cl::sycl::device_selector|
|unique_ptr_class< detail::device_selector >||m_impl|
Implementation of an opencl_selector that selects either a CPU or a GPU.
Constructor & Destructor Documentation
Member Function Documentation
Overload that scores both CPUs and GPUs positive if they have SPIR support, GPUs are scored higher.
Will fail if no CPU or GPU is found.
device The device that is to be scored.
- An integer representing the allocated score for the device.
The documentation for this class was generated from the following file: