From 9201503bc56bd655619765937ac20c881858150e Mon Sep 17 00:00:00 2001 From: Thomas Naughton Date: Tue, 13 Oct 2020 14:40:49 -0400 Subject: [PATCH] fix SPC example Signed-off-by: Thomas Naughton --- examples/spc_example.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/spc_example.c b/examples/spc_example.c index 11732cd9f4..ba0bb38996 100644 --- a/examples/spc_example.c +++ b/examples/spc_example.c @@ -54,8 +54,9 @@ int main(int argc, char **argv) char name[256], description[256]; /* Counter names to be read by ranks 0 and 1 */ - char *counter_names[] = {"runtime_spc_OMPI_BYTES_SENT_USER", - "runtime_spc_OMPI_BYTES_RECEIVED_USER" }; + /* (See also: ompi_spc_counters_t for list) */ + char *counter_names[] = {"runtime_spc_OMPI_SPC_BYTES_SENT_USER", + "runtime_spc_OMPI_SPC_BYTES_RECEIVED_USER" }; MPI_Init(NULL, NULL); MPI_T_init_thread(MPI_THREAD_SINGLE, &provided);