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
  • Solaris (DTrace or Sun Studio tools are required):
    • Solaris 10, OpenSolaris


  1. Check OpenMP syntax highlighting
    1. Create Pi sample
    2. Select "OpenMP" project configuration on toolbar
    3. Open pi_omp.c file in editor
    4. Check "#pragma omp parallel for reduction(+:pi)" line
    5. 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
  2. Check "Parallel Adviser" view
    1. Push "Windows|Other|Parallel Adviser" main menu item
    2. 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
  3. Check "Loops for parallelization" tip on 2 or more core machine (Sun Studio data provider) - Solaris or Linux
    1. Create "FFT Image Transformer" sample
    2. Call context menu on project and select "Properties" menu item
    3. Select "Sun Studio" data provider in "Profile" category
    4. Close "Project Properties" window
    5. Run project
    6. 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.
    7. Check hyperlinks
    • EXPECTED RESULT: First hyperlink opens "Parallel Adviser" view, other opens fft.cpp file and move cursor in editor on expected line
  4. Check "Loops for parallelization" tip on 2 or more core machine (DTrace data provider) - Solaris
    1. Create "FFT Image Transformer" sample
    2. Call context menu on project and select "Properties" menu item
    3. Select "DTrace" data provider in "Profile" category
    4. Close "Project Properties" window
    5. Run project
    6. 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.
    7. Check hyperlinks
    • EXPECTED RESULT: First hyperlink opens "Parallel Adviser" view, other opens fft.cpp file and move cursor in editor on expected line
  5. Check "Too many threads" tip (Sun Studio data provider) - Solaris and Linux
    1. Create Pi sample
    2. Select "Threads" project configuration on toolbar
    3. Open pi_pthreads.c file. Replace "#define THREADS 4" on "#define THREADS 100". Save file.
    4. Call context menu on project and select "Properties" menu item
    5. Select "Sun Studio" data provider in "Profile" category
    6. Close "Project Properties" window
    7. Run project
    8. 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.
    9. Check "Parallel Adviser" hyperlink
    • EXPECTED RESULT: "Parallel Adviser" view is opened
  6. Check "Too many threads" tip (DTrace data provider) - Solaris
    1. Create Pi sample
    2. Select "Threads" project configuration on toolbar
    3. Open pi_pthreads.c file. Replace "#define THREADS 4" on "#define THREADS 100". Save file.
    4. Call context menu on project and select "Properties" menu item
    5. Select "DTrace" data provider in "Profile" category
    6. Close "Project Properties" window
    7. Run project
    8. 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.
    9. Check "Parallel Adviser" hyperlink
    • EXPECTED RESULT: "Parallel Adviser" view is opened
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo