Fixed unaligned memory accesses
This commit is contained in:
parent
41a3f97060
commit
644f4cc017
9 changed files with 74 additions and 14 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "backend/opencl/runners/tools/OclSharedData.h"
|
||||
#include "backend/opencl/runners/tools/OclSharedState.h"
|
||||
#include "base/io/log/Log.h"
|
||||
#include "base/tools/Alignment.h"
|
||||
#include "base/tools/Chrono.h"
|
||||
#include "core/Miner.h"
|
||||
#include "crypto/common/Nonce.h"
|
||||
|
@ -179,7 +180,7 @@ void xmrig::OclWorker::start()
|
|||
const uint64_t t = Chrono::steadyMSecs();
|
||||
|
||||
try {
|
||||
m_runner->run(*m_job.nonce(), results);
|
||||
m_runner->run(readUnaligned(m_job.nonce()), results);
|
||||
}
|
||||
catch (std::exception &ex) {
|
||||
printError(id(), ex.what());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue