Beispiel #1
0
 private void RefreshGpuState(IGpu gpu)
 {
     if (gpu.Index == NTMinerRoot.GpuAllId)
     {
         return;
     }
     gpu.PowerCapacity    = _adlHelper.GetPowerLimitByIndex(gpu.Index);
     gpu.TempLimit        = _adlHelper.GetTempLimitByIndex(gpu.Index);
     gpu.MemoryClockDelta = _adlHelper.GetMemoryClockByIndex(gpu.Index);
     gpu.CoreClockDelta   = _adlHelper.GetSystemClockByIndex(gpu.Index);
     _adlHelper.GetClockRangeByIndex(
         gpu.Index,
         out int coreClockDeltaMin, out int coreClockDeltaMax,
         out int memoryClockDeltaMin, out int memoryClockDeltaMax,
         out int powerMin, out int powerMax, out int powerDefault,
         out int tempLimitMin, out int tempLimitMax, out int tempLimitDefault,
         out int fanSpeedMin, out int fanSpeedMax, out int fanSpeedDefault);
     gpu.CoreClockDeltaMin   = coreClockDeltaMin;
     gpu.CoreClockDeltaMax   = coreClockDeltaMax;
     gpu.MemoryClockDeltaMin = memoryClockDeltaMin;
     gpu.MemoryClockDeltaMax = memoryClockDeltaMax;
     gpu.PowerMin            = powerMin;
     gpu.PowerMax            = powerMax;
     gpu.PowerDefault        = powerDefault;
     gpu.TempLimitMin        = tempLimitMin;
     gpu.TempLimitMax        = tempLimitMax;
     gpu.TempLimitDefault    = tempLimitDefault;
     gpu.CoolMin             = fanSpeedMin;
     gpu.CoolMax             = fanSpeedMax;
     VirtualRoot.Happened(new GpuStateChangedEvent(gpu));
 }