Skip to content

Commit

Permalink
mpi/tests/large_set.c: check return value
Browse files Browse the repository at this point in the history
  • Loading branch information
nfurmento committed Oct 16, 2024
1 parent bdb99f3 commit 893af0e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mpi/tests/large_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,15 @@ int main(int argc, char **argv)
MPI_Finalize();
return rank_comm == 0 ? STARPU_TEST_SKIPPED : 0;
}
MPI_Type_commit(&datatype);
ret = MPI_Type_commit(&datatype);
if (ret != MPI_SUCCESS)
{
FPRINTF(stderr, "Function MPI_Type_commit fails with large types.\n");
starpu_mpi_shutdown();
if (!mpi_init)
MPI_Finalize();
return rank_comm == 0 ? STARPU_TEST_SKIPPED : 0;
}
MPI_Type_free(&datatype);
}
#endif
Expand Down

0 comments on commit 893af0e

Please sign in to comment.