mirror of
https://github.com/xmrig/xmrig.git
synced 2026-01-19 13:33:00 -05:00
Use sub buffers.
This commit is contained in:
@@ -47,6 +47,12 @@ xmrig::OclRxVmRunner::~OclRxVmRunner()
|
||||
}
|
||||
|
||||
|
||||
size_t xmrig::OclRxVmRunner::bufferSize() const
|
||||
{
|
||||
return OclRxBaseRunner::bufferSize() + (align(2560 * data().thread.intensity()));
|
||||
}
|
||||
|
||||
|
||||
void xmrig::OclRxVmRunner::build()
|
||||
{
|
||||
OclRxBaseRunner::build();
|
||||
@@ -94,5 +100,5 @@ void xmrig::OclRxVmRunner::init()
|
||||
{
|
||||
OclRxBaseRunner::init();
|
||||
|
||||
m_vm_states = OclLib::createBuffer(m_ctx, CL_MEM_READ_WRITE, 2560 * data().thread.intensity());
|
||||
m_vm_states = createSubBuffer(CL_MEM_READ_WRITE, 2560 * data().thread.intensity());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user