#include <string.h>
#include <assert.h>
-#ifdef HAVE_UNISTD_H
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
/* Constants that control the high level test harness behavior. */
/* MAIN_ITERATIONS is how many NBC ops the test will attempt to issue. */
-#define MAIN_ITERATIONS (100000)
+#define MAIN_ITERATIONS (1000)
/* WINDOW is the maximum number of outstanding NBC requests at any given time */
#define WINDOW (20)
/* we sleep with probability 1/CHANCE_OF_SLEEP */
int *recvcounts;
int *sdispls;
int *rdispls;
- int *sendtypes;
- int *recvtypes;
+ MPI_Datatype *sendtypes;
+ MPI_Datatype *recvtypes;
};
static void cleanup_laundry(struct laundry *l)
}
/* Starts a "random" operation on "comm" corresponding to "rndnum" and returns
- * in (*req) a request handle corresonding to that operation. This call should
+ * in (*req) a request handle corresponding to that operation. This call should
* be considered collective over comm (with a consistent value for "rndnum"),
* even though the operation may only be a point-to-point request. */
static void start_random_nonblocking(MPI_Comm comm, unsigned int rndnum, MPI_Request * req,
int *recvcounts = NULL;
int *sdispls = NULL;
int *rdispls = NULL;
- int *sendtypes = NULL;
- int *recvtypes = NULL;
+ MPI_Datatype *sendtypes = NULL;
+ MPI_Datatype *recvtypes = NULL;
signed char *buf_alias = NULL;
MPI_Comm_rank(comm, &rank);
MPI_Comm comm = l->comm;
int *buf = l->buf;
int *recvbuf = l->recvbuf;
- int *sendcounts = l->sendcounts;
- int *recvcounts = l->recvcounts;
- int *sdispls = l->sdispls;
- int *rdispls = l->rdispls;
- int *sendtypes = l->sendtypes;
- int *recvtypes = l->recvtypes;
char *buf_alias = (char *) buf;
MPI_Comm_rank(comm, &rank);
complete_seq = gen_prn(complete_seq);
for (i = 0; i < outcount; ++i) {
int idx = indices[i];
- assert(reqs[idx] == MPI_REQUEST_NULL);
+ // assert(reqs[idx] == MPI_REQUEST_NULL);
if (larr[idx].case_num != -1) {
check_after_completion(&larr[idx]);
cleanup_laundry(&larr[idx]);