Open main menu

CDOT Wiki β

Changes

OpenMP Debugging in Visual Studio / Team Debug

524 bytes added, 21:18, 5 December 2017
Case B - Using the Parallel Stacks Window
Now, Worker 3 has finished its work and is just waiting, as shown in the rightmost box:
[[File:Stacks-step7.PNG|500px|center|Worker 2]]
 
 
Syncing up:
cilk_sync;
 
At this point, all spawned threads have synced up, as indicated in the right box, and the main thread continues, on the left side box.
[[File:Stacks-step8.PNG|500px|center|Synced up]]
 
 
The Parallel Stacks Window is a valuable tool in debugging multi-threaded applications as we can have a view of all threads at once and their call stacks in any given time. It allows us to see the delegation of work to different threads as they are made free and as they are indicated by the compiler to work.
==Case C==
92
edits