Improved CUDA loader error reporting and fixed plugin load on Linux.

This commit is contained in:
XMRig
2020-08-23 21:30:12 +07:00
parent eb9f98b8ce
commit 04f3abb4e2
3 changed files with 87 additions and 57 deletions

View File

@@ -152,7 +152,9 @@ public:
}
if (!CudaLib::init(cuda.loader())) {
return printDisabled(kLabel, RED_S " (failed to load CUDA plugin)");
Log::print(GREEN_BOLD(" * ") WHITE_BOLD("%-13s") RED_BOLD("disabled ") RED("(%s)"), kLabel, CudaLib::lastError());
return;
}
runtimeVersion = CudaLib::runtimeVersion();