Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

ICC with CUDA "Compatible" issue again

happyfish
Beginner
418 Views
Hi,

I have aCUDA project whichuse Build Rule files.
If I compile it with Visual Studio 2008 all works fine, no error occured.
If I convert the project to use it with ICC, it will converted sucessful.

I have checked previous posts: Michael and Mark Sabahi's article about the trick:

1. http://software.intel.com/en-us/forums/showthread.php?t=68567

2. http://software.intel.com/en-us/articles/error-value-expected-a-number-when-compiling-the-cuda-milkway-project/#comment-54363

so, I followed the exact step:

Switch="-maxrregcount=[Value]"

and changed it to

Switch="-maxrregcount=[value]"


Platform: win7 64bit, VS 2008 64bit-Release mode, Intel c++ compiler, cuda 3.2

Still, If I now compile with ICC I get following error:


1>------ Rebuild All started: Project: LocalizationOpt, Configuration: Release x64 ------
1>Deleting intermediate files and output files for project 'LocalizationOpt', configuration 'Release|x64'.
1>Compiling with CUDA Build Rule... (Microsoft VC++ Environment)
1>"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv3.2\\binnvcc.exe" -G0 -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" --machine 64 -ccbin "c:Program Files (x86)Microsoft Visual Studio 9.0VCbin" -D_NEXUS_DEBUG -g -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT "


-I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv3.2\\include" -maxrregcount=[Value] --compile -o "x64Release/comput.cu.obj" comput.cu
1>nvcc fatal : '[Value]': expected a number
1>Project LocalizationOpt : error: A tool returned an error code from "Compiling with CUDA Build Rule..."



1>LocalizationOpt - 1 error(s), 0 warning(s), 0 remark(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


it seems that i didn't change the "Value" to "value", but, I actually did that. i'm confused???


Your help is appreciated, and your guys are great! badly need your help!


0 Kudos
2 Replies
Mark_S_Intel1
Employee
418 Views

The workaround was tried on a small test case, and confirmed by Heinz who originally posted this problem at http://software.intel.com/en-us/forums/showthread.php?t=78034&o=d&s=lr&wapkw=%28milkyway%29. This issue will be fixed in the next compiler update. In the mean time I can send you a patch (tested by Heinz andconfirmed to work) that may resolve your issue.

--mark

0 Kudos
Mark_S_Intel1
Employee
418 Views
Quoting happyfish
>>Hi mark,

>> First, very appreciate for your help!
>>after following your instructions with CompilerIDEPluginUpdate.zip. now, I confirmed that everything >>works fine!

>> as i said before, you guys are great!

>> many thanks to your great efforts.



[mark] I'm glad the patch resolved the problem !

--mark
0 Kudos
Reply