OMP GET WTIME: Provides a portable wall clock timing routine and returns a double precision floating point value equal to the number of elapsed seconds since some point in the past. Usually used in ”pairs” with the value of the first call substracted from the value of the second call to obtain the elapsed time for ablock of code (per thread times)
Format
|
double omp get wtime(void) |
OMP GET WTICK: Returns a double precision floating point value equal to the number of seconds between successive clock ticks.
Format |
double omp get wtick(void) |
Environment Variables
- OpenMP provides the following environment variables for controlling the execution of parallel code
- All environment variable names are uppercase. The values assigned to them are not case sensitive
List of Variables |
- OMP_SCHEDULE
- OMP_NUM THREADS
- OMP_DYNAMIC
- OMP_NESTED
- OMP_STACKSIZE
|
Uses Example |
setenv OMP_SCHEDULE “guided, 4”
setenv OMP_NUM THREADS 8 |
|