Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™
722 토론

How to resolve : Unable to get device ID

well
새로운 기여자 I
5,839 조회수

Dear intel team,

 

When trying to compile my host code today. I got this error message "Unable to get device_id
". This error message is part of my code. It is strange because yesterday, I didn't get this error message. 

 

See these lines of code plz:

 

cl_platform_id fpga_paltform = NULL;
if (clGetPlatformIDs(1, &fpga_paltform, NULL) != CL_SUCCESS) {
printf("Unable to get platform_id\n");
return 1;
}


cl_device_id fpga_device = NULL;
if (clGetDeviceIDs(fpga_paltform, CL_DEVICE_TYPE_ALL, 1, &fpga_device, NULL) != CL_SUCCESS) {
printf("Unable to get device_id\n");
return 1;
}

 

0 포인트
10 응답
JananiC_Intel
중재자
5,808 조회수

Hi,


Thanks for posting in Intel forums.


Could you share the reproducer so that we can try from our end? Also we would like to know whether you are using oneapi devcloud or fpga devcloud.


Regards,

Janani Chandran


0 포인트
well
새로운 기여자 I
5,794 조회수

I am using fpga devcloud.

I attached the host and kernel codes. Also the dataset and an image of part of the required outputs. 

Your swift response will be highly appreciated. 

0 포인트
well
새로운 기여자 I
5,720 조회수

Dear intel team,

 

Still didn't hear from you any update.

0 포인트
BoonBengT_Altera
중재자
5,680 조회수

Hi @well,

 

Thank you for posting in Intel community forum and hope all is well.
Mind if I ask in which node that you are facing the problem and the command used for the compilation?
Hope to hear from you soon.

 

Best Wishes
BB

0 포인트
well
새로운 기여자 I
5,675 조회수

Hi @BoonBengT_Altera 

I attached a screenshot for the process. It is include the node, commands, and the error message. 

 

Please let me know if you need additional information since I really need to fix this issue as soon as possible. 

Thanks, 

0 포인트
BoonBengT_Altera
중재자
5,633 조회수

Hi @well,

 

Thanks for the details, based on the screenshot, by any chances did you managed to source the relevant opencl resource with source command?
After sourcing would suggest to run a aocl diagnose to confirm device name installed.

 

Would also be a great help if you are able to share the makefile content for us to further investigate.
Please let us know if that helps to clarify.

 

Best Wishes
BB

0 포인트
well
새로운 기여자 I
5,617 조회수

Hi @BoonBengT_Altera 

 Thanks for your reply. 

I am not sure what do you mean by " by any chances did you managed to source the relevant opencl resource with source command?
After sourcing would suggest to run a aocl diagnose to confirm device name installed." ?? 

Could you clarify more please ??

 

However, I attached the Makefile that I used. 

Please reply as soon as possible. 

Thanks, 

0 포인트
BoonBengT_Altera
중재자
5,602 조회수

Hi @well,

 

Apologies for the confusion, source as in loading the right tools/component for the OpenCL to compile within devcloud.
Hence would suggest to try out the quick start guide here for stratix device with example design.


That might give you a insight on getting the right tools and bsp.
Hope that clarify.

 

Best Wishes
BB

0 포인트
BoonBengT_Altera
중재자
5,386 조회수

Hi @well,

 

Good day, just checking in to see if there is any further doubts in regards to this matter.
Hope we have clarify your doubts.

 

Best Wishes
BB

0 포인트
BoonBengT_Altera
중재자
5,335 조회수

Hi @well,

 

Greetings, unfortunately as we do not receive any further clarification on what is provided. Hence thread will now be transitioned to community support and we will no longer monitor this thread. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.

 

Best Wishes
BB

0 포인트
응답