OpenMP Runtime
Classes | Enumerations | Functions
omp.h File Reference

OMP header file to include in user applications. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  omp_nest_lock_t

Enumerations

enum  omp_sched_t { omp_sched_static = 1, omp_sched_dynamic = 2, omp_sched_guided = 3, omp_sched_auto = 4 }

Functions

void omp_set_num_threads (int nthreads)
int omp_get_num_threads (void)
int omp_get_max_threads (void)
int omp_get_thread_num (void)
int omp_get_num_procs (void)
int omp_in_parallel (void)
void omp_set_dynamic (int nthreads)
int omp_get_dynamic (void)
void omp_set_nested (int val)
int omp_get_nested (void)
void omp_set_schedule (omp_sched_t kind, int modifier)
void omp_get_schedule (omp_sched_t *kind, int *modifier)
int omp_get_thread_limit (void)
void omp_set_max_active_levels (int val)
int omp_get_max_active_levels (void)
int omp_get_level (void)
int omp_get_ancestor_thread_num (int level)
int omp_get_team_size (int level)
int omp_get_active_level (void)
void omp_init_lock (omp_lock_t *lock)
 Allocate the lock variable and initialize it to an unlocked state.
void omp_destroy_lock (omp_lock_t *lock)
 Free storage associated with the lock variable.
void omp_set_lock (omp_lock_t *lock)
 Set the lock.
int omp_test_lock (omp_lock_t *lock)
 Attempt to set the lock.
void omp_unset_lock (omp_lock_t *lock)
 Unset the lock.
void omp_init_nest_lock (omp_nest_lock_t *lock)
 Initialize the nested lock and set nesting count to 0.
void omp_destroy_nest_lock (omp_nest_lock_t *lock)
 Free storage associated with the lock variable.
void omp_set_nest_lock (omp_nest_lock_t *lock)
 Set the nested lock.
int omp_test_nest_lock (omp_nest_lock_t *lock)
 Attempt to set the nested lock.
void omp_unset_nest_lock (omp_nest_lock_t *lock)
 Decrement the nesting count and unset if resulting count is 0.
double omp_get_wtime (void)
double omp_get_wtick (void)
void __TI_omp_configure (void)
 Default OpenMP Runtime configuration function.
void __TI_omp_config_thread_stack (char from_heap, unsigned int size)
 Configure location of Thread Stacks.
void __TI_omp_reset (void)
 Default reset routine.
void __TI_omp_configure_caches (void)
void __TI_omp_enable_caching (unsigned int start, unsigned int length)
void __TI_omp_disable_caching (unsigned int start, unsigned int length)
void __TI_setMPAX (unsigned int mpax_id, unsigned int base_addr, unsigned long long replacement_addr, unsigned int seg_size_encoding)
 Configure an MPAX register.
void __TI_omp_config_cores (unsigned char master_core_idx, unsigned char num_cores)
 Configure number of cores available to OpenMP runtime and the index of the master core.
void __TI_omp_config_hw_queues (char init_qmss, int hw_queue_base_idx, int first_desc_idx_in_linking_ram, int first_memory_region_idx)
 Configure location of hardware queues used by Open Event Machine.
void __TI_omp_config_hw_semaphores (unsigned char hw_sem_base_idx)
 Configure hardware semaphores available to OpenMP runtime.
void __TI_omp_config_clock_freq_in_mhz (unsigned int clock_freq)
 Configure the device core frequency.
void __TI_omp_wait_at_core_barrier (void)
 Implements a core-level barrier.

Detailed Description

OMP header file to include in user applications.


Function Documentation

Implements a core-level barrier.

Used during OpenMP runtime initialization

void omp_destroy_lock ( omp_lock_t *  lock)

Free storage associated with the lock variable.

Parameters:
lockptr to variable of type omp_lock_t

Here is the caller graph for this function:

void omp_destroy_nest_lock ( omp_nest_lock_t *  lock)

Free storage associated with the lock variable.

Parameters:
lockptr to variable of type omp_nest_lock_t

Here is the call graph for this function:

void omp_init_lock ( omp_lock_t *  lock)

Allocate the lock variable and initialize it to an unlocked state.

Also, no task owns the lock.

Parameters:
lockptr to variable of type omp_lock_t

Here is the caller graph for this function:

void omp_init_nest_lock ( omp_nest_lock_t *  lock)

Initialize the nested lock and set nesting count to 0.

Parameters:
lockptr to variable of type omp_nest_lock_t
See also:
omp_init_lock

Here is the call graph for this function:

void omp_set_lock ( omp_lock_t *  lock)

Set the lock.

Parameters:
lockptr to variable of type omp_lock_t

Here is the call graph for this function:

Here is the caller graph for this function:

void omp_set_nest_lock ( omp_nest_lock_t *  lock)

Set the nested lock.

Parameters:
lockptr to variable of type omp_nest_lock_t

Here is the call graph for this function:

int omp_test_lock ( omp_lock_t *  lock)

Attempt to set the lock.

Parameters:
lockptr to variable of type omp_lock_t
Returns:
1 if the lock is successfully set, 0 otherwise

Here is the call graph for this function:

Here is the caller graph for this function:

int omp_test_nest_lock ( omp_nest_lock_t *  lock)

Attempt to set the nested lock.

Parameters:
lockptr to variable of type omp_nest_lock_t
Returns:
The new nesting count if the lock is successfully set, 0 otherwise

Here is the call graph for this function:

void omp_unset_lock ( omp_lock_t *  lock)

Unset the lock.

Parameters:
lockptr to variable of type omp_lock_t

Here is the call graph for this function:

Here is the caller graph for this function:

void omp_unset_nest_lock ( omp_nest_lock_t *  lock)

Decrement the nesting count and unset if resulting count is 0.

Parameters:
lockptr to variable of type omp_nest_lock_t

Here is the call graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Defines