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)
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
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...
-
OpenCV has AdaBoost algorithm function. And gpu version also is provided. For using detection, we prepare the trained xml file. Although...
-
It is simple and easy but I can not remember the code well when I need this code. So I leave this code in my blog. And I hope the code is ...
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv rgb converting example code. refer to this page -> http://feel...
-
Mr. Juan ask me that to categorize camera movement rate into big, middle, small. He is researching to find meaningful scene in endoscopic v...
-
The method to make C module for using in python using Visual Studio IDE is introduced on the http://feelmare.blogspot.kr/2014/02/python-stu...
-
There is shape match function in the OpenCV. The function name is cvMatchShapes. This function compares two contours. If two contours is ...
No comments:
Post a Comment