Commit cceed9cb authored by Philip Carns's avatar Philip Carns
Browse files

print process names as safety check

- this benchmark should be run with each rank on a different node
parent 05894ffd
......@@ -51,6 +51,8 @@ int main(int argc, char **argv)
int rank;
hg_bool_t flag;
double *measurement_array;
int namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
ABT_init(argc, argv);
MPI_Init(&argc, &argv);
......@@ -63,6 +65,9 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_name,&namelen);
printf("Process %d of %d is on %s\n",
rank, nranks, processor_name);
parse_args(argc, argv, &g_opts);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment