【问题标题】:Intel C++ Composer and CUDA英特尔 C++ Composer 和 CUDA
【发布时间】:2012-12-10 20:36:14
【问题描述】:

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

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(32bit) CUDA5.0。我使用版本 11.1 到 Composer XE 2011 甚至 Composer XE 2013 的 Intel C++ 编译器。所有版本的 Intel C++ 编译器都会提供错误信息。

我们将非常感谢您的帮助!

【问题讨论】:

标签: cuda icc


【解决方案1】:

The CUDA 5.0 Release Notes 中所述,在 Windows 上仅支持 Visual C++ 9.0/10.0 编译器。

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-02-27
    • 1970-01-01
    相关资源
    最近更新 更多