Browse Source

Merge pull request #2316 from LefterisJP/cl_configure_instances_fix

Correctly set GPU instances in non-zero platforms
cl-refactor
Gav Wood 10 years ago
parent
commit
c7565191e7
  1. 2
      ethminer/MinerAux.h

2
ethminer/MinerAux.h

@ -265,7 +265,6 @@ public:
ProofOfWork::CPUMiner::setNumInstances(m_miningThreads);
else if (m_minerType == MinerType::GPU)
{
ProofOfWork::GPUMiner::setNumInstances(m_miningThreads);
if (!ProofOfWork::GPUMiner::configureGPU(
m_openclPlatform,
m_openclDevice,
@ -277,6 +276,7 @@ public:
cout << "No GPU device with sufficient memory was found. Can't GPU mine. Remove the -G argument" << endl;
exit(1);
}
ProofOfWork::GPUMiner::setNumInstances(m_miningThreads);
}
if (mode == OperationMode::DAGInit)
doInitDAG(m_initDAG);

Loading…
Cancel
Save