Revert "use memory create/destroy for allocating MPI objects which prefer 16 byte alignment"
This reverts commit 827d4709ac.
This commit is contained in:
@ -338,8 +338,8 @@ int Irregular::create_atom(int n, int *sizes, int *proclist, int sortflag)
|
||||
|
||||
proc_recv = new int[nrecv_proc];
|
||||
length_recv = new int[nrecv_proc];
|
||||
memory->create(request, nrecv_proc, "irregular:request");
|
||||
memory->create(status, nrecv_proc, "irregular:status");
|
||||
request = new MPI_Request[nrecv_proc];
|
||||
status = new MPI_Status[nrecv_proc];
|
||||
|
||||
// nsend_proc = # of messages I send
|
||||
|
||||
@ -564,8 +564,8 @@ void Irregular::destroy_atom()
|
||||
delete [] offset_send;
|
||||
delete [] proc_recv;
|
||||
delete [] length_recv;
|
||||
memory->destroy(request);
|
||||
memory->destroy(status);
|
||||
delete [] request;
|
||||
delete [] status;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
@ -611,8 +611,8 @@ int Irregular::create_data(int n, int *proclist, int sortflag)
|
||||
|
||||
proc_recv = new int[nrecv_proc];
|
||||
num_recv = new int[nrecv_proc];
|
||||
memory->create(request, nrecv_proc, "irregular:request");
|
||||
memory->create(status, nrecv_proc, "irregular:status");
|
||||
request = new MPI_Request[nrecv_proc];
|
||||
status = new MPI_Status[nrecv_proc];
|
||||
|
||||
// work1 = # of datums I send to each proc, including self
|
||||
// nsend_proc = # of procs I send messages to, not including self
|
||||
@ -986,8 +986,8 @@ void Irregular::destroy_data()
|
||||
delete [] proc_recv;
|
||||
delete [] num_recv;
|
||||
delete [] index_self;
|
||||
memory->destroy(request);
|
||||
memory->destroy(status);
|
||||
delete [] request;
|
||||
delete [] status;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user