![]() |
(git:2bb242e)
|
Go to the source code of this file.
Functions | |
| int | openmp_trace_issues (void) |
| int openmp_trace_issues | ( | void | ) |
Development tool checking the nesting of OpenMP constructs at runtime using OMPT, i.e., the OpenMP runtime must be lib(i)omp (also when GNU-compiled code uses it at runtime), but not libgomp. CP2K_OMP_TRACE=<level>: 1: abort at the first error, i.e., non-conforming code (deadlock risk) 2: print errors (once per code location) and a summary at exit 3: print warnings as well, i.e., valid but likely unwanted code 4: print information as well, e.g., nested parallel regions A negative level selects the most verbose level. A code location is printed as function name (exported symbols only, e.g., -rdynamic) or as module with offset or address (addr2line -f -e module offset). If the executable is not linked against lib(i)omp, ompt_start_tool must be exported explicitly, e.g., -Wl,–export-dynamic-symbol=ompt_start_tool (or -rdynamic).
Definition at line 26 of file openmp_trace.c.