Reasons for omp_set_num_threads(1) slower than no openmp
问题 I believe everyone agree with the title of this post. Can someone point me the reason ? Any reference to that like book etc ? I have tried to find but no luck. I believe the reason is something about openmp has a synchronization overhead that no openmp project doesn't have. Hope someone can expand the reason more? Thanks 回答1: While there is some overhead at runtime from using OpenMP even with only one thread, the more important issue is likely to be that the code transformations that the