Skip to content

Commit

Permalink
Fixed leftover code in GPU init logging false errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos committed Dec 26, 2023
1 parent ad14554 commit 2fba934
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/linux/btop_collect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2fba934

Please sign in to comment.