-/* Copyright (c) 2015. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2015-2017. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/mc/remote/Client.hpp"
#include "src/mc/remote/mc_protocol.h"
+#include "src/smpi/private.hpp"
+
// We won't need those once the separation MCer/MCed is complete:
-#include "src/mc/mc_ignore.h"
#include "src/mc/mc_smx.h"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_client, mc, "MC client logic");
region.block = ((char*)stack - (char*)heap->heapbase) / BLOCKSIZE + 1;
#if HAVE_SMPI
if (smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP && process)
- region.process_index = smpi_process_index_of_smx_process(process);
+ region.process_index = process->pid - 1;
else
#endif
region.process_index = -1;