1rtcSYCLDeviceSelector(3) Embree Ray Tracing Kernels 4 rtcSYCLDeviceSelector(3)
2
3
4
5 NAME
6 rtcSYCLDeviceSelector - SYCL device selector function to select
7 devices supported by Embree
8
9 SYNOPSIS
10 #include <embree4/rtcore.h>
11
12 int rtcSYCLDeviceSelector(const sycl::device sycl_device);
13
14 DESCRIPTION
15 This function checks if the passed SYCL device (sycl_device arguments)
16 is supported by Embree or not. This function can be used directly to
17 select some supported SYCL device by using it as SYCL device selector
18 function. For instance, the following code sequence selects an Embree
19 supported SYCL device and creates an Embree device from it:
20
21 sycl::device sycl_device(rtcSYCLDeviceSelector);
22 sycl::queue sycl_queue(sycl_device);
23 sycl::context(sycl_device);
24 RTCDevice device = rtcNewSYCLDevice(sycl_context,nullptr);
25
26 EXIT STATUS
27 The function returns -1 if the SYCL device is supported by Embree and 1
28 otherwise. On failure an error code is set that can get queried using
29 rtcGetDeviceError.
30
31 SEE ALSO
32 [rtcIsSYCLDeviceSupported]
33
34
35
36 rtcSYCLDeviceSelector(3)