print GPU device ID for MPI ranks within a node

This commit is contained in:
JamesEMcclure
2019-04-26 14:56:53 -04:00
parent d15f5aff86
commit fe5a110027
3 changed files with 1 additions and 2 deletions

View File

@@ -44,7 +44,6 @@ int main(int argc, char **argv)
}
// Initialize compute device
int device=ScaLBL_SetDevice(rank);
if (rank<4) printf("Using GPU ID %i for rank %i \n",device,rank);
ScaLBL_DeviceBarrier();
MPI_Barrier(comm);