This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 178033 - OpenMP: Highlight OpenMP Directives and Runtime Routine Calls in the IDE
Summary: OpenMP: Highlight OpenMP Directives and Runtime Routine Calls in the IDE
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-02 16:33 UTC by Thomas Preisler
Modified: 2009-12-02 16:33 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Preisler 2009-12-02 16:33:49 UTC
Originally CR 6904976:

To aid in OpenMP program development, it would be useful if the IDE would highlight OpenMP directives and runtime routine calls when displaying an OpenMP program.

The OpenMP 3.0 Specification can be found here:
http://www.openmp.org/mp-documents/spec30.pdf

All the OpenMP directives and runtime routines are listed in the Specification.


Here's what happens today if I try to debug an OpenMP program using the IDE.


Fortran:
--------
See attached test.f for an example test case.

Compile test case as follows:
  % f90 -xopenmp=noopt -g test.f

and debug executable using sunstudio IDE.

(a) When the program is displayed, an OpenMP directive (identified by the 
    sentinel !$OMP or C$OMP) is considered a comment, and is displayed in grey.
    It would be useful if the full OpenMP directive (including all the clauses) 
    is highlighted in some color.

(b) Calls to OpenMP runtime routines (for example, omp_get_num_threads()) are not
    highlighted and are not distinguished from any other routine calls. 


C/C++:
------
See attached task_0111.c for an example test case.

Compile test case as follows:
  % cc -xopenmp=noopt -g task_0111.c
or
  % CC -xopenmp=noopt -g task_0111.c

and debug executable using sunstudio IDE.

(a) When displaying an OpenMP directive (identified by the sentinel "#pragma omp"),
    only the "#pragma" keyword is highlighted in green.  It would be useful
    if the full OpenMP directive (including all the clauses) is highlighted in 
    some color.

(b) Calls to OpenMP runtime routines (for example, omp_get_num_threads()) are not 
    highlighted and are not distinguished from any other routine calls.
*** (#1 of 1): 2009-11-25 16:15:34 PST nawal