A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tend to the google coding standards in all S4U API
[simgrid.git]
/
src
/
smpi
/
smpi_process.cpp
diff --git
a/src/smpi/smpi_process.cpp
b/src/smpi/smpi_process.cpp
index
27bc512
..
92d552e
100644
(file)
--- a/
src/smpi/smpi_process.cpp
+++ b/
src/smpi/smpi_process.cpp
@@
-4,7
+4,6
@@
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "mc/mc.h"
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "mc/mc.h"
-#include "src/mc/mc_ignore.h"
#include "src/mc/mc_replay.h"
#include "src/msg/msg_private.h"
#include "src/simix/smx_private.h"
#include "src/mc/mc_replay.h"
#include "src/msg/msg_private.h"
#include "src/simix/smx_private.h"
@@
-77,7
+76,7
@@
void Process::set_data(int index, int* argc, char*** argv)
instance_id_ = instance_id;
index_ = index;
instance_id_ = instance_id;
index_ = index;
- static_cast<simgrid::
Msg
ActorExt*>(SIMIX_process_self()->data)->data = this;
+ static_cast<simgrid::
msg::
ActorExt*>(SIMIX_process_self()->data)->data = this;
if (*argc > 3) {
memmove(&(*argv)[0], &(*argv)[2], sizeof(char *) * (*argc - 2));
if (*argc > 3) {
memmove(&(*argv)[0], &(*argv)[2], sizeof(char *) * (*argc - 2));
@@
-196,12
+195,12
@@
xbt_mutex_t Process::mailboxes_mutex()
}
#if HAVE_PAPI
}
#if HAVE_PAPI
-int Process::papi_event_set(
void
)
+int Process::papi_event_set()
{
return papi_event_set_;
}
{
return papi_event_set_;
}
-papi_counter_t& smpi_process_papi_counters(
void
)
+papi_counter_t& smpi_process_papi_counters()
{
return papi_counter_data_;
}
{
return papi_counter_data_;
}
@@
-274,7
+273,7
@@
void Process::init(int *argc, char ***argv){
smx_actor_t proc = SIMIX_process_self();
proc->context->set_cleanup(&MSG_process_cleanup_from_SIMIX);
smx_actor_t proc = SIMIX_process_self();
proc->context->set_cleanup(&MSG_process_cleanup_from_SIMIX);
- int index =
smpi_process_index_of_smx_process(proc)
;
+ int index =
proc->pid - 1
;
if(index_to_process_data == nullptr){
index_to_process_data=static_cast<int*>(xbt_malloc(SIMIX_process_count()*sizeof(int)));
if(index_to_process_data == nullptr){
index_to_process_data=static_cast<int*>(xbt_malloc(SIMIX_process_count()*sizeof(int)));