diff --git a/ethminer/MinerAux.h b/ethminer/MinerAux.h index 65dd0111e..a378312ed 100644 --- a/ethminer/MinerAux.h +++ b/ethminer/MinerAux.h @@ -471,6 +471,11 @@ private: void doFarm(MinerType _m, string const& _remote, unsigned _recheckPeriod) { + 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 (void)_m; (void)_remote; (void)_recheckPeriod; @@ -479,6 +484,7 @@ private: Farm rpc(client); GenericFarm f; + f.setSealers(sealers); if (_m == MinerType::CPU) f.start("cpu"); else if (_m == MinerType::GPU)