5/25/2017
OpenMP Test on Visual Studio
To use OpenMP on Visual Studio IDE, we should set in tools->options like..
Below code is to calculate pi using loop logic.
There are 5 case code.
0 case is for testing, openMP running well or not.
1 case is no treading, else 2~4 case is some different OpenMP threading case.
I am also not friendly with openMP, so I will refer this code when not remember well.
And I will add more useful technical code..
<gist>
</gist>
The result image tells us, OpenMP is certainly faster than no threading.
Labels:
C,
C++,
omp_get_max_threads,
omp_get_thread_num,
OpenMP,
Parallel,
Total,
Visual Studio
Subscribe to:
Post Comments (Atom)
-
The MNIST dataset is a dataset of handwritten digits, comprising 60 000 training examples and 10 000 test examples. The dataset can be downl...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
RTSP(Real Time Streaming Protocol) is video streaming, it usually sent from network camera. VideoCapture function in opencv also can get r...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
OpenCV has AdaBoost algorithm function. And gpu version also is provided. For using detection, we prepare the trained xml file. Although...
-
As you can see in the following video, I created a class that stitching n cameras in real time. https://www.youtube.com/user/feelmare/sear...
-
Created Date : 2011.2 Language : C/C++ Tool : Microsoft Visual C++ 2010 Library & Utilized : OpenCV 2.2 Reference : Interent Refer...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
Contents What is a D-U-N-S Number? Prerequisites — Documents to Prepare Go to the D&B Application ...
-
install Claude Code using this shell script . #!/bin/bash # install-claude.sh # Installs Node.js 18+, npm, and Claude Code CLI, handling co...
No comments:
Post a Comment