Set device before processing each one (#1358)
[ROCm/hip-tests commit: cb0a3ca5bc]
This commit is contained in:
committed by
Maneesh Gupta
orang tua
88efd2b870
melakukan
812247b00d
@@ -192,6 +192,7 @@ int main(int argc, char* argv[]) {
|
||||
HIPCHECK(hipGetDeviceCount(&deviceCnt));
|
||||
|
||||
for (int i = 0; i < deviceCnt; i++) {
|
||||
hipSetDevice(i);
|
||||
printDeviceProp(i);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user