mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-25 05:40:39 -05:00
Fixes for Intel OpenCL platform.
This commit is contained in:
@@ -98,7 +98,7 @@ void xmrig::OclBaseRunner::init()
|
||||
constexpr size_t oneGiB = 1024 * 1024 * 1024;
|
||||
size_t size = bufferSize();
|
||||
|
||||
if (size < oneGiB && data().device.freeMemSize() >= oneGiB) {
|
||||
if (size < oneGiB && data().device.vendorId() == OCL_VENDOR_AMD && data().device.freeMemSize() >= oneGiB) {
|
||||
size = oneGiB;
|
||||
}
|
||||
|
||||
|
||||
@@ -75,7 +75,6 @@ xmrig::OclCnRunner::~OclCnRunner()
|
||||
}
|
||||
|
||||
if (m_algorithm == Algorithm::CN_R) {
|
||||
OclLib::release(m_cnr);
|
||||
OclCnR::clear();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user