X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/95bcda88a7fcfa168381cba0eedadb1e4937d0b3..50b36cfb6864e719576327d1289cf9ba31d652da:/src/mc/mc_checkpoint.c diff --git a/src/mc/mc_checkpoint.c b/src/mc/mc_checkpoint.c index 0a5d94eb57..3d92e45243 100644 --- a/src/mc/mc_checkpoint.c +++ b/src/mc/mc_checkpoint.c @@ -35,6 +35,7 @@ #include "mc_mmu.h" #include "mc_unw.h" #include "mc_protocol.h" +#include "mc_smx.h" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_checkpoint, mc, "Logging specific to mc_checkpoint"); @@ -203,7 +204,7 @@ static mc_mem_region_t MC_region_new_privatized( mc_region_type_t region_type, void *start_addr, void* permanent_addr, size_t size, mc_mem_region_t ref_reg) { - size_t process_count = smpi_process_count(); + size_t process_count = MC_smpi_process_count(); mc_mem_region_t region = xbt_new(s_mc_mem_region_t, 1); region->region_type = region_type; region->storage_type = MC_REGION_STORAGE_TYPE_PRIVATIZED; @@ -241,7 +242,7 @@ static void MC_snapshot_add_region(int index, mc_snapshot_t snapshot, mc_region_ mc_mem_region_t region; const bool privatization_aware = MC_object_info_is_privatized(object_info); - if (privatization_aware && smpi_process_count()) + if (privatization_aware && MC_smpi_process_count()) region = MC_region_new_privatized(type, start_addr, permanent_addr, size, ref_reg); else region = MC_region_new(type, start_addr, permanent_addr, size, ref_reg); @@ -276,7 +277,7 @@ static void MC_get_memory_regions(mc_process_t process, mc_snapshot_t snapshot) MC_process_get_malloc_info(process)); #ifdef HAVE_SMPI - if (smpi_privatize_global_variables && smpi_process_count()) { + if (smpi_privatize_global_variables && MC_smpi_process_count()) { // FIXME, cross-process snapshot->privatization_index = smpi_loaded_page; } else