X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6135eea71e3f38292e9da828bdcf04eb110509fe..b7ed19dfcc221d7b3eca182abb5c4a3946671172:/src/smpi/smpi_bench.cpp diff --git a/src/smpi/smpi_bench.cpp b/src/smpi/smpi_bench.cpp index b7b7c6df0e..db2431f9e7 100644 --- a/src/smpi/smpi_bench.cpp +++ b/src/smpi/smpi_bench.cpp @@ -340,7 +340,7 @@ static unsigned int private_sleep(double secs) smpi_bench_end(); XBT_DEBUG("Sleep for: %lf secs", secs); - int rank = smpi_comm_rank(MPI_COMM_WORLD); + int rank = MPI_COMM_WORLD->rank(); instr_extra_data extra = xbt_new0(s_instr_extra_data_t,1); extra->type=TRACING_SLEEPING; extra->sleep_duration=secs; @@ -613,7 +613,7 @@ void *smpi_shared_malloc(size_t size, const char *file, int line) char* dumb = (char*)calloc(1, smpi_shared_malloc_blocksize); ssize_t err = write(smpi_shared_malloc_bogusfile, dumb, smpi_shared_malloc_blocksize); if(err<0) - xbt_die("could ot write bogus file for shared malloc"); + xbt_die("Could not write bogus file for shared malloc"); free(dumb); }