Forum Discussion
Altera_Forum
Honored Contributor
11 years agoclGetProfileInfoAltera question
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.1 Reply
- Altera_Forum
Honored Contributor
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