openMP is not creating threads in visual studio

后端 未结 4 1923
旧时难觅i
旧时难觅i 2020-12-06 16:26

My openMP version did not give any speed boost. I have a dual core machine and the CPU usage is always 50%. So I tried the sample program given in Wiki. Looks like the openM

4条回答
  •  执念已碎
    2020-12-06 17:19

    As mentioned here, http://docs.oracle.com/cd/E19422-01/819-3694/5_compiling.html I got it working by setting the environment variable OMP_DYNAMIC to FALSE

提交回复
热议问题