#include <simgrid/datatypes.h>
#include <smpi/forward.hpp>
#include <stddef.h>
-#include <xbt/function_types.h>
#include <xbt/misc.h>
#ifdef _WIN32
#include <math.h>
#include "smpi/mpi.h"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_coll.hpp"
#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_datatype.hpp"
/* 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/smpi/private.h"
#include "src/smpi/smpi_coll.hpp"
#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_datatype.hpp"
#ifndef SMPI_COLL_HPP
#define SMPI_COLL_HPP
-#include <xbt/base.h>
-
-#include "private.h"
+#include "xbt/base.h"
/** \brief MPI collective description */
#include "simgrid/s4u/Host.hpp"
#include "src/simix/smx_private.h"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_coll.hpp"
#include "src/smpi/smpi_datatype.hpp"
#ifndef SMPI_COMM_HPP_INCLUDED
#define SMPI_COMM_HPP_INCLUDED
-#include "private.h"
#include <list>
#include "src/smpi/smpi_keyvals.hpp"
#include "src/smpi/smpi_group.hpp"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/modelchecker.h"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_datatype_derived.hpp"
#include "src/smpi/smpi_op.hpp"
#include "src/smpi/smpi_process.hpp"
#ifndef SMPI_DATATYPE_DERIVED_HPP
#define SMPI_DATATYPE_DERIVED_HPP
-#include <xbt/base.h>
-
-#include "private.h"
#include "src/smpi/smpi_datatype.hpp"
namespace simgrid{
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "simgrid/msg.h" /* barrier */
-#include "src/smpi/SmpiHost.hpp"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_comm.hpp"
+#include "src/smpi/SmpiHost.hpp"
namespace simgrid {
namespace smpi {
/* 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/smpi/private.h"
#include "src/smpi/smpi_f2c.hpp"
#include "src/smpi/smpi_process.hpp"
/* 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/smpi/private.h"
+#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_datatype.hpp"
#include "src/smpi/smpi_op.hpp"
#include "src/smpi/smpi_process.hpp"
/* 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 <dlfcn.h>
-#include <fcntl.h>
-#include <spawn.h>
-#include <sys/stat.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-
#include "mc/mc.h"
#include "simgrid/s4u/Mailbox.hpp"
-#include "smpi/smpi_shared_malloc.hpp"
-#include "simgrid/sg_config.h"
-#include "src/kernel/activity/SynchroComm.hpp"
-#include "src/mc/mc_record.h"
-#include "src/mc/mc_replay.h"
+#include "simgrid/s4u/Host.hpp"
#include "src/msg/msg_private.h"
#include "src/simix/smx_private.h"
#include "src/surf/surf_interface.hpp"
#include "src/smpi/SmpiHost.hpp"
-#include "surf/surf.h"
-#include "xbt/replay.hpp"
-#include <xbt/config.hpp>
-#include "src/smpi/smpi_process.hpp"
+#include "xbt/config.hpp"
+#include "src/smpi/private.h"
+#include "smpi/smpi_shared_malloc.hpp"
#include "src/smpi/smpi_coll.hpp"
+#include "src/smpi/smpi_comm.hpp"
+#include "src/smpi/smpi_group.hpp"
#include "src/smpi/smpi_info.hpp"
+#include "src/smpi/smpi_process.hpp"
+#include <dlfcn.h>
+#include <fcntl.h>
+#include <sys/stat.h>
#include <float.h> /* DBL_MAX */
#include <fstream>
-#include <map>
-#include <stdint.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string>
-#include <utility>
-#include <vector>
-#include <memory>
#if HAVE_SENDFILE
#include <sys/sendfile.h>
#define RTLD_DEEPBIND 0
#endif
-/* Mac OSX does not have any header file providing that definition so we have to duplicate it here. Bummers. */
-extern char** environ; /* we use it in posix_spawnp below */
-
#if HAVE_PAPI
#include "papi.h"
const char* papi_default_config_name = "default";
void (*smpi_comm_copy_data_callback) (smx_activity_t, void*, size_t) = &smpi_comm_copy_buffer_callback;
-
-
int smpi_process_count()
{
return process_count;
#ifndef SMPI_GROUP_HPP_INCLUDED
#define SMPI_GROUP_HPP_INCLUDED
-#include "private.h"
#include "src/smpi/smpi_f2c.hpp"
namespace simgrid{
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "src/smpi/smpi_info.hpp"
+#include "xbt/ex.hpp"
+#include "xbt/sysdep.h"
namespace simgrid{
namespace smpi{
#ifndef SMPI_INFO_HPP
#define SMPI_INFO_HPP
-#include <xbt/base.h>
-
-#include "private.h"
-#include "src/smpi/smpi_comm.hpp"
+#include "src/smpi/smpi_f2c.hpp"
+#include "smpi/smpi.h"
+#include "xbt/dict.h"
namespace simgrid{
namespace smpi{
-/* Copyright (c) 2010, 2013-2017. The SimGrid Team.
- * All rights reserved. */
+/* Copyright (c) 2010-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. */
#ifndef SMPI_KEYVALS_HPP_INCLUDED
#define SMPI_KEYVALS_HPP_INCLUDED
-#include <unordered_map>
-#include <xbt/ex.hpp>
#include "smpi/smpi.h"
+#include "xbt/ex.hpp"
+
+#include <unordered_map>
typedef struct smpi_delete_fn{
MPI_Comm_delete_attr_function *comm_delete_fn;
#include "src/xbt/memory_map.hpp"
-#include "private.h"
+#include "src/smpi/private.h"
#include "private.hpp"
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(smpi_memory, smpi, "Memory layout support for SMPI");
/* 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/smpi/private.h"
#include "src/smpi/smpi_datatype.hpp"
#include "src/smpi/smpi_op.hpp"
#include "src/smpi/smpi_process.hpp"
#ifndef SMPI_OP_HPP
#define SMPI_OP_HPP
-#include "private.h"
#include "src/smpi/smpi_info.hpp"
namespace simgrid{
#include "simgrid/s4u/Engine.hpp"
#include "simgrid/s4u/Host.hpp"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_coll.hpp"
#include "src/smpi/smpi_datatype_derived.hpp"
#include "src/mc/mc_replay.h"
#include "src/msg/msg_private.h"
#include "src/simix/smx_private.h"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_process.hpp"
#include "src/smpi/smpi_group.hpp"
#include "src/smpi/smpi_comm.hpp"
#ifndef SMPI_PROCESS_HPP
#define SMPI_PROCESS_HPP
-
-#include <xbt/base.h>
#include "src/instr/instr_smpi.h"
-#include "private.h"
#include "simgrid/s4u/Mailbox.hpp"
#include "xbt/synchro.h"
/* 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/smpi/private.h"
#include "src/smpi/smpi_coll.hpp"
#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_datatype.hpp"
#include "src/mc/mc_replay.h"
#include "src/smpi/SmpiHost.hpp"
#include "src/kernel/activity/SynchroComm.hpp"
+#include "src/smpi/private.h"
#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_datatype.hpp"
#include "src/smpi/smpi_op.hpp"
/* 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/smpi/private.h"
#include "src/smpi/smpi_coll.hpp"
+#include "src/smpi/smpi_comm.hpp"
#include "src/smpi/smpi_datatype.hpp"
#include "src/smpi/smpi_info.hpp"
#include "src/smpi/smpi_keyvals.hpp"