|
@@ -1,6 +1,6 @@
|
|
|
/* StarPU --- Runtime system for heterogeneous multicore architectures.
|
|
|
*
|
|
|
- * Copyright (C) 2009-2011,2013,2014,2016 Université de Bordeaux
|
|
|
+ * Copyright (C) 2009-2011,2013,2014,2016,2019 Université de Bordeaux
|
|
|
* Copyright (C) 2010-2013,2015-2017 CNRS
|
|
|
* Copyright (C) 2015,2016 Inria
|
|
|
*
|
|
@@ -19,6 +19,7 @@
|
|
|
#include <starpu.h>
|
|
|
#include <datawizard/datastats.h>
|
|
|
#include <datawizard/coherency.h>
|
|
|
+#include <datawizard/memory_nodes.h>
|
|
|
#include <common/config.h>
|
|
|
|
|
|
int _starpu_enable_stats = 0;
|
|
@@ -68,7 +69,9 @@ void _starpu_display_msi_stats(FILE *stream)
|
|
|
{
|
|
|
if (hit_cnt[node]+miss_cnt[node])
|
|
|
{
|
|
|
- fprintf(stream, "memory node %u\n", node);
|
|
|
+ char name[128];
|
|
|
+ _starpu_memory_node_get_name(node, name, sizeof(name));
|
|
|
+ fprintf(stream, "memory node %s\n", name);
|
|
|
fprintf(stream, "\thit : %u (%2.2f %%)\n", hit_cnt[node], (100.0f*hit_cnt[node])/(hit_cnt[node]+miss_cnt[node]));
|
|
|
fprintf(stream, "\tmiss : %u (%2.2f %%)\n", miss_cnt[node], (100.0f*miss_cnt[node])/(hit_cnt[node]+miss_cnt[node]));
|
|
|
}
|
|
@@ -104,13 +107,13 @@ void _starpu_display_alloc_cache_stats(FILE *stream)
|
|
|
{
|
|
|
if (alloc_cnt[node])
|
|
|
{
|
|
|
- fprintf(stream, "memory node %u\n", node);
|
|
|
+ char name[128];
|
|
|
+ _starpu_memory_node_get_name(node, name, sizeof(name));
|
|
|
+ fprintf(stream, "memory node %s\n", name);
|
|
|
fprintf(stream, "\ttotal alloc : %u\n", alloc_cnt[node]);
|
|
|
fprintf(stream, "\tcached alloc: %u (%2.2f %%)\n",
|
|
|
alloc_cache_hit_cnt[node], (100.0f*alloc_cache_hit_cnt[node])/(alloc_cnt[node]));
|
|
|
}
|
|
|
- else
|
|
|
- fprintf(stream, "No allocation on node %u\n", node);
|
|
|
}
|
|
|
fprintf(stream, "#---------------------\n");
|
|
|
}
|