Bug fix in logging ("{}" was missing a few times).

This commit is contained in:
Ulrich Germann 2017-03-05 17:17:56 +00:00
parent 5ec391ab88
commit eda37f3548
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);