MCPcopy Create free account
hub / github.com/RenderKit/embree / rtcSetDeviceSYCLDevice

Function rtcSetDeviceSYCLDevice

kernels/common/rtcore.cpp:66–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 RTC_API void rtcSetDeviceSYCLDevice(RTCDevice hdevice, const sycl::device sycl_device)
67 {
68 RTC_CATCH_BEGIN;
69 RTC_TRACE(rtcSetDeviceSYCLDevice);
70 RTC_VERIFY_HANDLE(hdevice);
71
72 Lock<MutexSys> lock(g_mutex);
73
74 DeviceGPU* device = dynamic_cast<DeviceGPU*>((Device*) hdevice);
75 if (device == nullptr)
76 throw_RTCError(RTC_ERROR_INVALID_ARGUMENT, "passed device must be an Embree SYCL device")
77
78 device->setSYCLDevice(sycl_device);
79
80 RTC_CATCH_END(nullptr);
81 }
82
83 RTC_API_CPP sycl::event rtcCommitSceneWithQueue (RTCScene hscene, sycl::queue queue)
84 {

Callers 1

initializeDeviceFunction · 0.85

Calls 1

setSYCLDeviceMethod · 0.80

Tested by

no test coverage detected