Cannot open source file "nvml.h"

Hi everyone.

I recently downloaded and installed the latest version of the CUDA toolkit, as I wish to make use of the NVML library. After installing, I opened up the example project under C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\nvml\example.

Unfortunately I was met with the error that the source file “nvml.h” could not be opened. I did some digging, but unfortunately could not find a working solution.

So far I have ensured that the nvml.dll is present in system32 (which it is), and I have also copied it to C:\Program Files\NVIDIA Corporation\NVSMI and set the folder as a path variable in my windows system.

Unfortunately I’m still stuck with the error and unable to progress :(.

Any help would be much appreciated :)