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 4b682b6633
commit ff13675d31
No known key found for this signature in database
GPG key ID: 446A53638BE94409
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();