We could create a communicator for the MPI ranks in the first shared-memory node, then enumerate their mapping (NUMA and core affinity, and what GPUs they see).
Barry Smith <bsm...@petsc.dev> writes: > I suggested years ago that -log_view automatically print useful information > about the GPU setup (when GPUs are used) but everyone seemed comfortable with > the lack of information so no one improved it. I think for a small number of > GPUs -log_view should just print details and for a larger number print some > statistics (how many physical ones etc). Currently, it does not even print > how many are used. I think requiring another option to get this basic > information is a mistake, we already print a ton of background with -log_view > it is just sad no background on the GPU usage.