Merge pull request #3236 from MrFoxPro/dev

fix(cuda): receive CUDA loader error on linux too.
This commit is contained in:
xmrig 2023-06-05 23:07:38 +07:00 committed by GitHub
commit 0378aa8df4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -353,13 +353,9 @@ bool xmrig::CudaLib::open()
# ifdef XMRIG_OS_LINUX
if (m_loader == defaultLoader) {
m_loader = Process::location(Process::ExeLocation, m_loader);
}
else {
return false;
}
if (uv_dlopen(m_loader, &cudaLib) == 0) {
return true;
if (uv_dlopen(m_loader, &cudaLib) == 0) {
return true;
}
}
# endif