Commit 76c91495 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

warning fixes

parent 867e409c
......@@ -282,7 +282,7 @@ class Distribution
std::unique_lock<std::mutex> lck(mut_);
if (cur_>=nwork_) return Range();
auto rem = nwork_-cur_;
size_t tmp = size_t((fact_max_*rem)/nthreads_);
size_t tmp = size_t((fact_max_*double(rem))/double(nthreads_));
auto sz = std::min(rem, std::max(chunksize_, tmp));
size_t lo=cur_;
cur_+=sz;
......
......@@ -60,7 +60,7 @@ void execGuided(size_t nwork, size_t nthreads, size_t chunksize_min,
double fact_max, std::function<void(Scheduler &)> func);
void execParallel(size_t nthreads, std::function<void(Scheduler &)> func);
} // end of namespace detail
} // end of namespace detail_threading
using detail_threading::max_threads;
using detail_threading::get_default_nthreads;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment