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() : "";