Remove unnecessary device id check (#180)

[ROCm/rocdecode commit: b188989f3f]
这个提交包含在:
Aryan Salmanpour 编写, GitHub 于 2024-01-17 10:27:06 -05:00 提交
1 父节点 40408ce2b3
当前提交 5cd81b0a5b
2 个文件已更改
-8

没有与搜索条件相匹配的文件

@@ -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_));