Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Is setting omp_set_num_threads(1) equivalent to linear programming if i have some parallel for loop?
And what is the use of omp_set_dynamic(0);

What I have tried:

I am tring to run nested for loops and had the above query.
Posted
Comments
Sergey Alexandrovich Kryukov 8-May-16 12:36pm    
No. :-)
—SA
Member 12509578 8-May-16 13:01pm    
could you please give a little background for the answer as I am very new to openMP.
Sergey Alexandrovich Kryukov 8-May-16 13:17pm    
Well, this number is just the default. Let's say, you provide some recommendation based on your knowledge of the typical situation. Using 1 thread is pointless. I don't know what is "linear programming", but how using OpenMP could be ever equivalent to single-thread programming, ever? This is just simple logic...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900