1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-22 12:34:17 +00:00

nvml: fully disable it on windows

The DLL exists for x64 targets but seems not loadable

The nvml.cpp code was wrote to support both NVAPI and NVML on windows
because both apis have unique "features". like Fan RPM vs Fan Percent
This commit is contained in:
Tanguy Pruvot 2014-11-26 06:49:05 +01:00
parent d3258d8bcd
commit cb3f893a85

View File

@ -2207,12 +2207,13 @@ int main(int argc, char *argv[])
}
#ifdef USE_WRAPNVML
// todo: link threads info gpu
#ifndef WIN32
/* nvml is currently not usable on Windows (even for x64) */
hnvml = wrap_nvml_create();
if (hnvml)
applog(LOG_INFO, "NVML GPU monitoring enabled.");
#ifdef WIN32 /* _WIN32 = x86 only, WIN32 for both _WIN32 & _WIN64 */
else if (wrap_nvapi_init() == 0)
#else
if (wrap_nvapi_init() == 0)
applog(LOG_INFO, "NVAPI GPU monitoring enabled.");
#endif
else