BEM++
2.0
|
Parallel operation settings. More...
#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/fiber/parallelization_options.hpp>
Public Types | |
enum | { AUTO = -1 } |
Public Member Functions | |
ParallelizationOptions () | |
Constructor. | |
void | enableOpenCl (const OpenClOptions &openClOptions) |
Enable GPU-based calculations (currently broken). | |
void | disableOpenCl () |
Disable GPU-based calculations. | |
bool | isOpenClEnabled () const |
Return whether GPU-based calculations are enabled. | |
const OpenClOptions & | openClOptions () const |
Return current settings controlling operation of the GPU. | |
void | setMaxThreadCount (int maxThreadCount=AUTO) |
Set the maximum number of threads used during the assembly. More... | |
int | maxThreadCount () const |
Return the maximum number of thread used during the assembly. More... | |
Private Attributes | |
bool | m_openClEnabled |
OpenClOptions | m_openClOptions |
int | m_maxThreadCount |
Parallel operation settings.
int Fiber::ParallelizationOptions::maxThreadCount | ( | ) | const |
Return the maximum number of thread used during the assembly.
The returned value can be a positive number or AUTO
. In the latter case the number of threads is determined automatically by Intel Threading Building Blocks.
Referenced by setMaxThreadCount().
void Fiber::ParallelizationOptions::setMaxThreadCount | ( | int | maxThreadCount = AUTO | ) |
Set the maximum number of threads used during the assembly.
maxThreadCount
must be a positive number or AUTO
. In the latter case the number of threads is determined automatically by Intel Threading Building Blocks.
References maxThreadCount().