return ret;
}
-
static char *smpi_container(int rank, char *container, int n)
{
snprintf(container, n, "rank-%d", rank);
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
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);
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;
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