From 45ccb4cc84b6e83ce54820c924d810424fa38430 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Mon, 29 Jun 2015 16:21:19 +0200 Subject: [PATCH] Correctly set GPU instances in non-zero platforms Closes #2315 --- ethminer/MinerAux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index e123cdbb1..ec6ee57e7 100644 --- a/ethminer/MinerAux.h +++ b/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);