Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
806 Discussions

GPU not accessible on APL platform while running DPC++ program (CL_DEVICE_NOT_FOUND)

AvdheshChouhan
Employee
1,768 Views

Getting CL_DEVICE_NOT_FOUND while running DPCPP program on APL platform. 

terminate called after throwing an instance of 'cl::sycl::runtime_error'
what(): No device of requested type available. Please check https://software.intel.com/content/www/us/en/develop/articles/intel-oneapi-dpcpp-system-requirements.html -1 (CL_DEVICE_NOT_FOUND)
Aborted (core dumped)

AvdheshChouhan_0-1662568783813.png

 

0 Kudos
5 Replies
PriyanshuK_Intel
Moderator
1,730 Views

Hi,

 

Thank you for posting in Intel Communities.


Could you please provide the output of the below command to investigate more on your issue?

sycl-ls

Could you please provide the sample reproducer code?

 

Thanks & Regards,
Priyanshu.

 

0 Kudos
AvdheshChouhan
Employee
1,694 Views

Hi @PriyanshuK_Intel
Thank you for the response. Please find the output of sycl-ls command below. 

[opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device 1.2 [2022.13.3.0.16_160000]
[opencl:cpu:1] Intel(R) OpenCL, Intel(R) Pentium(R) CPU N4200 @ 1.10GHz 3.0 [2022.13.3.0.16_160000]
[host:host:0] SYCL host platform, SYCL host device 1.2 [1.2]


Its not a code specific issue, its not able to find the gpu device, getting the device using following code. gpu_selector gives "CL_DEVICE_NOT_FOUND" error while default_selector returns CPU.  

auto prop_list = property_list{property::queue::enable_profiling()};
queue q(gpu_selector{}, dpc_common::exception_handler, prop_list);
cout << "Running on " << q.get_device().get_info<info::device::name>();

PS: The platform APL contains integrated GPU and has EU cores available. Hence it should be possible to detect GPUs. Please let us know how to proceed with it. 



0 Kudos
PriyanshuK_Intel
Moderator
1,673 Views

Hi,


Could you please try updating the GPU drivers using the below link and try once again after downloading:

https://www.intel.in/content/www/in/en/support/intel-driver-support-assistant.html


Thanks & Regards,

Priyanshu.


0 Kudos
PriyanshuK_Intel
Moderator
1,603 Views

Hi,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Priyanshu.



0 Kudos
PriyanshuK_Intel
Moderator
1,544 Views

Hi,


We have not heard back from you. This thread will no longer be monitored by Intel.

If you need further assistance, Please post a new question.


Thanks, 

Priyanshu.


0 Kudos
Reply