X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f..6ae04e68aa7838418bdf7cafdba4a1f5700db814:/teshsuite/smpi/coll-alltoallv/coll-alltoallv.c diff --git a/teshsuite/smpi/coll-alltoallv/coll-alltoallv.c b/teshsuite/smpi/coll-alltoallv/coll-alltoallv.c index baa6377ea1..db5fe0b385 100644 --- a/teshsuite/smpi/coll-alltoallv/coll-alltoallv.c +++ b/teshsuite/smpi/coll-alltoallv/coll-alltoallv.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2021. The SimGrid Team. +/* Copyright (c) 2013-2023. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -134,20 +134,23 @@ int main(int argc, char **argv) print_buffer_int(sdispls, size, "sdisp:", rank); print_buffer_int(rdispls, size, "rdisp:", rank); - MPI_Alltoallv(sbuf, sendcounts, sdispls, MPI_INT, rbuf, recvcounts, rdispls, MPI_INT, comm); + status = MPI_Alltoallv(sbuf, sendcounts, sdispls, MPI_INT, rbuf, recvcounts, rdispls, MPI_INT, comm); + if (status != MPI_SUCCESS) + printf("MPI_Alltoallv did not return MPI_SUCCESS\n"); print_buffer_int(rbuf, size2, "rbuf:", rank); MPI_Barrier(MPI_COMM_WORLD); if (0 == rank) { printf("Alltoallv TEST COMPLETE.\n"); + fflush(stdout); } - free(sdispls); - free(rdispls); - free(recvcounts); - free(sendcounts); - free(rbuf); - free(sbuf); + xbt_free(sdispls); + xbt_free(rdispls); + xbt_free(recvcounts); + xbt_free(sendcounts); + xbt_free(rbuf); + xbt_free(sbuf); MPI_Finalize(); return 0;