Open main menu

CDOT Wiki β

Changes

GPU621/Striking

22 bytes added, 14:52, 8 December 2016
Progress
'''Nov 18th - 23th:'''
<table border="0" width="800">
<tr>
<td width="400">
'''Sample code to use debugging'''
*Sample code can be downloaded from here [https://software.intel.com/en-us/node/522584 Intel(R) Cilk(TM) quick sort]
The debugging example below is used for five odd numbers to be sorted. This is the easiest way to figured out how the threads work together with the simple data.
<table border="0" width="800"><tr><td width="360" align="top">
*How to start debugging
 
The following sequence may guides you start to debug on the visual Studio.
# put breakpoints where you want to take a look by hitting the key F9 in the line or left-click at the front of a line
# Run the program in Debug mode by hitting the green button (or key F5)
# Go to the menu Debug -> Windows to open the windows you need ( see the image belowon your right)
# Choose the windows that you need (e.g. Memory, Threads, Parallel Stacks, Local or Auto and so on.)
# Hit the function keys to run a program:
## Shit +F11 to get out of a subroutine (Step Out)
## F9 to put/remove breakpoints in a line
 
 
 
 
 
 
</td>
<td width="400440">
To open windows you need for debugging on Visual Studio, You must run a program in debug mode first. Otherwise, there is no menu to open the windows.
[[File:debug_windows.png|400px440px|thumb|left|Menu Debug > Windows on VS 2015]]
</td>
</tr>
</table>
 
 
*Sample code results
108
edits