Added support for alternative CUDA plugin API.

This commit is contained in:
XMRig 2019-12-25 00:35:43 +07:00
parent a95b179a60
commit ecb46643e2
No known key found for this signature in database
GPG key ID: 446A53638BE94409
6 changed files with 49 additions and 16 deletions

View file

@ -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;
}
}