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.
Static Public Member Functions | List of all members
Kratos::ParallelUtilities Class Reference

Shared memory parallelism related helper class. More...

#include <parallel_utilities.h>

Collaboration diagram for Kratos::ParallelUtilities:

Static Public Member Functions

static LockObjectGetGlobalLock ()
 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...
 

Detailed Description

Shared memory parallelism related helper class.

Provides access to functionalities for shared memory parallelism such as the number of threads in usa.

Member Function Documentation

◆ GetGlobalLock()

LockObject & Kratos::ParallelUtilities::GetGlobalLock ( )
static

Returns the global lock Global lock that can be used for critical sections.

Returns
global lock

◆ GetNumProcs()

int Kratos::ParallelUtilities::GetNumProcs ( )
static

Returns the number of processors available to this device This can include the multiple threads per processing unit.

Returns
number of processors

◆ GetNumThreads()

int Kratos::ParallelUtilities::GetNumThreads ( )
static

Returns the current number of threads.

Returns
number of threads

◆ SetNumThreads()

void Kratos::ParallelUtilities::SetNumThreads ( const int  NumThreads)
static

Sets the current number of threads.

Parameters
NumThreads- the number of threads to be used

The documentation for this class was generated from the following files: