43 #include "SkelCL/detail/DeviceProperties.h"
67 DeviceProperties::DeviceProperties()
68 : _deviceType(Device::Type::ALL),
72 _id(std::numeric_limits<Device::id_type>::max()),
89 DeviceProperties::~DeviceProperties()
93 bool DeviceProperties::match(
const cl::Device&
device)
const
95 if ( _deviceType != Device::Type::ALL
96 && _deviceType != device.getInfo<CL_DEVICE_TYPE>())
return false;
100 bool DeviceProperties::matchAndTake(
const cl::Device& device)
103 if (_takeAll)
return true;
113 DeviceProperties& DeviceProperties::deviceType(Device::Type value)
SKELCL_DLL detail::DeviceProperties allDevices()
Creates a detail::DeviceProperties object representing all devices in the system. This object should ...
SKELCL_DLL detail::DeviceID device(size_t dID)
Creates an OpenCL device ID to be used as parameter of the init(detail::PlatformID, detail::DeviceID) function.
SKELCL_DLL detail::DeviceProperties nDevices(size_t n)
Creates a detail::DeviceProperties object representing n devices. This object should be used as param...