Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Computation between last MPI call and Walltime region end ignored #12

Open
ptaffet opened this issue Jul 18, 2018 · 0 comments
Open

Computation between last MPI call and Walltime region end ignored #12

ptaffet opened this issue Jul 18, 2018 · 0 comments

Comments

@ptaffet
Copy link
Contributor

ptaffet commented Jul 18, 2018

SCOREP_USER_REGION_BY_NAME_BEGIN( "TRACER_WallTime_Test" , SCOREP_USER_REGION_TYPE_COMMON);
usleep(10);
SCOREP_USER_REGION_BY_NAME_END("TRACER_WallTime_Test");

I expect that it TraceR would output:

[ 0 0 : Begin TRACER_WallTime_Test x ]
[ 0 0 : End TRACER_WallTime_Test x+.00001 ]

Where x is some time (in seconds), so .00001 is 10us. Of course, due to context switching, etc. it may not be exactly 10us.

What I’m seeing instead is that there is no difference in the time printed for Begin and End. They are printed to the 1us place, so 10us should be noticeable.

When I look at the trace with otf2-print, I see:

 ENTER                                      0         y                        Region: "TRACER_WallTime_Test" <83>
 LEAVE                                      0          y+139,000        Region: "TRACER_WallTime_Test" <83>

I think otf2-print uses nanoseconds, so that’s 139 us. Not exactly 10us, but not 0us either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant