Commit ca37797d authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

call RUNTIME_barrier in MORSE_Finalize before RUNTIME_finalize_scheduler and morse_context_destroy

parent 8c845af7
......@@ -138,14 +138,14 @@ int MORSE_Finalize(void)
return MORSE_ERR_NOT_INITIALIZED;
}
MORSE_TASK_dataflush_all();
# if !defined(CHAMELEON_SIMULATION)
RUNTIME_barrier(morse);
# endif
RUNTIME_finalize_scheduler( morse );
#if defined(CHAMELEON_USE_MAGMA)
magma_finalize();
#endif
morse_context_destroy();
# if !defined(CHAMELEON_SIMULATION)
RUNTIME_barrier(morse);
# endif
#if defined(CHAMELEON_USE_MPI)
if (!morse->mpi_outer_init)
MPI_Finalize();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment