#include <OpenMP.h>
|
static unsigned | getNumThreads () |
| Get number of threads that can be used by openMP. More...
|
|
static unsigned | getThreadNum () |
| Returns a unique thread identification number within the current team. More...
|
|
static unsigned | getCachelineSize () |
| get cacheline size More...
|
|
template<typename T > |
static unsigned | getGoodNumThreads (const T *x, unsigned s) |
| Get a reasonable number of threads so as to access to an array of size s located at x. More...
|
|
template<typename T > |
static unsigned | getGoodNumThreads (const std::vector< T > &v) |
| Get a reasonable number of threads so as to access to vector v;. More...
|
|
◆ getCachelineSize()
unsigned PLMD::OpenMP::getCachelineSize |
( |
| ) |
|
|
static |
◆ getGoodNumThreads() [1/2]
template<typename T >
unsigned PLMD::OpenMP::getGoodNumThreads |
( |
const T * |
x, |
|
|
unsigned |
s |
|
) |
| |
|
static |
Get a reasonable number of threads so as to access to an array of size s located at x.
◆ getGoodNumThreads() [2/2]
template<typename T >
unsigned PLMD::OpenMP::getGoodNumThreads |
( |
const std::vector< T > & |
v | ) |
|
|
static |
Get a reasonable number of threads so as to access to vector v;.
◆ getNumThreads()
unsigned PLMD::OpenMP::getNumThreads |
( |
| ) |
|
|
static |
Get number of threads that can be used by openMP.
◆ getThreadNum()
unsigned PLMD::OpenMP::getThreadNum |
( |
| ) |
|
|
static |
Returns a unique thread identification number within the current team.
The documentation for this class was generated from the following files: