Namespaces | Functions
OpenMP.h File Reference
#include <vector>

Namespaces

 PLMD
 
 PLMD::OpenMP
 

Functions

unsigned PLMD::OpenMP::getCachelineSize ()
 get cacheline size More...
 
template<typename T >
unsigned PLMD::OpenMP::getGoodNumThreads (const std::vector< T > &v)
 Get a reasonable number of threads so as to access to vector v. More...
 
template<typename T >
unsigned PLMD::OpenMP::getGoodNumThreads (const T *, unsigned n)
 Get a reasonable number of threads so as to access to an array of size s located at x. More...
 
unsigned PLMD::OpenMP::getNumThreads ()
 Get number of threads that can be used by openMP. More...
 
unsigned PLMD::OpenMP::getThreadNum ()
 Returns a unique thread identification number within the current team. More...
 
void PLMD::OpenMP::setNumThreads (const unsigned nt)
 Set number of threads that can be used by openMP. More...