From 7deeb283ca2305497ee0f8fbf575d0452e02e534 Mon Sep 17 00:00:00 2001 From: Lefteris Karapetsas Date: Fri, 24 Jul 2015 14:36:39 +0200 Subject: [PATCH] Add sealers to mining benchmark --- ethminer/MinerAux.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index 3d4457483..65dd0111e 100644 --- a/ethminer/MinerAux.h +++ b/ethminer/MinerAux.h @@ -398,6 +398,12 @@ private: cdebug << genesis.boundary(); GenericFarm f; + map::SealerDescriptor> sealers; + sealers["cpu"] = GenericFarm::SealerDescriptor{&EthashCPUMiner::instances, [](GenericMiner::ConstructionInfo ci){ return new EthashCPUMiner(ci); }}; +#if ETH_ETHASHCL + sealers["opencl"] = GenericFarm::SealerDescriptor{&EthashGPUMiner::instances, [](GenericMiner::ConstructionInfo ci){ return new EthashGPUMiner(ci); }}; +#endif + f.setSealers(sealers); f.onSolutionFound([&](EthashProofOfWork::Solution) { return false; }); string platformInfo = _m == MinerType::CPU ? "CPU" : "GPU";//EthashProofOfWork::CPUMiner::platformInfo() : _m == MinerType::GPU ? EthashProofOfWork::GPUMiner::platformInfo() : "";