summaryrefslogtreecommitdiffstats
path: root/perform/pio_perf.h
diff options
context:
space:
mode:
Diffstat (limited to 'perform/pio_perf.h')
-rw-r--r--perform/pio_perf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perform/pio_perf.h b/perform/pio_perf.h
index dd00ce9..89713c1 100644
--- a/perform/pio_perf.h
+++ b/perform/pio_perf.h
@@ -66,6 +66,13 @@ extern int pio_debug_level; /* The debug level:
* 4 - Even More Debugging (timer stuff)
*/
+#define HDprint_rank(f) /* print rank in MPI_COMM_WORLD */ \
+ HDfprintf(f, "%d: ", comm_world_rank_g);
+#define HDprint_size(f) /* print size of MPI_COMM_WORLD */ \
+ HDfprintf(f, "%d", comm_world_nprocs_g);
+#define HDprint_rank_size(f) /* print rank/size of MPI_COMM_WORLD */ \
+ HDfprintf(f, "%d/%d: ", comm_world_rank_g, comm_world_nprocs_g);
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */