How to use java to get the value of the temperature and load of the video card


Hello, please tell me how to use java to get the value of the temperature and load of the video card.

Author: Nicolas Chabanovsky, 2014-06-29

1 answers

Each card manufacturer (or rather GPU) has its own proprietary API. Nvidia has it like this ATI has it like this

The interfaces of these APIs are in C / C++, so you will have to write JNI interfaces from Java.

In particular, for Nvidia, the prototype of calling the function that returns the temperature of the card (or rather the processor) is as follows:

BOOL CDECL NvCplGetThermalSettings
  (IN UINT nWindowsMonitorNumber,
   OUT DWORD* pdwCoreTemp, //температура процессора
   OUT DWORD* pdwAmbientTemp,
   OUT DWORD* pdwUpperLimit);
 6
Author: Barmaley, 2014-06-30 08:09:17