![]() |
![]() |
OpenMP Runtime
|
Functions used outside of the openmp module. More...
#include <stdbool.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | tomp_EntryFunc )(void) |
Functions | |
int | __TI_omp_initialize (void) |
Initializes the OMP runtime. | |
void | __TI_omp_start (void) |
void | __TI_omp_terminate (void) |
Terminate the OpenMP runtime. | |
bool | tomp_ompInitCommon (void) |
Initialization steps shared in RTSC and bare-metal modes. | |
void | tomp_OmpStartCommon (tomp_EntryFunc fn) |
void | tomp_switchL2SpToGlobal (void) |
If OpenMP thread stacks are in L2SRAM, switch SP to global address, update MAR bit to disable caching of this range and wb-invalidate L1. | |
int | tomp_initParallel (void) |
Initialization function. | |
int | tomp_initLocal (void) |
OpenMP local (per-core) initialization. | |
void | tomp_initIcv (void) |
Set icvs for master core's initial and implicit tasks. | |
void | tomp_initIcvNoParse (void) |
Set icvs for master core's initial and implicit tasks without parsing the environment variables. | |
bool | tomp_initGlobalNRT (bool memRegionInitialized) |
Initializes the NRT (QMSS sub system) for OpenMP. | |
void | tomp_closeQueues (void) |
Close and reset all queues used by OpenMP. | |
void | tomp_dispatch_once (void) |
OpenMP dispatch function. |
Functions used outside of the openmp module.
int __TI_omp_initialize | ( | void | ) |
Initializes the OMP runtime.
Invoked after cinit. see .c
void __TI_omp_terminate | ( | void | ) |
Terminate the OpenMP runtime.
Executed only be the master core. Pushes exit events to the worker exit queues to terminate execution on workers. Also does cleanup on the master
bool tomp_initGlobalNRT | ( | bool | memRegionInitialized | ) |
Initializes the NRT (QMSS sub system) for OpenMP.
Called by the master core only. Sets up the memory region, initializes QMSS (if required) and opens the queues required by OpenMP.
NOTE: This function must be called BEFORE tomp_dispatch_once is called on the worker cores.
void tomp_initIcvNoParse | ( | void | ) |
Set icvs for master core's initial and implicit tasks without parsing the environment variables.
Used in the OpenCL context.
int tomp_initParallel | ( | void | ) |
Initialization function.
Called only by the master core
Sets up all the queues and associates them with execution objects