GetScorers() use DeviceInfo

This commit is contained in:
Hieu Hoang 2017-01-23 13:59:33 +00:00
parent 1dbdf57c78
commit a34cb2e54b

View File

@ -179,8 +179,6 @@ OutputCollector& God::GetOutputCollector() const {
std::vector<ScorerPtr> God::GetScorers(const DeviceInfo &deviceInfo) const { std::vector<ScorerPtr> God::GetScorers(const DeviceInfo &deviceInfo) const {
std::vector<ScorerPtr> scorers; std::vector<ScorerPtr> scorers;
size_t cpuThreads = God::Get<size_t>("cpu-threads");
if (deviceInfo.deviceType == CPUDevice) { if (deviceInfo.deviceType == CPUDevice) {
for (auto&& loader : cpuLoaders_ | boost::adaptors::map_values) for (auto&& loader : cpuLoaders_ | boost::adaptors::map_values)
scorers.emplace_back(loader->NewScorer(*this, deviceInfo.threadInd)); scorers.emplace_back(loader->NewScorer(*this, deviceInfo.threadInd));