This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Can I gather Code Coverage results on OpenMP application?

Hi,

I am using OpenMP with MCSDK 2.1.2.5 and trying Code Coverage.

The project created based on OpenMP matrix vector multiplication example.

And I selected target configuration device  to "C6678 Device Cycle Approximate Simulator, Little Endian".

Start the debug session,  but CCS debugger will not stop at main() and cannot suspend. (After click the suspend button, CCS will hang.)

I want to know profiling result on C6000 simulation of my algo it's developed PC based.

Please tell me how to gather Code Coverage results on OpenMP application.

Regards,

  • There is a section titled Code Coverage in the C6000 compiler manual.  I presume this is the code coverage feature you are trying to use.  Unfortunately, the underlying implementation of code coverage is not thread safe, and does not work with OpenMP.

    Thanks and regards,

    -George

  • Hi, George.

    Thank you for your reply. I understand.

    Also, Is this feature not work same as it with OpenMP?

    Regards,

  • Hiroki Oe said:
    Is this feature not work same as it with OpenMP?

    I suspect you have already noticed that, while this feature is also called code coverage, it is different from the code coverage feature built into the compiler.

    I'm not familiar with this form of code coverage.  I know it has not been tested with OpenMP.  I suspect it will not work because it was designed with single CPU systems in mind.

    Thanks and regards,

    -George

  • Thank you very much for your reply.
    I will try code coverage on single core and find the bottleneck in my code.

    I think OpenMP is very powerful feature.
    I think will be useful it, if the code coverage can execute with OpenMP in the future.

    Regards,