mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-10 14:34:41 +12:00
Fixed leftover code in GPU init logging false errors
This commit is contained in:
parent
ad14554f32
commit
2fba934cde
|
@ -949,12 +949,6 @@ namespace Gpu {
|
|||
if (initialized) return false;
|
||||
|
||||
//? Dynamic loading & linking
|
||||
nvml_dl_handle = dlopen("libnvidia-ml.so", RTLD_LAZY);
|
||||
if (!nvml_dl_handle) {
|
||||
Logger::info(std::string("Failed to load libnvidia-ml.so, NVIDIA GPUs will not be detected: ") + dlerror());
|
||||
return false;
|
||||
}
|
||||
|
||||
//? Try possible library names for libnvidia-ml.so
|
||||
const array libNvAlts = {
|
||||
"libnvidia-ml.so",
|
||||
|
|
Loading…
Reference in a new issue