Commit 97ef2eeb authored by Pavan Balaji's avatar Pavan Balaji Committed by Min Si
Browse files

Bug-fix: Expose sufficient memory as public.



We were only exposing a part of the allocated buffer as public
memory, but attempting to use all of it remotely.

Thanks to Charles Archer @ Intel for reporting the error and
contributing the fix.
Signed-off-by: default avatarMin Si <msi@il.is.s.u-tokyo.ac.jp>
parent 322bc78b
......@@ -123,7 +123,7 @@ int main( int argc, char *argv[] )
srcbuf = malloc(RMA_SIZE*sizeof(*srcbuf));
assert(srcbuf);
MPI_Win_create( rmabuffer, bufsize, sizeof(int), MPI_INFO_NULL,
MPI_Win_create( rmabuffer, bufsize * sizeof(int), sizeof(int), MPI_INFO_NULL,
MPI_COMM_WORLD, &win );
/* Run a sequence of tests */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment