![]() |
|
PhoenixThread
1.0.0
Tools to ease parallel programming in C++
|
#include <iostream>#include <fstream>#include <sstream>#include "phoenix_vector_split.h"#include "lauchParallelThread.h"
Include dependency graph for lauchParallelThread_impl.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| template<typename T, typename _Callable, typename... _Args> | |
| void | lauchParallelThread (const std::vector< T > &listInputPTabModelFile, long unsigned int nbThread, _Callable &&__f, _Args &&... __args) |
| Lauch the callable function __f on nbThread threads with __args to be passed to each thread. | |
| template<typename T, typename _Callable, typename... _Args> | |
| void | lauchParallelThread (std::vector< T > &listInputPTabModelFile, long unsigned int nbThread, _Callable &&__f, _Args &&... __args) |
| Lauch the callable function __f on nbThread threads with __args to be passed to each thread. | |
| template<typename _Callable, typename... _Args> | |
| bool | lauchParallelThreadLog (const PPath &baseOutputName, const PPath &fileSuffix, long unsigned int nbThread, _Callable &&__f, _Args &&... __args) |
| Launch the callable function __f on nbThread threads with __args to be passed to each thread. | |
| template<typename _Callable, typename... _Args> | |
| bool | lauchParallelThreadLog (const PPath &logFile, long unsigned int nbThread, _Callable &&__f, _Args &&... __args) |
| Lauch the callable function __f on nbThread threads with __args to be passed to each thread. | |
| template<typename _Callable, typename... _Args> | |
| bool | lauchParallelThreadLog (const std::vector< PPath > &listInputPTabModelFile, const PPath &baseOutputName, const PPath &fileSuffix, long unsigned int nbThread, _Callable &&__f, _Args &&... __args) |
| Lauch the callable function __f on nbThread threads with __args to be passed to each thread. | |
| template<typename _Callable, typename... _Args> | |
| bool | lauchParallelThreadLog (const std::vector< PPath > &listInputPTabModelFile, const PPath &logFile, long unsigned int nbThread, _Callable &&__f, _Args &&... __args) |
| Lauch the callable function __f on nbThread threads with __args to be passed to each thread. | |
| void lauchParallelThread | ( | const std::vector< T > & | listInputPTabModelFile, |
| long unsigned int | nbThread, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.
| listInputPTabModelFile | : list of all files to be processed by the threads, this list will be split between each thread |
| nbThread | : number of thread to lauch, if 0 : use every able cores (never upper than PLIB_SYSTEM_NB_CORE, number of thread on the current system) |
| __f | : function to be lauched on each thread (function with prototype void f(const std::vector<PPath>& listFile, __args); ) |
| __args | : extra arguments to be passed to the function __f (optional arguments) This function needs to be used with –std=c++11 compilation option Note : nbThread == 0 avoid the execution of the function __f |
Definition at line 27 of file lauchParallelThread_impl.h.
Referenced by phoenix_program_callParallel().
Here is the caller graph for this function:| void lauchParallelThread | ( | std::vector< T > & | listInputPTabModelFile, |
| long unsigned int | nbThread, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.
| [out] | listInputPTabModelFile | : list of all files to be processed by the threads, this list will be split between each thread |
| nbThread | : number of thread to lauch, if 0 : use every able cores (never upper than PLIB_SYSTEM_NB_CORE, number of thread on the current system) | |
| __f | : function to be lauched on each thread (function with prototype void f(const std::vector<PPath>& listFile, __args); ) | |
| __args | : extra arguments to be passed to the function __f (optional arguments) This function needs to be used with –std=c++11 compilation option Note : nbThread == 0 avoid the execution of the function __f |
Definition at line 55 of file lauchParallelThread_impl.h.
| bool lauchParallelThreadLog | ( | const PPath & | baseOutputName, |
| const PPath & | fileSuffix, | ||
| long unsigned int | nbThread, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Launch the callable function __f on nbThread threads with __args to be passed to each thread.
| baseOutputName | : base of the log file output name |
| fileSuffix | : suffix of the log file output name (can be anything such as file extention) |
| nbThread | : number of thread to lauch, if 0 : use every able cores (never upper than PLIB_SYSTEM_NB_CORE, number of thread on the current system) |
| __f | : function to be lauched on each thread (function with prototype void f(std::ofstream & fs, __args); ) |
| __args | : extra arguments to be passed to the function __f (optional arguments) |
Definition at line 167 of file lauchParallelThread_impl.h.
| bool lauchParallelThreadLog | ( | const PPath & | logFile, |
| long unsigned int | nbThread, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.
| logFile | : log file output name |
| nbThread | : number of thread to lauch, if 0 : use every able cores (never upper than PLIB_SYSTEM_NB_CORE, number of thread on the current system) |
| __f | : function to be lauched on each thread (function with prototype void f(std::ofstream & fs, __args); ) |
| __args | : extra arguments to be passed to the function __f (optional arguments) |
Definition at line 220 of file lauchParallelThread_impl.h.
References lauchParallelThreadLog().
Here is the call graph for this function:| bool lauchParallelThreadLog | ( | const std::vector< PPath > & | listInputPTabModelFile, |
| const PPath & | baseOutputName, | ||
| const PPath & | fileSuffix, | ||
| long unsigned int | nbThread, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.
| listInputPTabModelFile | : list of all files to be processed by the threads, this list will be split between each thread |
| baseOutputName | : base of the log file output name |
| fileSuffix | : suffix of the log file output name (can be anything such as file extention) |
| nbThread | : number of thread to lauch, if 0 : use every able cores (never upper than PLIB_SYSTEM_NB_CORE, number of thread on the current system) |
| __f | : function to be lauched on each thread (function with prototype void f(std::ofstream & fs, const std::vector<PPath>& listFile, __args); ) |
| __args | : extra arguments to be passed to the function __f (optional arguments) |
Definition at line 87 of file lauchParallelThread_impl.h.
Referenced by lauchParallelThreadLog(), and lauchParallelThreadLog().
Here is the caller graph for this function:| bool lauchParallelThreadLog | ( | const std::vector< PPath > & | listInputPTabModelFile, |
| const PPath & | logFile, | ||
| long unsigned int | nbThread, | ||
| _Callable && | __f, | ||
| _Args &&... | __args ) |
Lauch the callable function __f on nbThread threads with __args to be passed to each thread.
| listInputPTabModelFile | : list of all files to be processed by the threads, this list will be split between each thread |
| logFile | : log file output name |
| nbThread | : number of thread to lauch, if 0 : use every able cores (never upper than PLIB_SYSTEM_NB_CORE, number of thread on the current system) |
| __f | : function to be lauched on each thread (function with prototype void f(std::ofstream & fs, const std::vector<PPath>& listFile, __args); ) |
| __args | : extra arguments to be passed to the function __f (optional arguments) |
Definition at line 145 of file lauchParallelThread_impl.h.
References lauchParallelThreadLog().
Here is the call graph for this function: