如何在Visual Studio中指定Intel C ++编译器icl作为CUDA项目的主机编译器 [英] How to specify Intel C++ compiler icl as host compiler of a CUDA project in Visual Studio

查看:709
本文介绍了如何在Visual Studio中指定Intel C ++编译器icl作为CUDA项目的主机编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在visual studio的CUDA项目的项目属性页面中,似乎有自定义主机编译器的选项。但是在选择intel C ++编译器后,-ccbin选项仍然指向cl.exe。

In the project properties page of CUDA project in visual studio, there seems to be the option to custom the host compiler. But after I selected the intel C++ compiler, the -ccbin option still points to the cl.exe.

选择intel C ++编译器作为平台工具集

-ccbin选项仍指向cl.exe

我明白在Windows环境下,CUDA项目的默认主机编译器是cl.exe,并且以下帖子确认cl.exe是windwos上唯一的选项。但这些都是前一段时间,我想再问一次,如果这仍然是这样,或者我们现在使用不同的主机编译器?

I do understand that under windows environment, the default host compiler for CUDA project is cl.exe and the following posts confirmed that cl.exe was the only option on windwos. But these were quite some time ago, I'd like to ask again if this is still the case or we use a different host compiler now?

Intel C ++ Composer和CUDA

指定编译器NVCC用于编译主机代码

推荐答案

仍然如此。唯一支持的环境列在安装中窗口指南。未列出intel编译器。

It's still the case. The only supported environments are listed in the installation guide for windows. The intel compiler is not listed.

相比之下, linux安装指南表明主机编译器支持特定版本的intel编译器(ICC)。

By comparison, the corresponding section of the linux installation guide shows that a certain version of the intel compiler (ICC) is supported for the host compiler.

以后,您应该可以参考用新版CUDA工具包发布的相应文档来确定编译器支持。

In the future, you should be able to refer to the corresponding documents published with newer CUDA toolkits to determine compiler support.

这篇关于如何在Visual Studio中指定Intel C ++编译器icl作为CUDA项目的主机编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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