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...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
Google Coral USB Edge TPU Implementation Guide 1. Installation and Troubleshooting 1.1 Hardware Requirements Google Coral USB Accelerator ...
-
The MNIST dataset is a dataset of handwritten digits, comprising 60 000 training examples and 10 000 test examples. The dataset can be downl...
-
Video stabilization example source code. The principle is like that... Firstly, to obtain 2 adjacent images extract good feature to t...
-
This is data acquisition source code of LMS511(SICK co.) Source code is made by MFC(vs 2008). The sensor is communicated by TCP/IP. ...
-
ONNX Runtime with ROCm (AMD GPU) Setup Guide Installation Prerequisites ROCm installed (6.0+ recommended) Python 3.8-3.10 Install ONNX Runti...
-
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...
-
RTSP(Real Time Streaming Protocol) is video streaming, it usually sent from network camera. VideoCapture function in opencv also can get r...
No comments:
Post a Comment