THE MOMENT, THE MEMENTO

2008年05月9日

MS Visual Studio 与Intel C++ Compiler对 OpenMP的支持比较

标签:, , — 吴德文 @ 11:23

环境:操作系统-Windows XP SP2 CHS;MS Visual Studio 2005 Team Suite CHS;MS Visual Studio 2008 Team Suite; Intel C++ Compiler 10.1.021。

Intel C++ Compiler只要加入编译参数就可以支持OpenMP,仅仅使用了OpenMP的一些API调用的时候,才需要include omp.h;而MS Vistual Studio支持OpenMP的时候,除了要加入编译参数,源代码还必须include omp.h,否则执行的时候会出错。对于MS VS 2005,是提示“没有找到vcomp.dll,因此这个应用程序未能启动。重新安装应用程序可能会修复此问题”;而对于MS VS 2008 则提示的是“VCOMP90.dll”,其实这些DLL在redist目录下都能找到,就是不知道MS为什么非要加上omp.h后才能去找到。

 此外使用集成在MS VS 2008里的Intel C++ Compiler编译代码的话,如果没有omp.h,执行还会出现找不到libgguide40.dll(记得不大清楚了)文件。

 也正是如此,才迫使我卸载掉MS VS 2008,重新使用2005。


Related:

评论暂缺 »

还没有任何评论。

这篇文章上的评论 RSS feed TrackBack URI

留下评论

You must be logged in to post a comment.

Valid XHTML 1.1 Valid CSS! Creative Commons License WordPress 所驱动