mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-29 20:47:50 +00:00
Merge pull request #3236 from MrFoxPro/dev
fix(cuda): receive CUDA loader error on linux too.
This commit is contained in:
commit
0378aa8df4
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue