GPU: support memory, core count detection

This commit is contained in:
李通洲
2023-10-28 13:12:04 +08:00
parent 9d664e2b61
commit 38d5791d57
7 changed files with 84 additions and 31 deletions
+4 -1
View File
@@ -275,7 +275,10 @@ void ffGenerateGPUJsonResult(FFGPUOptions* options, yyjson_mut_doc* doc, yyjson_
else
yyjson_mut_obj_add_null(doc, sharedObj, "used");
yyjson_mut_obj_add_null(doc, obj, "temperature");
if(gpu->temperature == gpu->temperature) //FF_GPU_TEMP_UNSET
yyjson_mut_obj_add_real(doc, obj, "temperature", gpu->temperature);
else
yyjson_mut_obj_add_null(doc, obj, "temperature");
const char* type;
switch (gpu->type)