Merge pull request #1900 from SChernykh/dev

Fixed roundSize() usage in OCL/CUDA
This commit is contained in:
xmrig 2020-10-15 19:44:03 +07:00 committed by GitHub
commit 7727014eea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -189,7 +189,7 @@ void xmrig::CudaWorker::start()
}
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());
}
@ -211,7 +211,7 @@ bool xmrig::CudaWorker::consumeJob()
}
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());
}

View file

@ -180,7 +180,7 @@ void xmrig::OclWorker::start()
{
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) {
if (!isReady()) {
@ -220,7 +220,7 @@ void xmrig::OclWorker::start()
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());
}
@ -241,7 +241,7 @@ bool xmrig::OclWorker::consumeJob()
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 {
m_runner->set(m_job.currentJob(), m_job.blob());