BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
Fiber::ParallelizationOptions Class Reference

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 OpenClOptionsopenClOptions () 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
 

Detailed Description

Parallel operation settings.

Member Function Documentation

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().


The documentation for this class was generated from the following files: