HP aC++/HP C A.06.25 Programmer's Guide
_OPENMP Macro...................................................................................................221
Environment Variables in OpenMP............................................................................221
OMP_SCHEDULE..................................................................................................221
OMP_NUM_THREADS.........................................................................................222
OMP_DYNAMIC...................................................................................................222
OMP_NESTED.......................................................................................................222
Runtime Library Functions in OpenMP......................................................................223
Execution Environment Functions..............................................................................223
omp_set_num_threads...........................................................................................223
omp_get_num_threads..........................................................................................224
omp_get_max_threads...........................................................................................224
omp_get_thread_num............................................................................................224
omp_get_num_procs..............................................................................................224
omp_in_parallel.....................................................................................................225
omp_set_dynamic..................................................................................................225
omp_get_dynamic..................................................................................................225
omp_set_nested......................................................................................................225
omp_get_nested.....................................................................................................226
Lock Functions.............................................................................................................226
omp_init_lock and omp_init_nest_lock.................................................................226
omp_destroy_lock and omp_destroy_nest_lock...................................................226
omp_set_lock and omp_set_nest_lock...................................................................226
omp_unset_lock and omp_unset_nest_lock..........................................................227
omp_test_lock and omp_test_nest_lock Functions................................................227
Timing Functions.........................................................................................................228
omp_get_wtime......................................................................................................228
omp_get_wtick.......................................................................................................228
9 Tools and Libraries..................................................................................................................229
HP Specific Features of lex and yacc................................................................................229
Creating and Using Libraries............................................................................................230
HP aC++ Libraries........................................................................................................230
Standard C++ Library.............................................................................................230
Introduction............................................................................................................231
Introduction to Using the Standard C++ Library...................................................231
Differences between Standard C++ Library and Other Libraries..........................232
The Non-Object-Oriented Design of the Standard C++ Library............................232
Smaller Source Code.........................................................................................233
Flexibility..........................................................................................................233
Efficiency...........................................................................................................233
Iterators: Mismatches and Invalidations..........................................................233
Templates: Errors and Code Bloat....................................................................233
Multithreading Problems..................................................................................233
16 Table of Contents