Set device before processing each one (#1358)

[ROCm/hip-tests commit: cb0a3ca5bc]
此提交包含在:
chrispaquot authored and Maneesh Gupta committed 2019-08-23 09:19:50 +00:00
1 父節點 88efd2b870
當前提交 812247b00d
1 file changed
+1
+1
查看文件
@@ -192,6 +192,7 @@ int main(int argc, char* argv[]) {
HIPCHECK(hipGetDeviceCount(&deviceCnt));
for (int i = 0; i < deviceCnt; i++) {
hipSetDevice(i);
printDeviceProp(i);
}