Use the omp_pr command to print a description of the current parallel region or a specified parallel region, including the parent region, parallel region ID, team size (number of threads), and program location (program counter address). For example:
(dbx) omp_pr
parallel region 127283434369843201
team size = 4
source location = test.c:103
parent = 127283430568755201You can also print descriptions of all the parallel regions along the path from the current parallel region or specified parallel region to its root. For example:
(dbx) omp_pr -ancestors
parallel region 127283434369843201
team size = 4
source location = test.c:103
parent = 127283430568755201
parallel region 127283430568755201
team size = 4
source location = test.c:95
parent = <no parent>You can also print the whole parallel region tree. For example:
(dbx) omp_pr -tree
parallel region 127283430568755201
team size = 4
source location = test.c:95
parent = <no parent>
parallel region 127283434369843201
team size = 4
source location = test.c:103
parent = 127283430568755201For more information, see omp_pr Command.
Use the omp_tr command to print a description of the current task region or a specified task region, including the task region ID, state (spawned, executing, waiting), executing thread, program location (program counter address), unfinished children, and parent. For example:
(dbx) omp_tr
task region 65540
type = implicit
state = executing
executing thread = t@4
source location == test.c:46
unfinished children = 0
parent = <no parent>You can also print descriptions of all the task regions along the path from the current task region or specified task region to its root.
(dbx) omp_tr -ancestors
task region 196611
type = implicit
state = executing
executing thread = t@3
source location - test.c:103
unfinished children = 0
parent = 131075
task region 131075
type = implicit
state = executing
executing thread = t@3
unfinished children = 0
parent = <no parent>And you can print the whole task region tree. For example:
(dbx) omp_tr -tree
task region 10
type = implicit
state = executing
executing thread = t@10
source location = test.c:103
unfinished children = 0
parent = <no parent>
task region 7
type = implicit
state = executing
executing thread = t@7
source location = test.c:103
unfinished children = 0
parent = <no parent>
task region 6
type implicit
state = executing
executing thread = t@6
source location = test.c:103
unfinished children = 0
parent = <o parent>
task region 196609
type = implicit
state = executing
executing thread = t@1
source location = test.c:95
unfinished children = 0
parent = <no parent>
task region 262145
type = implicit
state = executing
executing thread = t@1
source location = test.c:103
unfinished children - 0
parent = 196609
For more information, see omp_tr Command.
Use the omp_loop command to print a description of the current loop, including the scheduling type (static, dynamic, guided, auto, or runtime), ordered or not, bounds, steps or strides, and number of iterations. For example:
(dbx) omp_loop
ordered loop: no
lower bound: 0
upper bound: 3
step: 1
chunk: 1
schedule type: static
source location: test.c:49For more information, see omp_loop Command.
Use the omp_team command to print all the threads on the current team or the team of a specified parallel region. For example:
(dbx) omp_team
team members:
0: t@1 state = in implicit barrier, task region = 262145
1: t@6 state = in implicit barrier, task region = 6
2: t@7 state = working, task region = 7
3: t@10 state = in implicit barrier, task region = 10For more information, see omp_team Command.
When you are debugging OpenMP code, the thread –info prints the OpenMP thread ID, parallel region ID, task region ID, and OpenMP thread state, in addition to the usual information about the current or specified thread. For more information, see thread Command.