DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::default_selector Class Reference

The default selector chooses the first available SYCL device. More...

#include <CL/sycl/device_selector.hpp>

Inheritance diagram for cl::sycl::default_selector:
Collaboration diagram for cl::sycl::default_selector:

Public Member Functions

int operator() (const device &dev) const override
 Devices of different kinds are prioritized in the following order: More...
 
- Public Member Functions inherited from cl::sycl::device_selector
virtual ~device_selector ()=default
 
virtual device select_device () const
 

Additional Inherited Members

- Static Protected Attributes inherited from cl::sycl::device_selector
static constexpr int REJECT_DEVICE_SCORE = -1
 

Detailed Description

The default selector chooses the first available SYCL device.

See also
device

Definition at line 46 of file device_selector.hpp.

Member Function Documentation

◆ operator()()

int cl::sycl::default_selector::operator() ( const device dev) const
overridevirtual

The documentation for this class was generated from the following files: