Viewing OpenMP* Information

The debugger provides information on OpenMP* locks, teams and threads when debugging an OpenMP* application.

To enable OpenMP* support, make sure the debugger has access to the shared library libomp_db.so, which by default is in the lib directory in your compiler installation.

The debugger automatically enables OpenMP* support when it detects that the debuggee is an OpenMP program. To switch off OpenMP* support, use the following command:

(idb) set $threadlevel="native"

To switch it back on, use the following command:

(idb) set $threadlevel="openmp"

The debugger enables you to view the following information about an OpenMP* application:

Viewing OpenMP* Information

Information

Use this window

Use this command

threads

Threads Window

idb info thread

tasks

Tasks Window

idb info task

barriers

Barriers Window

idb info barrier

taskwaits

Taskwaits Window

idb info taskwait

locks

Locks Window

idb info lock

teams

Teams Window

idb info team

parent/child relationship

Spawn Tree Window

idb info openmp thread tree



Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.