X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a6b23c846948f7f89277f75e7c42f3942b31b8d3..3b013fc09cb58be09f9f8d3f3a8161cb92bdbb84:/src/smpi/colls/smpi_mvapich2_selector.c diff --git a/src/smpi/colls/smpi_mvapich2_selector.c b/src/smpi/colls/smpi_mvapich2_selector.c index 91e40d3dad..f4c2ea7e64 100644 --- a/src/smpi/colls/smpi_mvapich2_selector.c +++ b/src/smpi/colls/smpi_mvapich2_selector.c @@ -866,7 +866,7 @@ int smpi_coll_tuned_reduce_scatter_mvapich2(void *sendbuf, void *recvbuf, int *r recvcnts, datatype, op, comm); } - + xbt_free(disps); return mpi_errno; } @@ -1006,3 +1006,32 @@ int smpi_coll_tuned_scatter_mvapich2(void *sendbuf, return (mpi_errno); } + +void smpi_coll_cleanup_mvapich2(){ +int i=0; +if(mv2_alltoall_thresholds_table) + xbt_free(mv2_alltoall_thresholds_table[i]); +xbt_free(mv2_alltoall_thresholds_table); +xbt_free(mv2_size_alltoall_tuning_table); +xbt_free(mv2_alltoall_table_ppn_conf); + +xbt_free(mv2_gather_thresholds_table); +if(mv2_allgather_thresholds_table) + xbt_free(mv2_allgather_thresholds_table[0]); +xbt_free(mv2_size_allgather_tuning_table); +xbt_free(mv2_allgather_table_ppn_conf); +xbt_free(mv2_allgather_thresholds_table); + + +xbt_free(mv2_allgatherv_thresholds_table); +xbt_free(mv2_reduce_thresholds_table); +xbt_free(mv2_red_scat_thresholds_table); +xbt_free(mv2_allreduce_thresholds_table); +xbt_free(mv2_bcast_thresholds_table); +if(mv2_scatter_thresholds_table) + xbt_free(mv2_scatter_thresholds_table[0]); +xbt_free(mv2_scatter_thresholds_table); +xbt_free(mv2_size_scatter_tuning_table); +xbt_free(mv2_scatter_table_ppn_conf); +} +