Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16611 Discussions

clGetProfileInfoAltera question

Altera_Forum
Honored Contributor II
1,097 Views

hi guys, 

 

In OpenCL Programming Guide , It says that we can use clGetProfileInfoAltera to get the profile.mom file when the kernel is completed. 

But I added the clGetProfileInfoAltera API after the clEnqueueNDRangeKernel API , I compiled the program (vectoradd) and got the error message - " main.cpp:270: error: ‘clGetProfileInfoAltera’ was not declared in this scope ". 

 

So how could I profile the program (command , code , GUI) ? 

I will get error when I follow the steps of profiling in programming guide : (  

 

The version I installed is 13.1.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
239 Views

I am pretty sure 13.1 doesn't support profiling. I didn't start using it until 14.0. I am not familiar with the clGetProfileInfoAltera api. Are you looking at the latest documentation? If you add "--profile" to your command line compile, the profile.mon file will be generated when you execute your application. Then run "aocl report profile.mon <kernel>.aocx to launch the gui. This works for me. 

 

Hope that helps, 

Rudy
0 Kudos
Reply