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:
parent
d3258d8bcd
commit
cb3f893a85
@ -2207,12 +2207,13 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_WRAPNVML
|
#ifdef USE_WRAPNVML
|
||||||
// todo: link threads info gpu
|
#ifndef WIN32
|
||||||
|
/* nvml is currently not usable on Windows (even for x64) */
|
||||||
hnvml = wrap_nvml_create();
|
hnvml = wrap_nvml_create();
|
||||||
if (hnvml)
|
if (hnvml)
|
||||||
applog(LOG_INFO, "NVML GPU monitoring enabled.");
|
applog(LOG_INFO, "NVML GPU monitoring enabled.");
|
||||||
#ifdef WIN32 /* _WIN32 = x86 only, WIN32 for both _WIN32 & _WIN64 */
|
#else
|
||||||
else if (wrap_nvapi_init() == 0)
|
if (wrap_nvapi_init() == 0)
|
||||||
applog(LOG_INFO, "NVAPI GPU monitoring enabled.");
|
applog(LOG_INFO, "NVAPI GPU monitoring enabled.");
|
||||||
#endif
|
#endif
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user