ARTS
2.3.1285(git:92a29ea9-dirty)
|
Header file for helper functions for OpenMP. More...
Go to the source code of this file.
Functions | |
int | arts_omp_get_max_threads () |
Wrapper for omp_get_max_threads. More... | |
bool | arts_omp_in_parallel () |
Wrapper for omp_in_parallel. More... | |
int | arts_omp_get_thread_num () |
Wrapper for omp_get_thread_num. More... | |
int | arts_omp_get_nested () |
Wrapper for omp_get_nested. More... | |
void | arts_omp_set_nested (int i) |
Wrapper for omp_set_nested. More... | |
void | arts_omp_set_dynamic (int i) |
Wrapper for omp_set_dynamic. More... | |
Header file for helper functions for OpenMP.
This file contains headers for the wrapper functions for standard OMP functions, that work with and without OMP support. This saves the use of #ifdef statements around omp functions in the ARTS main code.
All functions start with arts_omp. Otherwise, names are the same as the standard OMP function names.
Definition in file arts_omp.h.
int arts_omp_get_max_threads | ( | ) |
Wrapper for omp_get_max_threads.
This wrapper works with and without OMP support.
Definition at line 46 of file arts_omp.cc.
Referenced by GetNumberOfThreads(), iyb_calc(), main(), and yCalc().
int arts_omp_get_nested | ( | ) |
Wrapper for omp_get_nested.
This wrapper works with and without OMP support.
Definition at line 92 of file arts_omp.cc.
References arts_omp_set_nested(), and i.
int arts_omp_get_thread_num | ( | ) |
Wrapper for omp_get_thread_num.
This wrapper works with and without OMP support.
Definition at line 76 of file arts_omp.cc.
Referenced by DOBatchCalc(), main(), and ybatchCalc().
bool arts_omp_in_parallel | ( | ) |
Wrapper for omp_in_parallel.
This wrapper works with and without OMP support.
Definition at line 62 of file arts_omp.cc.
void arts_omp_set_dynamic | ( | int | i | ) |
Wrapper for omp_set_dynamic.
This wrapper works with and without OMP support.
i | Turn on dynamic parallelism with 1, turn off with 0. |
Definition at line 131 of file arts_omp.cc.
Referenced by arts_omp_set_nested().
void arts_omp_set_nested | ( | int | i | ) |
Wrapper for omp_set_nested.
This wrapper works with and without OMP support.
i | Turn on nested parallelism with 1, turn off with 0. |
Definition at line 111 of file arts_omp.cc.
References arts_omp_set_dynamic(), and i.
Referenced by arts_omp_get_nested().