Skip to content

Commit 3717c0f

Browse files
committed
More logging and error checking.
1 parent e4431aa commit 3717c0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/runtime-libraries/mpi/mpi_caf.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,8 @@ handle_incoming_message(MPI_Status *status_in, MPI_Message *msg_han,
967967

968968
ierr = MPI_Mrecv(msg, cnt, MPI_BYTE, msg_han, status_in);
969969
chk_err(ierr);
970-
dprint("ct: Received request of size %d.\n", cnt);
970+
dprint("ct: Received request of size %d (sizeof(ct_msg) = %zd).\n", cnt,
971+
sizeof(ct_msg_t));
971972

972973
if (msg->win != MPI_WIN_NULL)
973974
{
@@ -1039,7 +1040,8 @@ communication_thread(void *)
10391040
status.MPI_SOURCE, status.MPI_TAG, status.MPI_ERROR);
10401041
if (status.MPI_TAG == CAF_CT_TAG && status.MPI_ERROR == MPI_SUCCESS)
10411042
{
1042-
MPI_Get_count(&status, MPI_BYTE, &cnt);
1043+
ierr = MPI_Get_count(&status, MPI_BYTE, &cnt);
1044+
chk_err(ierr);
10431045

10441046
if (cnt >= sizeof(ct_msg_t))
10451047
{

0 commit comments

Comments
 (0)