I am using Visual Studio 2017 and CUDA 9.1.
Found that the temperature of the GPU can be obtained using “nvapi.h” and “nvml.h”, but if I include “nvapi.h”, I get an error: “I can not open the source file “nvapi.h””. As for “nvml.h”, I can include this library, but as soon as I use the “nvmlInit()” function, I see the error: “reference to an unauthorized external character is unavailable in main function”.
Help me please. I have been trying to solve this for the third day.