Print non-peers too

Change-Id: I2a6905edcdf144aa732ae3120c17780477f232ac


[ROCm/clr commit: 44aee4b61c]
This commit is contained in:
Ben Sander
2016-11-04 06:34:07 -05:00
bovenliggende 97d9a5722e
commit 43723d77cc
@@ -133,6 +133,15 @@ void printDeviceProp (int deviceId)
}
}
cout << endl;
cout << setw(w1) << "non-peers: ";
for (int i=0; i<deviceCnt; i++) {
int isPeer;
hipDeviceCanAccessPeer(&isPeer, i, deviceId);
if (!isPeer) {
cout << "device#" << i << " ";
}
}
cout << endl;