GPU (Linux): use the device name that driver provides

This commit is contained in:
Carter Li
2024-08-02 15:21:42 +08:00
parent dccbdba242
commit b111626fe9
6 changed files with 16 additions and 0 deletions
+1
View File
@@ -369,6 +369,7 @@ static const char* detectPci(const FFGPUOptions* options, FFlist* gpus, FFstrbuf
.coreCount = options->driverSpecific ? (uint32_t*) &gpu->coreCount : NULL,
.type = &gpu->type,
.frequency = options->driverSpecific ? &gpu->frequency : NULL,
.name = options->driverSpecific ? &gpu->name : NULL,
}, "libnvidia-ml.so");
}