fix peer query order

This commit is contained in:
Ben Sander
2016-04-11 07:47:22 -05:00
والد c161c1ba9b
کامیت 7eba742c66
@@ -126,7 +126,7 @@ void printDeviceProp (int deviceId)
cout << setw(w1) << "peers: ";
for (int i=0; i<deviceCnt; i++) {
int isPeer;
hipDeviceCanAccessPeer(&isPeer, deviceId, i);
hipDeviceCanAccessPeer(&isPeer, i, deviceId);
if (isPeer) {
cout << "device#" << i << " ";
}