I get no multithreading when compiling for release

2019-09-17 11:23发布

问题:

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.