fix(cuda): receive CUDA loader error on linux too.

This commit is contained in:
Dmitriy Nikiforov 2023-03-27 18:48:13 +05:00
parent 6e856ca39c
commit 62a3a98e7d

View file

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