Merge pull request #1900 from SChernykh/dev
Fixed roundSize() usage in OCL/CUDA
This commit is contained in:
commit
7727014eea
2 changed files with 5 additions and 5 deletions
|
@ -189,7 +189,7 @@ void xmrig::CudaWorker::start()
|
||||||
}
|
}
|
||||||
|
|
||||||
const size_t batch_size = intensity();
|
const size_t batch_size = intensity();
|
||||||
if (!Nonce::isOutdated(Nonce::CUDA, m_job.sequence()) && !m_job.nextRound(roundSize(batch_size), batch_size)) {
|
if (!Nonce::isOutdated(Nonce::CUDA, m_job.sequence()) && !m_job.nextRound(1, roundSize(batch_size))) {
|
||||||
JobResults::done(m_job.currentJob());
|
JobResults::done(m_job.currentJob());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -211,7 +211,7 @@ bool xmrig::CudaWorker::consumeJob()
|
||||||
}
|
}
|
||||||
|
|
||||||
const size_t batch_size = intensity();
|
const size_t batch_size = intensity();
|
||||||
m_job.add(m_miner->job(), roundSize(batch_size) * batch_size, Nonce::CUDA);
|
m_job.add(m_miner->job(), roundSize(batch_size), Nonce::CUDA);
|
||||||
|
|
||||||
return m_runner->set(m_job.currentJob(), m_job.blob());
|
return m_runner->set(m_job.currentJob(), m_job.blob());
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,7 +180,7 @@ void xmrig::OclWorker::start()
|
||||||
{
|
{
|
||||||
cl_uint results[0x100];
|
cl_uint results[0x100];
|
||||||
|
|
||||||
const uint32_t runnerRoundSize = m_runner->roundSize();
|
const uint32_t runnerRoundSize = roundSize(m_runner->roundSize());
|
||||||
|
|
||||||
while (Nonce::sequence(Nonce::OPENCL) > 0) {
|
while (Nonce::sequence(Nonce::OPENCL) > 0) {
|
||||||
if (!isReady()) {
|
if (!isReady()) {
|
||||||
|
@ -220,7 +220,7 @@ void xmrig::OclWorker::start()
|
||||||
JobResults::submit(m_job.currentJob(), results, results[0xFF], m_deviceIndex);
|
JobResults::submit(m_job.currentJob(), results, results[0xFF], m_deviceIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Nonce::isOutdated(Nonce::OPENCL, m_job.sequence()) && !m_job.nextRound(roundSize(runnerRoundSize), runnerRoundSize)) {
|
if (!Nonce::isOutdated(Nonce::OPENCL, m_job.sequence()) && !m_job.nextRound(1, runnerRoundSize)) {
|
||||||
JobResults::done(m_job.currentJob());
|
JobResults::done(m_job.currentJob());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -241,7 +241,7 @@ bool xmrig::OclWorker::consumeJob()
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_job.add(m_miner->job(), roundSize(m_intensity) * m_intensity, Nonce::OPENCL);
|
m_job.add(m_miner->job(), roundSize(m_intensity), Nonce::OPENCL);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
m_runner->set(m_job.currentJob(), m_job.blob());
|
m_runner->set(m_job.currentJob(), m_job.blob());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue