Community
cancel
Showing results for 
Search instead for 
Did you mean: 
David_A_Intel1
Employee
43 Views

Anybody profiling OpenMP code?

I was testing VTune Amplifier XE on some OpenMP code and got a profile like this:

openmpdisplay.PNG

I found it strange that the time spent in the OpenMP parallel-for loops was not attributed to the function containing them, i.e., parallel_fors().  Have others experienced this and what did you think?

0 Kudos
2 Replies
TimP
Black Belt
43 Views

 

intel openmp always had this treatment of making a separate function for each parallel region. this often seems convenient in accounting separately serial and parallel time.  it was extra useful when there was an omp profile option.

Peter_W_Intel
Employee
43 Views

parallel_for$omp$parallel_for@?? are functions in OMP library to complete the tasks, which were submitted by parallel_for in user's code. There is no caller-callee relationship, the reason is that parallel_for$omp$parallel_for@?? works in another thread, you should see same behavior when using Intel? Thread Building Block (TBB). Light CPU time is spent in user code, exact work is in parallel library.

Reply