Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, FPGA AI Suite, Software Stack, and Reference Designs
504 讨论

Issue with Dynamic profiling for Autorun kernels.

MFaiz
初学者
4,224 次查看

Hi All,

I am profiling my OpenCL application which has a autorun kerenl. In the profile.mon, it was not giving any information. See the attached image.

 

After going through the Intel programming Guide, found "Unlike enqueued kernels that automatically generate profiler data on completion (if the compiler flag is set), autorun kernels never complete. Hence, you must explicitly indicate when to profile kernels by calling the clGetProfileDataDeviceIntelFPGA host library call."

But when I add

cl_int check = clGetProfileDataDeviceIntelFPGA (deviceId[0], program, TRUE, TRUE, NULL, NULL, NULL, NULL, &err);

 

I am getting the below error, please help me understsand what I am doing wrong in this. I am using Quartus 18.0

 

 error: ‘clGetProfileDataDeviceIntelFPGA’ was not declared in this scope

 

Thanks in advance

0 项奖励
5 回复数
MuhammadAr_U_Intel
2,185 次查看

Hi,

 

Can I confirm which version of Quartus Prime you are using 18.0 Standard / Pro ?

Also do you get this Error in compilation stage or during launching the profile report ?

 

Thanks,

Arslan

0 项奖励
MFaiz
初学者
2,185 次查看

I am using Quartus Prime 18.0, I get this when checking the Dynamic profiler report.

 

Regards

Faizan

0 项奖励
MuhammadAr_U_Intel
2,185 次查看

Hi Faizan,

 

I am trying to replicate this on my side using a simple example.

 

After adding the "clGetProfileDataDeviceIntelFPGA" in HOST code, I get Error for last argument (&err)

May I know how did you declared it ?

Also what version of GCC are you using ?

 

Thanks,

Arslan

 

 

MFaiz
初学者
2,185 次查看

Hi Arslan,

You can just declare err like this

 cl_int err = CL_SUCCESS;

 

It  Returns CL_SUCCESS if the function executed successfully

  

 I am using gcc version 5.4.0 20160609 

 

Thanks

Faizan

0 项奖励
DongWang-BJTU
新分销商 I
2,185 次查看

I am facing a similar problem. I have tried both v18.0 and v18.1, nothing shows for the autorun kernel in the profiled page. I am using ubuntu 14.04.5 and DE5-net FPGAs.

Hope some one could confirm this.

0 项奖励
回复