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

Working without timing

parent bec906fd
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,6 @@ static int volatile todo_send = 0; ...@@ -44,7 +44,6 @@ static int volatile todo_send = 0;
* times. */ * times. */
static void *inject_thread(void *arg) { static void *inject_thread(void *arg) {
message("%d: injection thread starts", *((int *)arg)); message("%d: injection thread starts", *((int *)arg));
//atomic_inc(&injecting);
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];
...@@ -65,7 +64,7 @@ static void *inject_thread(void *arg) { ...@@ -65,7 +64,7 @@ static void *inject_thread(void *arg) {
atomic_inc(&todo_send); atomic_inc(&todo_send);
} else { } else {
err = MPI_Irecv(log->data, log->size, MPI_BYTE, log->rank, err = MPI_Irecv(log->data, log->size, MPI_BYTE, log->otherrank,
log->tag, subtypeMPI_comms[log->subtype], &log->req); log->tag, subtypeMPI_comms[log->subtype], &log->req);
/* Add a new recv request. */ /* Add a new recv request. */
...@@ -106,7 +105,7 @@ static void *send_thread(void *arg) { ...@@ -106,7 +105,7 @@ static void *send_thread(void *arg) {
} }
if (res) { if (res) {
/* Done, clean up. */ /* Done, clean up. */
message("MPI_Test successful"); //message("MPI_Test successful");
free(log->data); free(log->data);
sends_queue[k] = NULL; sends_queue[k] = NULL;
atomic_dec(&todo_send); atomic_dec(&todo_send);
...@@ -139,7 +138,7 @@ static void *recv_thread(void *arg) { ...@@ -139,7 +138,7 @@ static void *recv_thread(void *arg) {
} }
if (res) { if (res) {
/* Done, clean up. */ /* Done, clean up. */
message("MPI_Test successful"); //message("MPI_Test successful");
free(log->data); free(log->data);
recvs_queue[k] = NULL; recvs_queue[k] = NULL;
atomic_dec(&todo_recv); atomic_dec(&todo_recv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment