Display the threads in the process in a tree format.
idb info openmp thread tree
None.
This command displays the parent-child relationship among OpenMP* tasks in a tree format. Each internal node in the tree is a task that has spawned other tasks. Tasks that have not spawned other tasks are displayed as leafnodes.
This command only displays current tasks and task teams, not destroyed tasks or task teams.
The debugger variable $threadlevel must be set to openmp to debug an OpenMP* application. The debugger usually sets this variable automatically when you load an OpenMP* application. Using this command causes an error message if $threadlevel is not set to openmp.
This command is fully supported for OpenMP* versions 3.0 and higher. For older versions, this command has restricted functionality.
The following example illustrates the type of information that idb info openmp thread tree displays:
(idb) idb info openmp thread tree
Team 1
`--[0] Thread 1
#--Team 5
|--[0] Thread 1
| #--Team 6
| |--[0] Thread 1
| |--[1] Thread 4
| `--[2] Thread 5
`--[1] Thread 3
#--Team 9
|--[0] Thread 3
|--[1] Thread 6
`--[2] Thread 7
In contrast, the following example illustrates the type of information that idb info team displays for the same thread tree:
(idb) idb info team
OpenMP Team: 1
Parent Team: -
Created At: unknown
Team members
[0] Thread 1, is master of team 5
OpenMP Team: 5
Parent Team: 1
Created At: "/c_omp_omp.c":main:21:60
Team members
[0] Thread 1, is master of team 6
[1] Thread 3, is master of team 9
OpenMP Team: 6
Parent Team: 5
Created At: "/c_omp_omp.c":main:30:59
Team members
[0] Thread 1
[1] Thread 4
[2] Thread 5
OpenMP Team: 9
Parent Team: 5
Created At: "/c_omp_omp.c":main:30:59
Team members
[0] Thread 3
[1] Thread 6
[2] Thread 7
Copyright © 2001-2011, Intel Corporation. All rights reserved.