Does OpenMP work in an MFC application?

I would like to improve the performance of our parallel processing MFC application. Of course, I searched for OpenMP and MFC over the Internet. Most posts are about fighting OpenMP integration in an MFC application. This led to this issue.

Can I use OpenMP for an MFC application?

UPDATE: It seems that Currency Runtime can do what OpenMP does for MFC. But I would still like to make sure of this issue.

+1
source share
1 answer

I see no reason why MFC should stop you using openMP.

Although OMP is generally best suited for small, bulk-based procedures that perform multiple operations in a loop. You probably should not select and destroy MFC objects in a parallel loop, you also need to be attentive to any MFC operations without threads.

And read 32 OpenMP Traps for C ++ developers it is very easy to make a small mistake and not work OMP

+5
source

Source: https://habr.com/ru/post/1387116/


All Articles