fix up some comments
This commit is contained in:
12
src/comm.cpp
12
src/comm.cpp
@ -888,7 +888,7 @@ rendezvous_irregular(int n, char *inbuf, int insize, int inorder, int *procs,
|
||||
if (inorder) nrvous = irregular->create_data_grouped(n,procs);
|
||||
else nrvous = irregular->create_data(n,procs);
|
||||
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not nullptr
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not a null pointer
|
||||
|
||||
char *inbuf_rvous = (char *) memory->smalloc((bigint) nrvous*insize+1,
|
||||
"rendezvous:inbuf");
|
||||
@ -925,7 +925,7 @@ rendezvous_irregular(int n, char *inbuf, int insize, int inorder, int *procs,
|
||||
nout = irregular->create_data_grouped(nrvous_out,procs_rvous);
|
||||
else nout = irregular->create_data(nrvous_out,procs_rvous);
|
||||
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not nullptr
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not a null pointer
|
||||
|
||||
outbuf = (char *) memory->smalloc((bigint) nout*outsize+1,
|
||||
"rendezvous:outbuf");
|
||||
@ -967,7 +967,7 @@ rendezvous_all2all(int n, char *inbuf, int insize, int inorder, int *procs,
|
||||
if (!inorder) {
|
||||
memory->create(procs_a2a,nprocs,"rendezvous:procs");
|
||||
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not nullptr
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not a null pointer
|
||||
|
||||
inbuf_a2a = (char *) memory->smalloc((bigint) n*insize+1,
|
||||
"rendezvous:inbuf");
|
||||
@ -1032,7 +1032,7 @@ rendezvous_all2all(int n, char *inbuf, int insize, int inorder, int *procs,
|
||||
}
|
||||
|
||||
// all2all comm of inbuf from caller decomp to rendezvous decomp
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not nullptr
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not a null pointer
|
||||
|
||||
char *inbuf_rvous = (char *) memory->smalloc((bigint) nrvous*insize+1,
|
||||
"rendezvous:inbuf");
|
||||
@ -1074,7 +1074,7 @@ rendezvous_all2all(int n, char *inbuf, int insize, int inorder, int *procs,
|
||||
if (!outorder) {
|
||||
memory->create(procs_a2a,nprocs,"rendezvous_a2a:procs");
|
||||
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not nullptr
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not a null pointer
|
||||
|
||||
outbuf_a2a = (char *) memory->smalloc((bigint) nrvous_out*outsize+1,
|
||||
"rendezvous:outbuf");
|
||||
@ -1135,7 +1135,7 @@ rendezvous_all2all(int n, char *inbuf, int insize, int inorder, int *procs,
|
||||
|
||||
// all2all comm of outbuf from rendezvous decomp back to caller decomp
|
||||
// caller will free outbuf
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not nullptr
|
||||
// add 1 item to the allocated buffer size, so the returned pointer is not a null pointer
|
||||
|
||||
outbuf = (char *) memory->smalloc((bigint) nout*outsize+1,"rendezvous:outbuf");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user