Intel® oneAPI Base Toolkit
Support for the core tools and libraries within the base toolkit that are used to build and deploy high-performance data-centric applications.
419 Discussions

Creating a SYCL device from a Level Zero device

sogartar
Beginner
701 Views

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?

 

Labels (1)
0 Kudos
1 Solution
3 Replies
SeshaP_Intel
Moderator
630 Views

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


0 Kudos
sogartar
Beginner
577 Views


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.

0 Kudos
Reply