diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-06-01 23:01:48 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-06-01 23:01:48 (GMT) |
commit | 3ccff1357fe7708a56528ac64a79998f7c2a79eb (patch) | |
tree | ee818d4f07be52ecd45aea6693bb573c4d67c5ac /perform/pio_perf.h | |
parent | 44a72a6777520034f87f712697ce05de5929f288 (diff) | |
download | hdf5-3ccff1357fe7708a56528ac64a79998f7c2a79eb.zip hdf5-3ccff1357fe7708a56528ac64a79998f7c2a79eb.tar.gz hdf5-3ccff1357fe7708a56528ac64a79998f7c2a79eb.tar.bz2 |
[svn-r5503] Purpose:
Features
Description:
Added a few macros to print rank and size of MPI_COMM_WORLD in
a unifed style.
Platforms tested:
modi4, eirene, burrwhite
Diffstat (limited to 'perform/pio_perf.h')
-rw-r--r-- | perform/pio_perf.h | 7 |
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 */ |