Tomographer  v5.4
Tomographer C++ Framework Documentation
multiprocomp.h File Reference

(v5.4)

Multiprocessing with OpenMP parallel multithreading. More...

#include <csignal>
#include <chrono>
#include <stdexcept>
#include <boost/exception/diagnostic_information.hpp>
#include <tomographer/tools/loggers.h>
#include <tomographer/tools/cxxutil.h>
#include <tomographer/tools/needownoperatornew.h>
#include <tomographer/multiproc.h>
#include <tomographer/multiprocthreadcommon.h>
+ Include dependency graph for multiprocomp.h:

Go to the source code of this file.

Classes

class  Tomographer::MultiProc::OMP::ThreadSanitizerLogger< BaseLogger >
 Wrapper logger to call non-thread-safe loggers from a multithreaded environment. More...
 
struct  Tomographer::Logger::LoggerTraits< MultiProc::OMP::ThreadSanitizerLogger< BaseLogger > >
 Specialized Traits for Tomographer::MultiProc::OMP::ThreadSanitizerLogger<typename BaseLogger> – see Tomographer::Logger::LoggerTraits<typename LoggerType> More...
 
class  Tomographer::MultiProc::OMP::TaskDispatcher< TaskType_, TaskCData_, LoggerType_, TaskCountIntType_, TaskLoggerType_ >
 Dispatches tasks to parallel threads using OpenMP. More...
 

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::MultiProc
 Definitions for multi-processing classes and helpers.
 
 Tomographer::MultiProc::OMP
 Definitions for multitasking using OpenMP multithreading.
 
 Tomographer::Logger
 Tomographer's Logging Framework
 

Functions

constexpr int omp_get_thread_num ()
 
constexpr int omp_get_num_threads ()
 
template<typename TaskType_ , typename TaskCData_ , typename LoggerType_ , typename TaskCountIntType_ = int>
TaskDispatcher< TaskType_, TaskCData_, LoggerType_, TaskCountIntType_ > Tomographer::MultiProc::OMP::makeTaskDispatcher (TaskCData_ *pcdata_, LoggerType_ &logger_, TaskCountIntType_ num_total_runs_, TaskCountIntType_ n_chunk_=1)
 Create an OMP task dispatcher. Useful if you want C++'s template argument deduction mechanism.
 

Detailed Description

Multiprocessing with OpenMP parallel multithreading.

See Tomographer::MultiProc::OMP.

Definition in file multiprocomp.h.