KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Shared memory parallelism related helper class. More...
#include <parallel_utilities.h>
Static Public Member Functions | |
static LockObject & | GetGlobalLock () |
Returns the global lock Global lock that can be used for critical sections. More... | |
Operations | |
static int | GetNumThreads () |
Returns the current number of threads. More... | |
static void | SetNumThreads (const int NumThreads) |
Sets the current number of threads. More... | |
static int | GetNumProcs () |
Returns the number of processors available to this device This can include the multiple threads per processing unit. More... | |
Shared memory parallelism related helper class.
Provides access to functionalities for shared memory parallelism such as the number of threads in usa.
|
static |
Returns the global lock Global lock that can be used for critical sections.
|
static |
Returns the number of processors available to this device This can include the multiple threads per processing unit.
|
static |
Returns the current number of threads.
|
static |
Sets the current number of threads.
NumThreads | - the number of threads to be used |