|
@@ -1,6 +1,6 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
- * Copyright (C) 2009-2016 Université de Bordeaux
|
|
|
+ * Copyright (C) 2009-2017 Université de Bordeaux
|
|
|
*
|
|
|
* StarPU is free software; you can redistribute it and/or modify
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
@@ -835,9 +835,11 @@ static void handle_new_mem_node(struct fxt_ev_64 *ev, struct starpu_fxt_options
|
|
|
|
|
|
if (!options->no_bus)
|
|
|
#ifdef STARPU_HAVE_POTI
|
|
|
- poti_SetVariable(get_event_time_stamp(ev, options), new_memmanager_container_alias, "bw", get_event_time_stamp(ev, options));
|
|
|
+ poti_SetVariable(get_event_time_stamp(ev, options), new_memmanager_container_alias, "bwi", get_event_time_stamp(ev, options));
|
|
|
+ poti_SetVariable(get_event_time_stamp(ev, options), new_memmanager_container_alias, "bwo", get_event_time_stamp(ev, options));
|
|
|
#else
|
|
|
- fprintf(out_paje_file, "13 %.9f %smm%"PRIu64" bw 0.0\n", get_event_time_stamp(ev, options), prefix, ev->param[0]);
|
|
|
+ fprintf(out_paje_file, "13 %.9f %smm%"PRIu64" bwi 0.0\n", get_event_time_stamp(ev, options), prefix, ev->param[0]);
|
|
|
+ fprintf(out_paje_file, "13 %.9f %smm%"PRIu64" bwo 0.0\n", get_event_time_stamp(ev, options), prefix, ev->param[0]);
|
|
|
#endif
|
|
|
}
|
|
|
}
|
|
@@ -2394,7 +2396,8 @@ static void handle_thread_event(struct fxt_ev_64 *ev, struct starpu_fxt_options
|
|
|
static
|
|
|
void _starpu_fxt_display_bandwidth(struct starpu_fxt_options *options)
|
|
|
{
|
|
|
- float current_bandwidth_per_node[STARPU_MAXNODES] = {0.0};
|
|
|
+ float current_bandwidth_in_per_node[STARPU_MAXNODES] = {0.0};
|
|
|
+ float current_bandwidth_out_per_node[STARPU_MAXNODES] = {0.0};
|
|
|
|
|
|
char *prefix = options->file_prefix;
|
|
|
|
|
@@ -2403,29 +2406,29 @@ void _starpu_fxt_display_bandwidth(struct starpu_fxt_options *options)
|
|
|
itor != _starpu_communication_list_end(&communication_list);
|
|
|
itor = _starpu_communication_list_next(itor))
|
|
|
{
|
|
|
- current_bandwidth_per_node[itor->src_node] += itor->bandwidth;
|
|
|
+ current_bandwidth_out_per_node[itor->src_node] += itor->bandwidth;
|
|
|
if (out_paje_file)
|
|
|
{
|
|
|
#ifdef STARPU_HAVE_POTI
|
|
|
char src_memnode_container[STARPU_POTI_STR_LEN];
|
|
|
memmanager_container_alias(src_memnode_container, STARPU_POTI_STR_LEN, prefix, itor->src_node);
|
|
|
- poti_SetVariable(itor->comm_start, src_memnode_container, "bw", current_bandwidth_per_node[itor->src_node]);
|
|
|
+ poti_SetVariable(itor->comm_start, src_memnode_container, "bwo", current_bandwidth_out_per_node[itor->src_node]);
|
|
|
#else
|
|
|
- fprintf(out_paje_file, "13 %.9f %smm%u bw %f\n",
|
|
|
- itor->comm_start, prefix, itor->src_node, current_bandwidth_per_node[itor->src_node]);
|
|
|
+ fprintf(out_paje_file, "13 %.9f %smm%u bwo %f\n",
|
|
|
+ itor->comm_start, prefix, itor->src_node, current_bandwidth_out_per_node[itor->src_node]);
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
- current_bandwidth_per_node[itor->dst_node] += itor->bandwidth;
|
|
|
+ current_bandwidth_in_per_node[itor->dst_node] += itor->bandwidth;
|
|
|
if (out_paje_file)
|
|
|
{
|
|
|
#ifdef STARPU_HAVE_POTI
|
|
|
char dst_memnode_container[STARPU_POTI_STR_LEN];
|
|
|
memmanager_container_alias(dst_memnode_container, STARPU_POTI_STR_LEN, prefix, itor->dst_node);
|
|
|
- poti_SetVariable(itor->comm_start, dst_memnode_container, "bw", current_bandwidth_per_node[itor->dst_node]);
|
|
|
+ poti_SetVariable(itor->comm_start, dst_memnode_container, "bwi", current_bandwidth_in_per_node[itor->dst_node]);
|
|
|
#else
|
|
|
- fprintf(out_paje_file, "13 %.9f %smm%u bw %f\n",
|
|
|
- itor->comm_start, prefix, itor->dst_node, current_bandwidth_per_node[itor->dst_node]);
|
|
|
+ fprintf(out_paje_file, "13 %.9f %smm%u bwi %f\n",
|
|
|
+ itor->comm_start, prefix, itor->dst_node, current_bandwidth_in_per_node[itor->dst_node]);
|
|
|
#endif
|
|
|
}
|
|
|
}
|