Intel C ++ Composer和CUDA [英] Intel C++ Composer and CUDA

查看:125
本文介绍了Intel C ++ Composer和CUDA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VisualStudio2008中创建一个默认CUDA项目。它适用于MS编译器。当我尝试英特尔C ++ Composer,它失败如下所示:

I create a default CUDA project in VisualStudio2008. It works OK for the MS compiler. When I try the Intel C++ Composer, it fails as showed in the following:

1>------ Rebuild All started: Project: testCUDA, Configuration: Debug Win32 ------
1>Deleting intermediate files and output files for project 'testCUDA', configuration 'Debug|Win32'.
1>Compiling with CUDA Build Rule... (Microsoft VC++ Environment)
1>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\\bin\nvcc.exe"  -G   -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\"  --machine 32 -ccbin "D:\Microsoft Visual Studio 9\VC\bin"    -Xcompiler "/EHsc /W3 /nologo /O2 /Zi  /MT  "  -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.0\\include" -maxrregcount=0   --compile -o "Debug/kernel.cu.obj" kernel.cu  
1>nvcc : fatal error : A single input file is required for a non-link phase when an outputfile is specified
1>Project testCUDA : error: A tool returned an error code from "Compiling with CUDA Build Rule..."
1>Build log was saved at "file://C:\Users\JSC\Documents\Visual Studio 2008\Projects\testCUDA\testCUDA\Debug\BuildLog.htm"
1>testCUDA - 2 error(s), 0 warning(s), 0 remark(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

我的平台是win7(32位),CUDA5.0。我使用版本为11.1到Composer XE 2011的Intel C ++编译器,甚至是Composer XE 2013.所有版本的Intel C ++编译器都将提供错误信息。

My platform is win7(32bit) with CUDA5.0. I use the Intel C++ compiler with version form 11.1 to Composer XE 2011 and even Composer XE 2013. All the versions of Intel C++ compiler will provide the error information.

您的帮助将非常感谢!

推荐答案

CUDA 5.0发行说明 ,在Windows上只支持Visual C ++ 9.0 / 10.0编译器。

As explained in The CUDA 5.0 Release Notes, on Windows only Visual C++ 9.0/10.0 compilers are supported.

在Linux上仅支持GCC(请参阅上面的特定版本链接)。

On Linux only GCC is supported (see the link above for specific versions).

这篇关于Intel C ++ Composer和CUDA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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