Commit 3c056f5f authored by mir's avatar mir

number of threads = 0 passed to the init_task_manager. nproc not working on containers?

parent dba9017e
......@@ -446,9 +446,9 @@ void* worker_thread(void* arg)
void init_task_manager(task_manager_t* man, uint32_t num_threads)
{
assert(man != NULL);
assert(num_threads > 0); // && num_threads < 33 && "Do you have zero or more than 32 processors??");
if(num_threads > 8){
printf("[MIR]: number of threads clamped to 8. %d number of threads asked \n", num_threads);
// assert(num_threads > 0); // && num_threads < 33 && "Do you have zero or more than 32 processors??");
if(num_threads == 0 || num_threads > 8){
printf("[MIR]: number of threads set to 8. %d number of threads asked \n", num_threads);
num_threads = 8;
}
......
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