DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::device_selector Class Referenceabstract

The device_selector class provides ability to choose the best SYCL device based on heuristics specified by the user. More...

#include <CL/sycl/device_selector.hpp>

Inheritance diagram for cl::sycl::device_selector:
Collaboration diagram for cl::sycl::device_selector:

Public Member Functions

virtual ~device_selector ()=default
 
virtual device select_device () const
 
virtual int operator() (const device &device) const =0
 

Static Protected Attributes

static constexpr int REJECT_DEVICE_SCORE = -1
 

Detailed Description

The device_selector class provides ability to choose the best SYCL device based on heuristics specified by the user.

See also
device

Definition at line 28 of file device_selector.hpp.

Constructor & Destructor Documentation

◆ ~device_selector()

virtual cl::sycl::device_selector::~device_selector ( )
virtualdefault

Member Function Documentation

◆ operator()()

◆ select_device()

Member Data Documentation

◆ REJECT_DEVICE_SCORE

constexpr int cl::sycl::device_selector::REJECT_DEVICE_SCORE = -1
staticconstexprprotected

Definition at line 31 of file device_selector.hpp.


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