#include <OpenMP.h>
Static Public Member Functions | |
| static unsigned | getCachelineSize () |
| get cacheline size | |
| template<typename T> | |
| static unsigned | getGoodNumThreads (const std::vector< T > &v) |
| Get a reasonable number of threads so as to access to vector v;. | |
| 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. | |
| static unsigned | getNumThreads () |
| Get number of threads that can be used by openMP. | |
| static unsigned | getThreadNum () |
| Returns a unique thread identification number within the current team. | |
| static void | setNumThreads (const unsigned nt) |
| Set number of threads that can be used by openMP. | |
|
static |
get cacheline size
|
static |
Get a reasonable number of threads so as to access to vector v;.
|
static |
Get a reasonable number of threads so as to access to an array of size s located at x.
|
static |
Get number of threads that can be used by openMP.
|
static |
Returns a unique thread identification number within the current team.
|
static |
Set number of threads that can be used by openMP.
Hosted by GitHub
|
1.17.0
|