Print peers in hipConfig.

Also include peer APIs in vim hilighting.
이 커밋은 다음에 포함됨:
Ben Sander가 2016-04-11 07:58:58 -05:00를 커밋했습니다
1 부모 71dac8e37c
커밋 0ac41ad143
2 파일이 변경됨
+23

검색과 일치하는 파일 없음

+17
파일 보기
@@ -120,8 +120,25 @@ void printDeviceProp (int deviceId)
cout << setw(w1) << "arch.hasSurfaceFuncs: " << props.arch.hasSurfaceFuncs << endl;
cout << setw(w1) << "arch.has3dGrid: " << props.arch.has3dGrid << endl;
cout << setw(w1) << "arch.hasDynamicParallelism: " << props.arch.hasDynamicParallelism << endl;
int deviceCnt;
hipGetDeviceCount(&deviceCnt);
cout << setw(w1) << "peers: ";
for (int i=0; i<deviceCnt; i++) {
int isPeer;
hipDeviceCanAccessPeer(&isPeer, deviceId, i);
if (isPeer) {
cout << "device#" << i << " ";
}
}
cout << endl;
cout << endl;
size_t free, total;
hipMemGetInfo(&free, &total);