Skip to content

Commit 4d1c629

Browse files
committed
GPU (Linux): don't detect frequency for AMD cards
It's current frequency and may hang for some reason
1 parent 8402dba commit 4d1c629

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/detection/gpu/gpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct FFGPUResult
3232
FFstrbuf platformApi;
3333
double temperature;
3434
int32_t coreCount;
35-
double frequency; // Real time clock frequency in GHz
35+
double frequency; // Maximum time clock frequency in GHz
3636
FFGPUMemory dedicated;
3737
FFGPUMemory shared;
3838
uint64_t deviceId; // Used internally, may be uninitialized

src/detection/gpu/gpu_linux.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ static void pciDetectAmdSpecific(const FFGPUOptions* options, FFGPUResult* gpu,
9292
gpu->temperature = (double) value / 1000;
9393
}
9494

95-
ffStrbufSubstrBefore(pciDir, hwmonLen);
96-
ffStrbufAppendS(pciDir, "freq1_input"); // The gfx/compute clock in hertz
97-
if (ffReadFileBuffer(pciDir->chars, buffer) && (value = ffStrbufToUInt(buffer, 0)))
98-
gpu->frequency = (double) value / (1000 * 1000 * 1000);
99-
10095
if (options->driverSpecific)
10196
{
10297
ffStrbufSubstrBefore(pciDir, pciDirLen);

0 commit comments

Comments
 (0)