Print peers in hipConfig.

Also include peer APIs in vim hilighting.


[ROCm/hip commit: 01108b63ae]
Bu işleme şunda yer alıyor:
Ben Sander
2016-04-08 02:15:46 -05:00
ebeveyn 4648855acf
işleme d790a73707
2 değiştirilmiş dosya ile 23 ekleme ve 0 silme
+17
Dosyayı Görüntüle
@@ -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);
+6
Dosyayı Görüntüle
@@ -158,6 +158,12 @@ syn keyword hipFunctionName hipStreamSynchronize
syn keyword hipFunctionName hipThreadExit
syn keyword hipFunctionName hipThreadSynchronize
syn keyword hipFunctionName hipUnbindTexture
syn keyword hipFunctionName hipDeviceCanAccessPeer
syn keyword hipFunctionName hipDeviceEnablePeerAccess
syn keyword hipFunctionName hipDeviceDisablePeerAccess
syn keyword hipFunctionName hipMemcpyPeer
syn keyword hipFunctionName hipMemcpyPeerAsync
" HIP Flags
syn keyword hipFlags hipFilterModePoint