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

Squash some compilation issues

parent dc2fdbee
Branches
No related tags found
1 merge request!11Draft: Fast one-sided MPI version
......@@ -442,11 +442,11 @@ void mpiuse_log_generate(int nr_nodes, int nr_logs, int size, int random,
*/
void mpiuse_shuffle_logs(struct mpiuse_log_entry **logs, int nlogs) {
struct mpiuse_log_entry tmp;
struct mpiuse_log_entry *tmp;
for (int k = nlogs - 1; k > 0; k--) {
unsigned int j = (unsigned int)(drand48() * (k + 1));
memcpy(&tmp, &logs[j], sizeof(struct mpiuse_log_entry *));
memcpy(&logs[j], &logs[k], sizeof(struct mpiuse_log_entry *));
memcpy(&logs[k], &tmp, sizeof(struct mpiuse_log_entry *));
tmp = logs[j];
logs[j] = logs[k];
logs[k] = tmp;
}
}
......@@ -51,11 +51,9 @@ static int volatile nr_reqs = 0;
static int volatile injecting = 1;
static struct mpiuse_log_entry **volatile recvs_queue;
static int volatile nr_recvs = 0;
static int volatile ind_recv = 0;
static int volatile todo_recv = 0;
static struct mpiuse_log_entry **volatile sends_queue;
static int volatile nr_sends = 0;
static int volatile ind_send = 0;
static int volatile todo_send = 0;
/**
......
......@@ -63,11 +63,9 @@ static int volatile nr_reqs = 0;
static int volatile injecting = 1;
static struct mpiuse_log_entry **volatile recvs_queue;
static int volatile nr_recvs = 0;
static int volatile ind_recv = 0;
static int volatile todo_recv = 0;
static struct mpiuse_log_entry **volatile sends_queue;
static int volatile nr_sends = 0;
static int volatile ind_send = 0;
static int volatile todo_send = 0;
/* CPU frequency of the machine that created the MPI log. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment