1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Read off lpThermalControllerInfo from each ADL device.

This commit is contained in:
Con Kolivas 2012-01-23 09:25:53 +11:00
parent 1e1519e93e
commit 2d29cdb611
2 changed files with 4 additions and 0 deletions

3
adl.c
View File

@ -234,6 +234,9 @@ void init_adl(int nDevs)
ga->lpAdapterID = lpAdapterID; ga->lpAdapterID = lpAdapterID;
ga->DefPerfLev = NULL; ga->DefPerfLev = NULL;
if (ADL_Overdrive5_ThermalDevices_Enum(iAdapterIndex, 0, &ga->lpThermalControllerInfo) != ADL_OK)
applog(LOG_INFO, "Failed to ADL_Overdrive5_ThermalDevices_Enum");
ga->lpOdParameters.iSize = sizeof(ADLODParameters); ga->lpOdParameters.iSize = sizeof(ADLODParameters);
if (ADL_Overdrive5_ODParameters_Get(iAdapterIndex, &ga->lpOdParameters) != ADL_OK) if (ADL_Overdrive5_ODParameters_Get(iAdapterIndex, &ga->lpOdParameters) != ADL_OK)
applog(LOG_INFO, "Failed to ADL_Overdrive5_ODParameters_Get"); applog(LOG_INFO, "Failed to ADL_Overdrive5_ODParameters_Get");

View File

@ -203,6 +203,7 @@ struct gpu_adl {
ADLFanSpeedInfo lpFanSpeedInfo; ADLFanSpeedInfo lpFanSpeedInfo;
ADLFanSpeedValue lpFanSpeedValue; ADLFanSpeedValue lpFanSpeedValue;
ADLFanSpeedValue DefFanSpeedValue; ADLFanSpeedValue DefFanSpeedValue;
ADLThermalControllerInfo lpThermalControllerInfo;
int iEngineClock; int iEngineClock;
int iMemoryClock; int iMemoryClock;