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
[SMPI] Only allocate memory for call-loc when cfg-option is given
[simgrid.git]
/
src
/
smpi
/
instr_smpi.cpp
diff --git
a/src/smpi/instr_smpi.cpp
b/src/smpi/instr_smpi.cpp
index
9c8448d
..
4f0ae28
100644
(file)
--- a/
src/smpi/instr_smpi.cpp
+++ b/
src/smpi/instr_smpi.cpp
@@
-82,8
+82,7
@@
static const char *instr_find_color (const char *state)
return ret;
}
return ret;
}
-
-static char *smpi_container(int rank, char *container, int n)
+XBT_PRIVATE char *smpi_container(int rank, char *container, int n)
{
snprintf(container, n, "rank-%d", rank);
return container;
{
snprintf(container, n, "rank-%d", rank);
return container;
@@
-91,7
+90,6
@@
static char *smpi_container(int rank, char *container, int n)
static char *TRACE_smpi_get_key(int src, int dst, char *key, int n);
static char *TRACE_smpi_get_key(int src, int dst, char *key, int n);
-
static char *TRACE_smpi_put_key(int src, int dst, char *key, int n)
{
//get the dynar for src#dst
static char *TRACE_smpi_put_key(int src, int dst, char *key, int n)
{
//get the dynar for src#dst
@@
-99,7
+97,6
@@
static char *TRACE_smpi_put_key(int src, int dst, char *key, int n)
snprintf(aux, INSTR_DEFAULT_STR_SIZE, "%d#%d", src, dst);
xbt_dynar_t d = static_cast<xbt_dynar_t>(xbt_dict_get_or_null(keys, aux));
snprintf(aux, INSTR_DEFAULT_STR_SIZE, "%d#%d", src, dst);
xbt_dynar_t d = static_cast<xbt_dynar_t>(xbt_dict_get_or_null(keys, aux));
-
if(!xbt_dynar_is_empty(d)){
//receive was already pushed, perform a get instead
TRACE_smpi_get_key(src , dst, key ,n);
if(!xbt_dynar_is_empty(d)){
//receive was already pushed, perform a get instead
TRACE_smpi_get_key(src , dst, key ,n);
@@
-236,7
+233,6
@@
void TRACE_smpi_collective_in(int rank, int root, const char *operation, instr_e
new_pajePushStateWithExtra (SIMIX_get_clock(), container, type, value, (void*)extra);
}
new_pajePushStateWithExtra (SIMIX_get_clock(), container, type, value, (void*)extra);
}
-
void TRACE_smpi_collective_out(int rank, int root, const char *operation)
{
if (!TRACE_smpi_is_enabled()) return;
void TRACE_smpi_collective_out(int rank, int root, const char *operation)
{
if (!TRACE_smpi_is_enabled()) return;
@@
-333,7
+329,6
@@
void TRACE_smpi_sleeping_out(int rank)
new_pajePopState (SIMIX_get_clock(), container, type);
}
new_pajePopState (SIMIX_get_clock(), container, type);
}
-
void TRACE_smpi_testing_in(int rank, instr_extra_data extra)
{
//do not forget to set the color first, otherwise this will explode
void TRACE_smpi_testing_in(int rank, instr_extra_data extra)
{
//do not forget to set the color first, otherwise this will explode