Open main menu

CDOT Wiki β

Changes

m
Walkthrough
If the option was on, the result is this.
[[File:openResult.png|400px|center|openResult]]
On a laptop coputer
Intel® Core™ i7-6500U Processor/ Performance - # of Cores 2 #of Threads 4
[https://ark.intel.com/products/88194/Intel-Core-i7-6500U-Processor-4M-Cache-up-to-3_10-GHz]
[[File:openResult.png|400px|center|openResult]]
[[File:8t.png|400px|center|openResult]]
On one of school desktop computer
Intel® Core™ i7-4790 Processor / Performance - # of Cores 4 #of Threads 8
[https://ark.intel.com/products/80806/Intel-Core-i7-4790-Processor-8M-Cache-up-to-4_00-GHz][[File:8t.png|400px|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 that thread number of thread is decided specified by the code.
TO check each region, we put markers on the lines that print the number of the thread currently using.
Once click "start debugging", the debugger stops at the first breakpoint. You can chase the steps by using "Continue" button.
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 (it is printed at 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:open.png|1000px|center|open]]
190
edits