Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
7 years ago

Profile.mon is not Generated

Hi, i run the command

aoc --profile <mykernel_name>.cl

The compiler doesn't return me any error and the compilation only generate .aocx file.

Any possible cause on this issue?

I've been read through the similar thread in this forum, but there's no solution for this issue.

And i tried 3 times for this :( :( :(

Could anyone please help on this?

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You have to run the kernel using the profile aocx file and then you will get the profiling info.

    Check "Intel FPGA SDK for OpenCL Programming Guide, Section 10 - Profiling Your OpenCL Kernel" and "Intel FPGA SDK for OpenCL Best Practices Guide, Section 4 - Profiling Your Kernel to Identify Performance Bottlenecks" for more info.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    You have to run the kernel using the profile aocx file and then you will get the profiling info.

    Check "Intel FPGA SDK for OpenCL Programming Guide, Section 10 - Profiling Your OpenCL Kernel" and "Intel FPGA SDK for OpenCL Best Practices Guide, Section 4 - Profiling Your Kernel to Identify Performance Bottlenecks" for more info.

    --- Quote End ---

    Thank for your reply.

    If i'm not mistaken, the command should generate both profile.mon and .aocx file (Issue: I don't get the profile.mon file).

    Both "profile.mon" and ".aocx" file are needed to get the profiling info.

    Please correct me if I'm wrongly understanding the documentation
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    No, the aoc command does not generate profile.mon. As I said, you have to run the application and then, at run time, profiling info is gathered and profile.mon is generated. Then you supply the profiler with the aocx file and the profile.mon file and get the profiling info.