GPU: detect GPU index (#1267)

This commit is contained in:
michela feng
2024-09-19 15:22:09 +08:00
committed by GitHub
parent f80423607d
commit 9332f42889
15 changed files with 46 additions and 2 deletions
+7
View File
@@ -134,6 +134,13 @@ const char *ffDetectMthreadsGpuInfo(const FFGpuDriverCondition *cond, FFGpuDrive
}
}
if (result.index)
{
unsigned int value;
if (mtmlData.ffmtmlDeviceGetIndex(device, &value) == MTML_SUCCESS)
*result.index = (uint8_t)value;
}
if (result.temp)
{
MtmlGpu *gpu = NULL;