mirror of
https://github.com/xmrig/xmrig.git
synced 2025-01-03 09:29:46 +00:00
fix(cuda): receive CUDA loader error on linux too.
This commit is contained in:
parent
6e856ca39c
commit
62a3a98e7d
1 changed files with 3 additions and 7 deletions
|
@ -353,14 +353,10 @@ 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;
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
m_error = uv_dlerror(&cudaLib);
|
||||
|
|
Loading…
Reference in a new issue