Commit 05fd0e1b authored by Xin Zhao's avatar Xin Zhao Committed by Pavan Balaji
Browse files

fix bug: return info=false in MPIDI_Win_get_info if that info is not set by user.


Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@mcs.anl.gov>
parent 95439bc8
...@@ -353,7 +353,7 @@ int MPIDI_Win_get_info(MPID_Win *win, MPID_Info **info_used) ...@@ -353,7 +353,7 @@ int MPIDI_Win_get_info(MPID_Win *win, MPID_Info **info_used)
if (win->info_args.no_locks) if (win->info_args.no_locks)
mpi_errno = MPIR_Info_set_impl(*info_used, "no_locks", "true"); mpi_errno = MPIR_Info_set_impl(*info_used, "no_locks", "true");
else else
mpi_errno = MPIR_Info_set_impl(*info_used, "no_locks", ""); mpi_errno = MPIR_Info_set_impl(*info_used, "no_locks", "false");
if (mpi_errno != MPI_SUCCESS) { MPIU_ERR_POP(mpi_errno); } if (mpi_errno != MPI_SUCCESS) { MPIU_ERR_POP(mpi_errno); }
...@@ -386,7 +386,7 @@ int MPIDI_Win_get_info(MPID_Win *win, MPID_Info **info_used) ...@@ -386,7 +386,7 @@ int MPIDI_Win_get_info(MPID_Win *win, MPID_Info **info_used)
if (win->info_args.alloc_shared_noncontig) if (win->info_args.alloc_shared_noncontig)
mpi_errno = MPIR_Info_set_impl(*info_used, "alloc_shared_noncontig", "true"); mpi_errno = MPIR_Info_set_impl(*info_used, "alloc_shared_noncontig", "true");
else else
mpi_errno = MPIR_Info_set_impl(*info_used, "alloc_shared_noncontig", ""); mpi_errno = MPIR_Info_set_impl(*info_used, "alloc_shared_noncontig", "false");
if (mpi_errno != MPI_SUCCESS) { MPIU_ERR_POP(mpi_errno); } if (mpi_errno != MPI_SUCCESS) { MPIU_ERR_POP(mpi_errno); }
} }
...@@ -394,7 +394,7 @@ int MPIDI_Win_get_info(MPID_Win *win, MPID_Info **info_used) ...@@ -394,7 +394,7 @@ int MPIDI_Win_get_info(MPID_Win *win, MPID_Info **info_used)
if (win->info_args.same_size) if (win->info_args.same_size)
mpi_errno = MPIR_Info_set_impl(*info_used, "same_size", "true"); mpi_errno = MPIR_Info_set_impl(*info_used, "same_size", "true");
else else
mpi_errno = MPIR_Info_set_impl(*info_used, "same_size", ""); mpi_errno = MPIR_Info_set_impl(*info_used, "same_size", "false");
if (mpi_errno != MPI_SUCCESS) { MPIU_ERR_POP(mpi_errno); } if (mpi_errno != MPI_SUCCESS) { MPIU_ERR_POP(mpi_errno); }
} }
......
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