I get no multithreading when compiling for release mode

时间秒杀一切 提交于 2020-01-07 07:24:09

问题


I am programming a matrix-matrix multiplication using the Eigen library in VS2010. When I run in debug mode the application uses all my CPU, but when I run in release mode it uses only 1 thread. Is there a setting I need to change in order to enable multi-threading?


回答1:


This is so silly but i never enabled openMP for RELEASE mode in properties configuration even though i thought i did.



来源:https://stackoverflow.com/questions/10517243/i-get-no-multithreading-when-compiling-for-release-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!