Software Archive
Read-only legacy content
17061 Discussions

Profiling cache misses in CilkPlus applications

leoferres
Beginner
827 Views

Dear all

Is perf safe to use for profiling CilkPlus applications? I've tried using cilkprof to no avail... something to do with PIN that I've never been able to make it work.

Thanks.

Leo

0 Kudos
4 Replies
Barry_T_Intel
Employee
827 Views

Sorry, I don't know that tool.

    - Barry

0 Kudos
leoferres
Beginner
827 Views

Ok, let me pose the question another way. What would be the best way to profile cache misses with CilkPlus?

Here's a link to Linux perf, just in case: https://perf.wiki.kernel.org/index.php/Tutorial

0 Kudos
TimP
Honored Contributor III
827 Views

"best way" is likely whatever you are famiilar with.  Any performance event profiling tool which works with C99 or C++ gcc or icc should be suitable, if it's not tied to an incompatible threading model.

0 Kudos
Jim_S_Intel
Employee
827 Views

I have used perf a few times to collect some simple aggregate statistics for Cilk Plus programs.   I believe the Cilk Plus runtime should look like just another shared library to perf, and it should mostly "just work" like profiling any other pthreaded program.   But I don't have much experience using perf myself, so it is possible there are more subtle problems that I'm not aware of?

Cheers,

Jim

0 Kudos
Reply