Esempio n. 1
0
 public void Run()
 {
     if (_gpuList != null)
     {
         var adlRet = -1;
         foreach (var gpu in _gpuList)
         {
             var fanControl = new ADLODNFanControl();
             var temp       = 0;
             if ((adlRet = ADL.ADL2_OverdriveN_FanControl_Get(IntPtr.Zero, gpu.AdapterIndex, ref fanControl)) == ADL.ADL_SUCCESS)
             {
                 gpu.Fan = fanControl;
             }
             if ((adlRet = ADL.ADL2_OverdriveN_Temperature_Get(IntPtr.Zero, gpu.AdapterIndex, 1, ref temp)) == ADL.ADL_SUCCESS)
             {
                 gpu.Temperature = temp;
             }
         }
     }
 }
Esempio n. 2
0
 internal static extern int ADL2_OverdriveN_FanControl_Get(IntPtr context, int adapterIndex, ref ADLODNFanControl fanControl);