X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/666a812d1b3ee4568f2beb317dfcd08d99055697..7ab95b4f204adf85e9f24eafcc51ed1e6ba2b232:/src/smpi/bindings/smpi_pmpi.cpp diff --git a/src/smpi/bindings/smpi_pmpi.cpp b/src/smpi/bindings/smpi_pmpi.cpp index 9028c78d38..8939bbf04e 100644 --- a/src/smpi/bindings/smpi_pmpi.cpp +++ b/src/smpi/bindings/smpi_pmpi.cpp @@ -41,6 +41,7 @@ int PMPI_Init(int *argc, char ***argv) TRACE_smpi_comm_in(rank, __func__, new simgrid::instr::NoOpTIData("init")); TRACE_smpi_comm_out(rank); TRACE_smpi_computing_init(rank); + TRACE_smpi_sleeping_init(rank); smpi_bench_begin(); } @@ -120,7 +121,7 @@ int PMPI_Abort(MPI_Comm /*comm*/, int /*errorcode*/) smpi_bench_end(); // FIXME: should kill all processes in comm instead smx_actor_t process = SIMIX_process_self(); - simgrid::simix::kernelImmediate([process] { SIMIX_process_kill(process, process); }); + simgrid::simix::simcall([process] { SIMIX_process_kill(process, process); }); return MPI_SUCCESS; } @@ -207,6 +208,12 @@ int PMPI_Error_class(int errorcode, int* errorclass) { return MPI_SUCCESS; } +int PMPI_Error_string(int errorcode, char* string, int* resultlen){ + *resultlen = strlen(smpi_error_string[errorcode]); + strncpy(string, smpi_error_string[errorcode], *resultlen); + return MPI_SUCCESS; +} + int PMPI_Keyval_create(MPI_Copy_function* copy_fn, MPI_Delete_function* delete_fn, int* keyval, void* extra_state) { smpi_copy_fn _copy_fn={copy_fn,nullptr,nullptr}; smpi_delete_fn _delete_fn={delete_fn,nullptr,nullptr};