Skip to content
Snippets Groups Projects
Commit e7aa1b62 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Add in a nanosleep() to the delay loop timer and some fudge...

Conflicts:
	swiftmpistepsim.c
parent 1e8f7d0e
No related branches found
No related tags found
No related merge requests found
......@@ -149,9 +149,12 @@ static void *inject_thread(void *arg) {
ind_req++;
/* Set looptics on the first pass. Assumes MPI_Isend and MPI_Irecv are
* equally timed. */
* equally timed. Note we include a nanosleep, they are slow, and a fudge
* factor. */
if (looptics == 0 && usetics) {
looptics = getticks() - starttics;
sleep.tv_nsec = 1;
nanosleep(&sleep, NULL);
looptics = (getticks() - starttics) * 2;
if (verbose)
message("injection loop took %.3f %s.", clocks_from_ticks(looptics),
clocks_getunit());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment