You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const int nthread = omp_get_max_threads();
data->resize(nthread);
...
#pragma omp parallel num_threads(nthread_)
{
// threadid
int tid = omp_get_thread_num();
size_t nstep = (chunk.size + nthread - 1) / nthread;
...
}
Why the num_threads is nthread_ , buy use nthread to calculate nstep?
In my machine, nthread_ = 2 and nthread = 20 , so I only can read 1/10 data, 18 data blocks are empty ...
Why not only use one of them? @tqchen
The text was updated successfully, but these errors were encountered:
Why the num_threads is
nthread_
, buy usenthread
to calculate nstep?In my machine,
nthread_ = 2
andnthread = 20
, so I only can read 1/10 data, 18 data blocks are empty ...Why not only use one of them? @tqchen
The text was updated successfully, but these errors were encountered: