![]() |
![]() |
OpenMP Runtime
|
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. |
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.
clock_freq | Frequency of the cores |
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.
master_core_idx | Index of the master core |
num_cores | Number of cores participating in the runtime |
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.
init_qmss | Set 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_idx | QMSS general purpose queue base index for OpenMP processing. OpenMP requires 11 queues. |
first_desc_idx_in_linking_ram | Index of linking ram entry to be used by OpenMP |
first_memory_region_idx | Index of the first memory region to be used by OpenMP |
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.
hw_sem_base_idx | Index of the first semaphore. The runtime will use 6 semaphores starting at hw_sem_base_idx |
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.
from_heap | Set to 1 to allocate thread stacks from the heap |
size | If from_heap is set to 1, specify the size of stack to allocate |
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.
mpax_id | MPAX register id |
base_addr | Address range to match in C66x native 32b address space |
replacement_addr | Replace/extend the bits in base_addr |
seg_size_encoding | Encoded segment size |