Commit bd4b80c0 authored by Richard Zamora's avatar Richard Zamora
Browse files

longer hint string and fixing a fel bgq issues

parent 7d3633bb
......@@ -391,9 +391,9 @@ int main( int argc, char* argv[] )
data_size[i] = (int64_t) (chunk_size);
offset_size[i] = (int64_t) (i * dperiod + rank * chunk_size);
}
char agg_array[80];
char agg_array[256];
get_cb_config_list ( data_size, offset_size, num_chunks, &agg_array[0], agg_size, agg_count );
printf("Aggregator List:\n%s\n", agg_array);
if (rank==0) printf("Aggregator List:\n%s\n", agg_array);
MPI_Barrier(comm);
free(data_size);
free(offset_size);
......
......@@ -74,8 +74,8 @@ int distance_between_ranks ( int src_rank, int dest_rank ) {
}
#elif BGQ
int dim = 6, d, hops;
int src_coords[dim], dest_coords[dim];
int dim, d, hops, ;
int src_coord[dim], dest_coord[dim];
//int dim, d, hops;
MPIX_Hardware_t hw;
rank_to_coordinates ( src_rank, src_coord );
......@@ -84,7 +84,7 @@ int distance_between_ranks ( int src_rank, int dest_rank ) {
MPIX_Hardware( &hw );
for ( d = 0; d < dim; d++ ) {
hops = abs ( destCoords[d] - srcCoords[d] );
hops = abs ( dest_coord[d] - src_coord[d] );
if ( hw.isTorus[d] == 1 )
hops = min ( hops, (int)hw.Size[d] - hops );
distance += hops;
......
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