Class OclInterleave renamed to OclSharedData and added class OclSharedState.

This commit is contained in:
XMRig 2019-09-30 05:18:53 +07:00
parent c908ef2489
commit f4943b77f3
10 changed files with 154 additions and 34 deletions

View file

@ -198,11 +198,8 @@ std::vector<xmrig::OclLaunchData> xmrig::OclConfig::get(const Miner *miner, cons
# endif
if (thread.threads().size() > 1) {
auto interleave = std::make_shared<OclInterleave>(thread.threads().size());
for (int64_t affinity : thread.threads()) {
OclLaunchData data(miner, algorithm, *this, platform, thread, devices[thread.index()], affinity);
data.interleave = interleave;
# ifdef XMRIG_ALGO_RANDOMX
data.dataset = dataset;