Set device before processing each one (#1358)

[ROCm/hip commit: 344d150bf8]
This commit is contained in:
chrispaquot authored and Maneesh Gupta committed 2019-08-23 09:19:50 +00:00
1 parent 0fc745b3a6
commit 808356f88b
1 file changed
+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);
}