GHOST  1.1.2
General, Hybrid, and Optimized Sparse Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
omp.h
Go to the documentation of this file.
1 
7 #ifndef GHOST_OMP_H
8 #define GHOST_OMP_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
18  void ghost_omp_nthread_set(int nthreads);
24  int ghost_omp_threadnum();
30  int ghost_omp_nthread();
43  void ghost_omp_set_nested(int nested);
55  void ghost_omp_set_dynamic(int dynamic_threads);
56 
57 #ifdef __cplusplus
58 }
59 #endif
60 
61 #endif
int ghost_omp_in_parallel()
Check whether one is in an active parallel region.
Definition: omp.c:54
void ghost_omp_nthread_set(int nthreads)
Set the number of threads.
Definition: omp.c:9
int ghost_omp_threadnum()
Get the active thread number.
Definition: omp.c:32
void ghost_omp_set_dynamic(int dynamic_threads)
Indicates that the number of threads available in subsequent parallel region can be adjusted by the r...
Definition: omp.c:77
int ghost_omp_nthread()
Get the number of OpenMP threads.
Definition: omp.c:21
void ghost_omp_set_nested(int nested)
En- or disable nested parallelism.
Definition: omp.c:66
int ghost_omp_get_nested()
Check whether nested parallelism is enabled.
Definition: omp.c:43