Added support for alternative CUDA plugin API.
This commit is contained in:
parent
a95b179a60
commit
ecb46643e2
6 changed files with 49 additions and 16 deletions
|
@ -78,9 +78,15 @@ xmrig::CudaWorker::CudaWorker(size_t id, const CudaLaunchData &data) :
|
|||
break;
|
||||
}
|
||||
|
||||
if (!m_runner || !m_runner->init()) {
|
||||
if (!m_runner) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_runner->init()) {
|
||||
delete m_runner;
|
||||
|
||||
m_runner = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue