- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have an Level Zero device i.e. ze_device_handle_t coming from the outside. I want to create a cl::sycl::device from it. Is there functionality to do that?
Do I have to list all SYCL devices with cl::sycl::device::get_devices() and then try to match the one I have by its UUID with device.get_info<cl::sycl::info::device::ext_intel_device_info_uuid>()?
Would SYCL devices that map to the same physical device but with different backends like Level Zero or OpenCL have the same UUIDs? How can I select the Level Zero device?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming/intel-oneapi-level-zero/intel-oneapi-level-zero-backend-specification.html provides the info about how to constructs a SYCL device instance from a Level Zero "ze_device_handle_t"
Thanks,
Xiaoping
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/optimization-and-programming/intel-oneapi-level-zero/intel-oneapi-level-zero-backend-specification.html provides the info about how to constructs a SYCL device instance from a Level Zero "ze_device_handle_t"
Thanks,
Xiaoping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for accepting the solution. If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.
Thanks and Regards,
Pendyala Sesha Srinivas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Although, make_device is the correct API way to make the sycl device you may run into this error https://github.com/intel/llvm/issues/5769.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page