Loading [MathJax]/extensions/tex2jax.js
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
OpenMP.cpp File Reference
#include "OpenMP.h"
#include "Tools.h"
#include <cstdlib>

Classes

struct  PLMD::OpenMP::OpenMPVars
 singleton struct to treat the openMP setting as a global variables, but with a layer of encapsulation More...
 

Namespaces

namespace  PLMD
 
namespace  PLMD::OpenMP
 

Functions

unsigned PLMD::OpenMP::getCachelineSize ()
 get cacheline size
 
unsigned PLMD::OpenMP::getNumThreads ()
 Get number of threads that can be used by openMP.
 
unsigned PLMD::OpenMP::getThreadNum ()
 Returns a unique thread identification number within the current team.
 
void PLMD::OpenMP::setNumThreads (const unsigned nt)
 Set number of threads that can be used by openMP.