OpenMP Runtime
Functions
OMP Runtime Configuration Helper Functions

Functions

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_thread_stack (char from_heap, unsigned int size)
 Configure location of Thread Stacks.
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.

Function Documentation

void __TI_omp_config_clock_freq_in_mhz ( unsigned int  clock_freq)

Configure the device core frequency.

This is used by the OpenMP runtime timing functions.

Must be called from within __TI_omp_configure.

Parameters:
clock_freqFrequency of the cores

Here is the caller graph for this function:

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.

Must be called from within __TI_omp_configure.

Parameters:
master_core_idxIndex of the master core
num_coresNumber of cores participating in the runtime

Here is the caller graph for this function:

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.

Must be called from within __TI_omp_configure.

Parameters:
init_qmssSet to 1 if OpenMP runtime must initialize QMSS sub-system. This is the typical case. Set to 0 only if the application will initialize QMSS.
hw_queue_base_idxQMSS general purpose queue base index for OpenMP processing. OpenMP requires 11 queues.
first_desc_idx_in_linking_ramIndex of linking ram entry to be used by OpenMP
first_memory_region_idxIndex of the first memory region to be used by OpenMP

Here is the caller graph for this function:

void __TI_omp_config_hw_semaphores ( unsigned char  hw_sem_base_idx)

Configure hardware semaphores available to OpenMP runtime.

Must be called from within __TI_omp_configure.

Parameters:
hw_sem_base_idxIndex of the first semaphore. The runtime will use 6 semaphores starting at hw_sem_base_idx

Here is the caller graph for this function:

void __TI_omp_config_thread_stack ( char  from_heap,
unsigned int  size 
)

Configure location of Thread Stacks.

Must be called from within __TI_omp_configure. By default, thread stacks are placed in on chip local memory (L2 SRAM). Use this function to indicate that thread stacks must be placed in memory allocated from the heap.

Parameters:
from_heapSet to 1 to allocate thread stacks from the heap
sizeIf from_heap is set to 1, specify the size of stack to allocate

Here is the caller graph for this function:

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.

Parameters:
mpax_idMPAX register id
base_addrAddress range to match in C66x native 32b address space
replacement_addrReplace/extend the bits in base_addr
seg_size_encodingEncoded segment size

Here is the caller graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Defines