mirror of
https://github.com/marian-nmt/marian.git
synced 2024-11-30 21:39:52 +03:00
Bug fix in logging ("{}" was missing a few times).
This commit is contained in:
parent
5ec391ab88
commit
eda37f3548
@ -41,10 +41,10 @@ int main(int argc, char* argv[]) {
|
||||
#ifdef CUDA
|
||||
size_t gpuThreads = god.Get<size_t>("gpu-threads");
|
||||
auto devices = god.Get<std::vector<size_t>>("devices");
|
||||
LOG(info, "Setting GPU thread count to ", gpuThreads);
|
||||
LOG(info, "Setting GPU thread count to {}", gpuThreads);
|
||||
totalThreads += gpuThreads * devices.size();
|
||||
#endif
|
||||
LOG(info, "Total number of threads: ", totalThreads);
|
||||
LOG(info, "Total number of threads: {}", totalThreads);
|
||||
amunmt_UTIL_THROW_IF2(totalThreads == 0, "Total number of threads is 0");
|
||||
|
||||
{
|
||||
@ -74,7 +74,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
}
|
||||
|
||||
LOG(info, "Total time: ", timer.format());
|
||||
LOG(info, "Total time: {}", timer.format());
|
||||
god.CleanUp();
|
||||
//sleep(10);
|
||||
return 0;
|
||||
|
@ -45,7 +45,7 @@ boost::python::list translate(boost::python::list& in) {
|
||||
totalThreads += gpuThreads * devices.size();
|
||||
#endif
|
||||
|
||||
LOG(info, "Total number of threads: ", totalThreads);
|
||||
LOG(info, "Total number of threads: {}", totalThreads);
|
||||
amunmt_UTIL_THROW_IF2(totalThreads == 0, "Total number of threads is 0");
|
||||
|
||||
ThreadPool pool(totalThreads);
|
||||
|
Loading…
Reference in New Issue
Block a user