Intel C++ Composer и CUDA

Я создаю проект CUDA по умолчанию в VisualStudio2008. Он работает нормально для компилятора 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 (32-битная) с CUDA5.0. Я использую компилятор Intel C++ версии 11.1 для Composer XE 2011 и даже Composer XE 2013. Все версии компилятора Intel C++ предоставляют информацию об ошибках.

Ваша помощь будет высоко оценена!


person jsc0218    schedule 10.12.2012    source источник
comment
Согласно примечаниям к выпуску CUDA 5.0, компилятор ICC 12.1 поддерживается в 64-разрядной версии Linux: developer.download.nvidia.com/compute/cuda/5_0/rel/docs/   -  person njuffa    schedule 10.12.2012


Ответы (1)


Как поясняется в примечаниях к выпуску CUDA 5.0, в Windows поддерживаются только компиляторы Visual C++ 9.0/10.0.

В Linux поддерживается только GCC (конкретные версии см. по ссылке выше).

person harrism    schedule 10.12.2012