mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Add gpu statistics to debugging output via the watchdog thread.
This commit is contained in:
parent
1ed219372e
commit
306dad9fdb
10
main.c
10
main.c
@ -4368,8 +4368,18 @@ static void *watchdog_thread(void *userdata)
|
|||||||
break;
|
break;
|
||||||
thr = &thr_info[i];
|
thr = &thr_info[i];
|
||||||
gpu = thr->cgpu->cpu_gpu;
|
gpu = thr->cgpu->cpu_gpu;
|
||||||
|
#ifdef HAVE_ADL
|
||||||
if (adl_active)
|
if (adl_active)
|
||||||
gpu_autotune(gpu);
|
gpu_autotune(gpu);
|
||||||
|
if (opt_debug && gpus[gpu].has_adl) {
|
||||||
|
int engineclock = 0, memclock = 0, activity = 0, fanspeed = 0, fanpercent = 0;
|
||||||
|
float temp = 0, vddc = 0;
|
||||||
|
|
||||||
|
if (gpu_stats(gpu, &temp, &engineclock, &memclock, &vddc, &activity, &fanspeed, &fanpercent))
|
||||||
|
applog(LOG_DEBUG, "T: %.1f°C F: %d%%(%dRPM) E: %dMHz M: %dMhz V: %.3fV A: %d%%",
|
||||||
|
temp, fanpercent, fanspeed, engineclock, memclock, vddc, activity);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
/* Thread is waiting on getwork or disabled */
|
/* Thread is waiting on getwork or disabled */
|
||||||
if (thr->getwork || !gpu_devices[gpu])
|
if (thr->getwork || !gpu_devices[gpu])
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user