Open main menu

CDOT Wiki β

Changes

Debugging Parallel Programs in Visual Studio / Team Debug

165 bytes added, 09:12, 22 December 2017
m
Walkthrough
On the Threads window, you can see "main thread" line and some worker threads. The yellow arrow points only main thread. and go the next region. Apparently, ntdll.. threads are not used.
[[File:1stblock1stblock2.png|1000px|center|serial]]
You can see "Stack Frame" name on the top screen is changed to main\omp\1
On the Threads window, you can see "main thread" and other new three thread which same as default usable thread number 4 (The number is maximum usable thread of the cpu the program is running. And it is printed in the serial region as "omp_get_max_threads()"). after hitting 4 times (you can see the count on the breakpoint Window), the step goes to the next region.[[File:2ndblockticon.png|50px|center|open]]A thread icon appear the side of the parallel line[[File:2ndblock2.png|1000px|center|open]]
You can see "Stack Frame" name on the top screen is changed to main\omp\2
On the Threads window, you can see "main thread" and other new seven thread which same as the thread number decided inside of the code. after hitting 8 times, the debugging is terminated.
[[File:3rdblock3rdblock2.png|1000px|center|open+]]
==Case B - Using the Parallel Stacks and the Parallel Watch Window==
190
edits