Commit 4f327526 authored by Rob Latham's avatar Rob Latham
Browse files

ROMIO: report which ranks are aggregators

ROMIO will pick some number of ranks P to be I/O aggregators, but had no
means to report that selection back to the user.  Now someone can query
this hint after opening a file to find out which ranks were selected.
parent 5e800079
......@@ -92,6 +92,13 @@ int ADIOI_cb_bcast_rank_map(ADIO_File fd)
value = (char *) ADIOI_Malloc((MPI_MAX_INFO_VAL+1)*sizeof(char));
ADIOI_Snprintf(value, MPI_MAX_INFO_VAL+1, "%d", fd->hints->cb_nodes);
ADIOI_Info_set(fd->info, "cb_nodes", value);
char *p = value;
int i;
for (i=0; i< fd->hints->cb_nodes; i++) {
p += ADIOI_Snprintf(p, MPI_MAX_INFO_VAL+1, "%d ", fd->hints->ranklist[i]);
if (p - value > MPI_MAX_INFO_VAL+1) break;
ADIOI_Info_set(fd->info, "romio_aggregator_list", value);
return 0;
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