starpu_mpi_comm_stats_enable creates segfault if STARPU_MPI/COMM_STATS has not been setup
I have encountered the problem twice (I have written the function so it is my fault :))
The issue is as follows:
- a STARPU-MPI application is launched without
STARPU_MPI_STATS
orSTARPU_COMM_STATS
setup - this StarPU-MPI application calls
starpu_mpi_comm_stats_enable()
- a communication request is scheduled/done
- the application segfault because the stats for MPI have not been setup
I think either of the following could be done:
- Calling
starpu_mpi_stats_enable
afterstarpu_mpi_init
should call_starpu_mpi_comm_amounts_init
ifcomm_amount
isNULL
- The documentation should clarify that disabling/enabling the communication statistics can only be done if
STARPU_MPI/COMM_STATS
has been setup - this seems convoluted.