Open main menu

CDOT Wiki β

GPU621/Debugging OpenMP

Revision as of 19:58, 28 November 2022 by Ryla (talk | contribs) (Group Members)

Group Members

  1. Jimmy Liu
  2. Sami Ali
  3. Leon Liu

// TODO: Create a tutorial on how to debug parallel programs using OpenMP in Visual Studio

// remember to add pictures if possible

// Steps

1. Read the Microsoft Documentation for your section

2. Paraphrase the contents of your section onto the Wiki

3. Test it yourself in Visual Studio and add examples

// Uploading Files

To upload a file, go to https://wiki.cdot.senecacollege.ca/wiki/Special:Upload

To include a file in a page, use a link in one of the following forms:

  • ```File:File.jpg``` to use the full version of the file
  • ```
    File:File.png
    alt text
    ``` to use a 200 pixel wide rendition in a box in the left margin with "alt text" as description
  • ```Media:File.ogg``` for directly linking to the file without displaying the file

Process and Thread

Process

// TODO: Explain what processes are in OpenMP (short)

Thread

// TODO: Explain what threads are in OpenMP (short)

Multiple Processes

// TODO: Explain why and how to run multiple processes in one or more projects in VS (long)

// use this: https://learn.microsoft.com/en-us/visualstudio/debugger/debug-multiple-processes?view=vs-2022

User Interface

// TODO: Show the window and explain what it does for every single window below (medium)

// documentation for windows are here: https://learn.microsoft.com/en-us/visualstudio/debugger/debug-threads-and-processes?view=vs-2022

Attach to Process Dialog Box

Process Window

Thread Window

Source Window

Debug Location Window

Parallel Stacks Window

Parallel Tasks Window

Parallel Watch Window

Walkthrough

// TODO: Step-by-step walkthrough on how to debug program with the specific window

// use same program for both tests

// can probably just take something from course notes and modify it to fit our parameters

Case A: Using the Thread Window

// TODO: walkthrough on using thread window to debug (medium)

// https://learn.microsoft.com/en-us/visualstudio/debugger/walkthrough-debugging-a-parallel-application?view=vs-2022&tabs=cpp

Case B: Using the Parallel Stacks Window

// TODO: walkthrough on using parallel stacks window to debug (long)

// https://learn.microsoft.com/en-us/visualstudio/debugger/using-the-parallel-stacks-window?view=vs-2022

https://en.wikipedia.org/wiki/Help:Cheatsheet