DPC++ Runtime
Runtime libraries for oneAPI DPC++
device_selector.cpp File Reference
#include <detail/config.hpp>
#include <detail/device_impl.hpp>
#include <detail/filter_selector_impl.hpp>
#include <detail/global_handler.hpp>
#include <sycl/backend_types.hpp>
#include <sycl/detail/device_filter.hpp>
#include <sycl/device.hpp>
#include <sycl/device_selector.hpp>
#include <sycl/exception.hpp>
#include <sycl/ext/oneapi/filter_selector.hpp>
#include <sycl/stl.hpp>
#include <algorithm>
#include <cctype>
#include <regex>
Include dependency graph for device_selector.cpp:

Go to the source code of this file.

Namespaces

 sycl
 ---— Error handling, matching OpenCL plugin semantics.
 
 sycl::_V1
 
 sycl::_V1::detail
 
 sycl::_V1::ext
 
 sycl::_V1::ext::oneapi
 

Functions

static int sycl::_V1::detail::getDevicePreference (const device &Device)
 
static void sycl::_V1::detail::traceDeviceSelection (const device &Device, int Score, bool Chosen)
 
device sycl::_V1::detail::select_device (DSelectorInvocableType DeviceSelectorInvocable, std::vector< device > &Devices)
 
device sycl::_V1::detail::select_device (const DSelectorInvocableType &DeviceSelectorInvocable)
 
device sycl::_V1::detail::select_device (const DSelectorInvocableType &DeviceSelectorInvocable, const context &SyclContext)
 
static void sycl::_V1::traceDeviceSelector (const std::string &DeviceType)
 default_selector_v Devices of different kinds are prioritized in the following order: More...
 
class __SYCL2020_DEPRECATED("Host device is no longer supported.") host_selector int sycl::_V1::default_selector_v (const device &dev)
 Selects SYCL host device. More...
 
int sycl::_V1::gpu_selector_v (const device &dev)
 
int sycl::_V1::cpu_selector_v (const device &dev)
 
int sycl::_V1::accelerator_selector_v (const device &dev)
 
detail::DSelectorInvocableType sycl::_V1::aspect_selector (const std::vector< aspect > &RequireList, const std::vector< aspect > &DenyList={})
 
namespace sycl::_V1::__SYCL2020_DEPRECATED ("use 'ext::oneapi' instead") ONEAPI