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)
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
Created Date : 2011.2 Language : C/C++ Tool : Microsoft Visual C++ 2010 Library & Utilized : OpenCV 2.2 Reference : Interent Refer...
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
Video stabilization example source code. The principle is like that... Firstly, to obtain 2 adjacent images extract good feature to t...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
This example source code is to extract HOG feature from images. And save descriptors to XML file. The source code explain how to use HOGD...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
Created Date : 2007.1 Language : C/C++ Tool : Microsoft Visual C++ 6.0 Library & Utilized : OpenCV 1.0 Reference : Learning Ope...
-
Embeded camera R&D for Real-Time fire detection surveillance in tunnel environment - 2008.07.01~2009.06.30 - High Computing Power E...
No comments:
Post a Comment