Remove unnecessary device id check (#180)

This commit is contained in:
Aryan Salmanpour
2024-01-17 10:27:06 -05:00
committed by GitHub
parent 395a1249c1
commit b188989f3f
2 changed files with 0 additions and 8 deletions
-4
View File
@@ -1073,10 +1073,6 @@ bool RocVideoDecoder::InitHIP(int device_id) {
std::cerr << "ERROR: didn't find any GPU!" << std::endl;
return false;
}
if (device_id >= num_devices_) {
std::cerr << "ERROR: the requested device_id is not found! " << std::endl;
return false;
}
HIP_API_CALL(hipSetDevice(device_id));
HIP_API_CALL(hipGetDeviceProperties(&hip_dev_prop_, device_id));
HIP_API_CALL(hipStreamCreate(&hip_stream_));