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

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

parent cc5f2362
No related branches found
No related tags found
3 merge requests!9Draft: Multiple threads for inject, send and recv.,!3Draft: Multi injectors many,!1Increase no. of injection threads to 2
......@@ -155,10 +155,12 @@ static void injection_runner(int qid) {
ind_req[qid]++;
/* 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;
if (verbose)
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 to comment