File DeviceSelector.hpp

namespace Sycl
struct DeviceSelector : public device_selector
#include </home/docs/checkouts/>

Custom device selector that refuses to select NVIDIA OpenCL backends.

It is also possible to the tell the selector explicitly which device we want to use by providing a substring of the preferred device’s name.

Public Functions

DeviceSelector(const std::string &deviceName = "")
int operator()(const cl::sycl::device &d) const

Private Members

cl::sycl::default_selector m_defaultSelector

Fallback device selector.

std::string m_deviceName

Substring of the preferred device’s name.