OpenMP在MFC应用程序中工作吗? [英] Does OpenMP work in a MFC application?

查看:514
本文介绍了OpenMP在MFC应用程序中工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过并行处理提高我们的MFC应用程序的性能。当然,我通过互联网搜索OpenMP和MFC。大多数帖子是关于努力将OpenMP集成到MFC应用程序。这导致了这个问题。

I would like to improve performance of our MFC application with parallel processing. Of course, I've searched OpenMP and MFC over internet. Most of posts are about struggling with integrating OpenMP into MFC app. That led this question.

是否可以为MFC应用程序使用OpenMP?

Is it possible to use OpenMP for a MFC application?

更新:似乎货币运行时可以做什么OpenMP对MFC。

UPDATE: It seems that Currency Runtime can do what OpenMP does for MFC. But I would like to still make sure about the question above.

推荐答案

我看不到任何原因,为什么MFC会阻止你使用openMP。

I can't see any reason why MFC should stop you using openMP.

虽然OMP通常最适合在循环中执行几个操作的小型optomizable例程。您可能不应该在并行循环中分配和销毁MFC对象,您还需要小心任何非线程安全的MFC操作。

Although OMP generally works best for small optomised routines performing a few operations in a loop. You probably shouldn't be allocating and destroying MFC objects in a paralleled loop, you also need to be careful of any non-thread safe MFC operations.

然后阅读 32 OpenMP陷阱对于C ++开发人员这是很容易犯一个小错误,并有OMP不工作

And read 32 OpenMP Traps For C++ Developers it's very easy to make a small mistake and have OMP not work

这篇关于OpenMP在MFC应用程序中工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆