Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upR_DATATABLE_NUM_THREADS env var alone ignored #4514
Comments
|
Hmm I think it's slightly different. Actually what's happening is
the For me I have
|
|
I guess your point is if |
|
try using 5 |
|
maybe that is actually good, so it is more flexible to cap threads to min of two provided. Then we just need to mention that in manual. |
|
On the principle of the first-thought-best, let's go with Jan's first thought and change it. When you use setDTthreads() at the R prompt it works at you expect, so fixing the environment variable is more like making its behaviour consistent with setDTthreads. |
Shouldn't we default num_proc_percent to 100% when num_threads is provided?
data.table/src/openmp-utils.c
Line 44 in d3bd408