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

Move tic to be more accurate

parent 02f01712
No related branches found
No related tags found
1 merge request!8Draft: RDMA version with wrapped infinity calls
...@@ -121,6 +121,15 @@ static void *inject_thread(void *arg) { ...@@ -121,6 +121,15 @@ static void *inject_thread(void *arg) {
while (ind_req < nr_reqs) { while (ind_req < nr_reqs) {
struct mpiuse_log_entry *log = reqs_queue[ind_req]; struct mpiuse_log_entry *log = reqs_queue[ind_req];
/* Initialise new log elements. */
log->injtic = getticks();
log->done = 0;
log->nr_tests = 0;
log->tsum = 0.0;
log->tmax = 0;
log->tmin = INT_MAX;
log->endtic = 0;
if (usetics) { if (usetics) {
/* Expect time between this request and the previous one. */ /* Expect time between this request and the previous one. */
ticks dt = log->tic - basetic; ticks dt = log->tic - basetic;
...@@ -150,15 +159,6 @@ static void *inject_thread(void *arg) { ...@@ -150,15 +159,6 @@ static void *inject_thread(void *arg) {
} }
} }
/* Initialise new log elements. */
log->done = 0;
log->nr_tests = 0;
log->tsum = 0.0;
log->tmax = 0;
log->tmin = INT_MAX;
log->endtic = 0;
log->injtic = getticks();
/* Differences to SWIFT: MPI_BYTE not the MPI_Type. */ /* Differences to SWIFT: MPI_BYTE not the MPI_Type. */
int err = 0; int err = 0;
if (log->type == task_type_send) { if (log->type == task_type_send) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment