简体   繁体   English

如何在Qt Creator中使用英特尔C ++编译器

[英]How to use Intel C++ Compiler with Qt Creator

I am writing a program wherein i will need to do a stupendous number of numerical calculations. 我正在编写一个程序,其中我将需要进行大量的数值计算。 But since I am developing the front end of the program in Qt Creator, I have as yet been dealing with MinGW. 但是因为我在Qt Creator中开发程序的前端,所以我还在处理MinGW。

As such, is there any way to integrate or use the Intel C++ Compiler with QT Creator? 因此,有没有办法将英特尔C ++编译器与QT Creator集成或使用?

Currently using IC++ 11.0 and QtCreator 1.2.1 目前使用IC ++ 11.0和QtCreator 1.2.1

I think so but you need to rebuild / reconfigure Qt Creator as documented in the Deploying an Application on Windows section. 我想是这样,但您需要重建/重新配置Qt Creator,如在Windows上部署应用程序部分中所述。 And looking into the mkspecs directory, I see 'win32-icc' which is probably what you need. 并查看mkspecs目录,我看到'win32-icc'可能就是你所需要的。

Edit: To clarify, you may need the whole 'SDK' rather than just the creator, and you need to then re-configure Qt within qt/ directoty of the SDK file tree using 编辑:为了澄清,您可能需要整个'SDK'而不仅仅是创建者,然后您需要在SDK文件树的qt/ directoty中重新配置Qt

configure -platform win32-icc

plus whatever other options you may need. 加上你可能需要的任何其他选择。 It also takes a little while to build this, and as icc isn't know for its compilation speed you may want to give this a couple of hours to a day. 构建它也需要一点时间,因为icc不知道它的编译速度,你可能想要花费几个小时到一天。

If you're concerned about compiler performance for some of your code but want to use a development tool that doesn't integrate with your desired compiler, isn't the saner answer to use the Intel compiler to generate a DLL called by your Qt program? 如果您担心某些代码的编译器性能但想要使用未与所需编译器集成的开发工具,那么使用英特尔编译器生成由Qt程序调用的DLL并不是更好的答案?

And as with all performance question: have you benchmarked your code to be sure that the compiler optimization is actually the limit? 与所有性能问题一样:您是否对代码进行了基准测试以确保编译器优化实际上是限制? Have you investigated other options, like a hardware upgrade or some targetted assembly code? 您是否调查过其他选项,例如硬件升级或某些目标汇编代码? Whacking at an unmeasured performance problem by changing tools usually just leads to wasted work. 通过更换工具来解决无法测量的性能问题通常只会导致工作浪费。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM