Changes

Jump to: navigation, search

GPU621/Striking

54 bytes added, 13:41, 8 December 2016
Progress
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.
*How to start debugging
<table border="0" width="1000">
<tr>
<td width="400500">*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
## F9 to put/remove breakpoints in a line
</td>
<td width="600500">(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|400px|thumb|left|Menu Debug > Windows on VS 2015]]
</td>
<table border="0" width="800">
<tr align="left"><td>[[File:dataflow.png|220px|thumb|left|Quick sorting dataflow]]</td>
 <td>
Fist set of this quick sorting is that main thread worked for first half of all elements which starts *begin 9 to *end 1. The *mid value was 9 so it swapped *mid for *end. Since mid moved to end, the second half of all elements was the end to the end which only end value are to be sorted; the actual process will be skipped so no value is changed.
108
edits

Navigation menu