Changes

Jump to: navigation, search

OpenMP Debugging in Visual Studio / Team Debug

1,313 bytes added, 19:14, 6 December 2017
Parallel Watch window
The Parallel Watch Window is very simple to use. As you go through each breakpoint, the Window will show you the threads that are associated to the current stack frame, as well as the expression you have added to watch, and what the value is in that thread.
 
[[File:Parallelwatch.PNG|400px|center|Parallel Watch]]
In the above Window, we can see that there are currently 4 different threads in the current stack frame, and the value for variable i in each of them. The yellow arrow points to the current active thread stack frame. You can choose to flag certain threads by clicking on the flag icon on the left, and you can choose to only watch flagged threads by clicking on the "Show Only Flagged" icon on the top left corner of the window. <br/>
 
If you hover your mouse over a row, you can see more information about that thread, such as the line in the code the stack frame is at and the process Id:
[[File:Parallelwatch-hover.PNG|400px|center|Parallel Watch]]
<br/>
 
'''Features:'''
 
You can sort the threads according to an expression's value by clicking on the column header of the expression.<br/>
If you right-click on a row, you also have more functions, including grouping the threads by variable values, or even replacing a value of a variable right at that moment in the code.
[[File:Parallelwatch-right-click.PNG|400px|center|Parallel Watch]]
 
On the top right corner, there is a box where you can put a Boolean expression on which the window will filter the threads. So in our example, if we put i == 1, it will only show the one thread that has i = 1.
==GPU Threads window==
92
edits

Navigation menu