GPU: guard GPU frequency behind driverSpecific

This commit is contained in:
李通洲
2024-06-28 22:17:37 +08:00
parent 27a1d9f8c6
commit 19590003e1
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -273,7 +273,7 @@ static const char* detectPci(const FFGPUOptions* options, FFlist* gpus, FFstrbuf
.memory = options->driverSpecific ? &gpu->dedicated : NULL,
.coreCount = options->driverSpecific ? (uint32_t*) &gpu->coreCount : NULL,
.type = &gpu->type,
.frequency = &gpu->frequency,
.frequency = options->driverSpecific ? &gpu->frequency : NULL,
}, "libnvidia-ml.so");
}