Remove unnecessary device id check (#180)
Tá an tiomantas seo le fáil i:
tiomanta ag
GitHub
tuismitheoir
395a1249c1
tiomantas
b188989f3f
@@ -135,10 +135,6 @@ rocDecStatus RocDecoder::InitHIP(int device_id) {
|
||||
ERR("ERROR: didn't find any GPU!");
|
||||
return ROCDEC_DEVICE_INVALID;
|
||||
}
|
||||
if (device_id >= num_devices_) {
|
||||
ERR("ERROR: the requested device_id is not found! ");
|
||||
return ROCDEC_DEVICE_INVALID;
|
||||
}
|
||||
CHECK_HIP(hipSetDevice(device_id));
|
||||
CHECK_HIP(hipGetDeviceProperties(&hip_dev_prop_, device_id));
|
||||
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir