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)
-
refer to code: . import ezdxf import random import matplotlib . pyplot as plt # Random DXF file generator def random_point (): r...
-
ð FREE License Plate Recognition API - No Credit Card Required! Want to try ANPR (Automatic Number Plate Recognition) / ALPR (Automatic L...
-
ð§ AWS SAM Troubleshooting - Fixing pip/runtime and AWS CLI Issues If you're deploying AWS Lambda functions with SAM (Serverless Appli...
-
This is Video capture example in ver. opencv 3.0 rc1. In 3.0, location of functions are little changed. In case of VideoCapture, we shoul...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
V1 =[ 10 20 30 40 50 60 70]; V2 = V1( :, randperm( length(V1) )); V2 = 60 10 20 30 50 40 70
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
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...
No comments:
Post a Comment