Copier copier,
const ScratchData &sample_scratch_data,
const CopyData &sample_copy_data,
- const unsigned int queue_length = 2*multithread_info.n_threads(),
+ const unsigned int queue_length = 2*MultithreadInfo::n_threads(),
const unsigned int chunk_size = 8);
Copier copier,
const ScratchData &sample_scratch_data,
const CopyData &sample_copy_data,
- const unsigned int queue_length = 2*multithread_info.n_threads(),
+ const unsigned int queue_length = 2*MultithreadInfo::n_threads(),
const unsigned int chunk_size = 8)
{
Assert (queue_length > 0,
// we want to use TBB if we have support and if it is not disabled at
// runtime:
#ifdef DEAL_II_WITH_THREADS
- if (multithread_info.n_threads()==1)
+ if (MultithreadInfo::n_threads()==1)
#endif
{
// need to copy the sample since it is marked const
// we want to use TBB if we have support and if it is not disabled at
// runtime:
#ifdef DEAL_II_WITH_THREADS
- if (multithread_info.n_threads()==1)
+ if (MultithreadInfo::n_threads()==1)
#endif
{
// need to copy the sample since it is marked const
void (MainClass::*copier) (const CopyData &),
const ScratchData &sample_scratch_data,
const CopyData &sample_copy_data,
- const unsigned int queue_length = 2*multithread_info.n_threads(),
+ const unsigned int queue_length = 2*MultithreadInfo::n_threads(),
const unsigned int chunk_size = 8)
{
// forward to the other function
// if the number would be zero, round up to one since every
// process needs to have at least one thread
const unsigned int n_threads
- = std::max(MultithreadInfo::n_cpus / n_local_processes
+ = std::max(MultithreadInfo::n_cores() / n_local_processes
+
- (nth_process_on_host <= MultithreadInfo::n_cpus % n_local_processes
+ (nth_process_on_host <= MultithreadInfo::n_cores() % n_local_processes
?
1
:
0),
1U);
#else
- const unsigned int n_threads = MultithreadInfo::n_cpus;
+ const unsigned int n_threads = MultithreadInfo::n_cores();
#endif
// finally set this number of threads