cl::sycl::host_selector Class Reference
Implementation of a host_selector that selects the host device. More...
#include <device_selector.h>
Public Member Functions | |
host_selector ()=default | |
Default constructor. More... | |
int | operator() (const device &device) const override |
Overload that scores host mode devices positively. More... | |
Public Member Functions inherited from cl::sycl::device_selector | |
device_selector () | |
Constructs a device_selector. More... | |
device_selector (const device_selector &rhs) | |
Constructs a device_selector from another device_selector. More... | |
virtual | ~device_selector () |
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... | |
Additional Inherited Members | |
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 |
Detailed Description
Implementation of a host_selector that selects the host device.
This selector will always return a valid host device
Definition at line 227 of file device_selector.h.
Constructor & Destructor Documentation
◆ host_selector()
|
default |
Default constructor.
Member Function Documentation
◆ operator()()
|
overridevirtual |
Overload that scores host mode devices positively.
- Parameters
-
device The device that is to be scored.
- Returns
- an integer representing the allocated score for the device.
Implements cl::sycl::device_selector.
The documentation for this class was generated from the following file: