Hi,
I have aCUDA project(milkyway) whichuse Build Rule files.
If I compile it with Visual Studio 2008 all works fine, no error occured.
If I now convert the project to use it with ICC, it will converted sucessful.
If I now compile with ICC I get following error:
1>------ Neues Erstellen gestartet: Projekt: milkyway, Konfiguration: Release Win32 ------
1>Deleting intermediate files and output files for project 'milkyway', configuration 'Release|Win32'.
1>Compiling with CUDA Build Rule... (Microsoft VC++ Environment)
1>D:\\I\\NVIDIA\\CUDA\\CUDA32_SDK\\v3.2\\\\bin\\nvcc.exe" -DDOUBLE_PRECISION -m32 -arch sm_13 -ccbin "C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin" -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -I"D:\\I\\NVIDIA\\CUDA\\CUDA32_SDK\\C\\common\\inc" -I"E:\\I\\SC\\mw_gpu_v0.24\\milkyway\\bin\\\\boinc" -maxrregcount=[Value] --compile -o "Release\\evaluation_gpu6.cu.obj" "e:\\I\\SC\\mw_gpu_v0.24\\milkyway\\astronomy_gpu\\evaluation_gpu6.cu"
1>
1>nvc fatal : '[Value]': expected a number
1>Project milkyway : error: A tool returned an error code from "Compiling with CUDA Build Rule..."
1>Build log was saved at "file://E:\\I\\SC\\mw_gpu_v0.24\\milkyway\\bin\\Release\\BuildLog.htm"
1>milkyway - 1 error(s), 0 warning(s)
========== Alles neu erstellen: 0 erfolgreich, Fehler bei 1, 0 bersprungen ==========
if we compare both generated lineswe see:
MSC
1>Compiling with CUDA Build Rule...
1>"D:\\I\\NVIDIA\\CUDA\\CUDA32_SDK\\v3.2\\\\bin\\nvcc.exe" -DDOUBLE_PRECISION -m32 -arch sm_13 -ccbin "C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin" -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -I"D:\\I\\NVIDIA\\CUDA\\CUDA32_SDK\\C\\common\\inc" -I"e:\\I\\SC\\mw_gpu_v0.24\\milkyway\\bin\\\\boinc" -maxrregcount=64 --compile -o "Release\\evaluation_gpu6.cu.obj" "e:\\I\\SC\\mw_gpu_v0.24\\milkyway\\astronomy_gpu\\evaluation_gpu6.cu"
ICC
1>Compiling with CUDA Build Rule... (Microsoft VC++ Environment)
1>D:\\I\\NVIDIA\\CUDA\\CUDA32_SDK\\v3.2\\\\bin\\nvcc.exe" -DDOUBLE_PRECISION -m32 -arch sm_13 -ccbin "C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin" -Xcompiler "/EHsc /W3 /nologo /O2 /Zi /MT " -I"D:\\I\\NVIDIA\\CUDA\\CUDA32_SDK\\C\\common\\inc" -I"E:\\I\\SC\\mw_gpu_v0.24\\milkyway\\bin\\\\boinc" -maxrregcount=[Value] --compile -o "Release\\evaluation_gpu6.cu.obj" "e:\\I\\SC\\mw_gpu_v0.24\\milkyway\\astronomy_gpu\\evaluation_gpu6.cu"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
we are missing aquote at the beginning of the line 1>D:\\I\\NVIDIA..., and -maxrregcount get no value
I believe this is a error in the compiler partthat generate the line and insert the value.
Astropulse is open source, you can download and compile it with ICC to reproduce the error.
Your help is appreciated
heinz




