问题
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