gridsize -> proc_grid_size; gridrank -> proc_grid_rank