TS 68 CNDParallelAdviser
C/C++ Pack Test Specification for Parallel Adviser
Author: Valeriy Soldatov
Version: 0.1
Lastupdate: 01.10.2009
Introduction: Test specification for Parallel Adviser in NetBeans 6.8 C/C++ Pack
Contents |
Test suite: Parallel Adviser
Purpose: Verify Parallel Adviser in NetBeans C/C++ Pack 6.8
Comment:
Supported platforms:
- MacOS X and Windows are not supported
- Linux (Sun Studio tools should be installed):
- SuSE Linux Enterprise Server 10, RedHat Enterprise Linux 5, CentOS 5
- SuSE Linux Enterprise Server 10, RedHat Enterprise Linux 5, CentOS 5
- Solaris (DTrace or Sun Studio tools are required):
- Solaris 10, OpenSolaris
- Solaris 10, OpenSolaris
- Check OpenMP syntax highlighting
- Create Pi sample
- Select "OpenMP" project configuration on toolbar
- Open pi_omp.c file in editor
- Check "#pragma omp parallel for reduction(+:pi)" line
- http://wiki.netbeans.org/attach/TS_68_CNDParallelAdviser/openmp_syntax_highlighting_TS_68_CNDParallelAdviser.png
- EXPECTED RESULT: "#pragma" is green, "omp parallel for reduction" words are blue, "(+:pi)" is black
- Check "Parallel Adviser" view
- Push "Windows|Other|Parallel Adviser" main menu item
- Check "Parallel computing", "OpenMP" and "Configure toolchain" hyperlinks in "Parallel Adviser" view
- EXPECTED RESULT: First and second hyperlinks open articles from wikipedia.org, third opens Sun Studio documentation
- Check "Loops for parallelization" tip on 2 or more core machine (Sun Studio data provider) - Solaris or Linux
- Create "FFT Image Transformer" sample
- Call context menu on project and select "Properties" menu item
- Select "Sun Studio" data provider in "Profile" category
- Close "Project Properties" window
- Run project
- Wait project is finished. Press ENTER in terminal
Expected text in "Output" view:
RUN SUCCESSFUL (total time: 37s)
Parallel Adviser:
"fft.cpp", line 121: There is loop in function FFT that could be effectively parallelized.
"fft.cpp", line 157: There is loop in function FFT that could be effectively parallelized.
"fft.cpp", line 162: There is loop in function FFT that could be effectively parallelized. - Check hyperlinks
- EXPECTED RESULT: First hyperlink opens "Parallel Adviser" view, other opens fft.cpp file and move cursor in editor on expected line
- Check "Loops for parallelization" tip on 2 or more core machine (DTrace data provider) - Solaris
- Create "FFT Image Transformer" sample
- Call context menu on project and select "Properties" menu item
- Select "DTrace" data provider in "Profile" category
- Close "Project Properties" window
- Run project
- Wait project is finished. Press ENTER in terminal
Expected text in "Output" view:
RUN SUCCESSFUL (total time: 37s)
Parallel Adviser:
"fft.cpp", line 121: There is loop in function FFT that could be effectively parallelized.
"fft.cpp", line 157: There is loop in function FFT that could be effectively parallelized.
"fft.cpp", line 162: There is loop in function FFT that could be effectively parallelized. - Check hyperlinks
- EXPECTED RESULT: First hyperlink opens "Parallel Adviser" view, other opens fft.cpp file and move cursor in editor on expected line
- Check "Too many threads" tip (Sun Studio data provider) - Solaris and Linux
- Create Pi sample
- Select "Threads" project configuration on toolbar
- Open pi_pthreads.c file. Replace "#define THREADS 4" on "#define THREADS 100". Save file.
- Call context menu on project and select "Properties" menu item
- Select "Sun Studio" data provider in "Profile" category
- Close "Project Properties" window
- Run project
- Wait project is finished. Press ENTER in terminal
Expected text in "Output" view:
RUN SUCCESSFUL (total time: 13s)
Parallel Adviser:
It seems that program uses too many threads. - Check "Parallel Adviser" hyperlink
- EXPECTED RESULT: "Parallel Adviser" view is opened
- Check "Too many threads" tip (DTrace data provider) - Solaris
- Create Pi sample
- Select "Threads" project configuration on toolbar
- Open pi_pthreads.c file. Replace "#define THREADS 4" on "#define THREADS 100". Save file.
- Call context menu on project and select "Properties" menu item
- Select "DTrace" data provider in "Profile" category
- Close "Project Properties" window
- Run project
- Wait project is finished. Press ENTER in terminal
Expected text in "Output" view:
RUN SUCCESSFUL (total time: 13s)
Parallel Adviser:
It seems that program uses too many threads. - Check "Parallel Adviser" hyperlink
- EXPECTED RESULT: "Parallel Adviser" view is opened

