190
edits
Changes
m
→Case A - Using the Thread window
To use OpenMP in visual studio, it is essential to turn on a OpenMP option.
[[File:setting.png|600px|center|setting]]
If the option was off, the result goes below,
[[File:noopenResult.png|600px|center|noopenResult]]
If the option was on, the result is this.
[[File:openResult.png|600px|center|openResult]]
Abobe code consists of three part.
The first is a serial region, the second is an OpenMP parallel region, the third is an OpenMP parallel region and the number of thread is decided by the code.
serial region
[[File:serial.png|800px|center|serial]]
serial region
[[File:open.png|800px|center|open]]
serial region
[[File:open+.png|800px|center|open+]]
==Case B - Using the Parallel Stacks and the Parallel Watch Window==