syclreference.com
  1. SYCL
  2. | API Reference
  3. | Device Selectors
  4. | default_selector
  5. | operator()

operator()

MISSING


int operator()(const cl::sycl::device & device) const
(1)
  1. Overload that scores both CPUs and GPUs positive if they have SPIR support, GPUs are scored higher, scores host mode devices as positive but lower than a non-host device. This should never fail.
    Parameters:
    • const cl::sycl::device & device : The device that is to be scored.
    Returns: an integer representing the allocated score for the device.

syclreference.com — SYCL Reference Pages

Last updated: 2019-01-24 00:24:52 +0000