Cannot compile bandwithTest (and others) With Win 7 x32 and vs2008
Hi all!

I just installed, following the instructions on the CUDA_C_Getting_Started_Windows.pdf, Cuda Toolkit & GPU Computing SDK 4.0
All went good and indeed i can run both NVCC - V and all samples getting the expected output.

The problem is that when i open the .sln (vs2008 one) and i try to compile it, i get these errors:

[quote]1>------ Inizio compilazione: Progetto: bandwidthTest, Configurazione: Debug Win32 ------
1>Compiling with CUDA Build Rule...
1>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --machine 32 -ccbin "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0/include" -I"./" -I"../../common/inc" -I"../../../shared/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include" -maxrregcount=0 --compile -o "Debug/bandwidthTest.cu.obj" bandwidthTest.cu
1>bandwidthTest.cu
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(121): error: identifier "__inline__" is undefined
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(121): error: "__host__" is not a function or static data member
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(121): error: expected a ";"
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(64): error: identifier "NULL" is undefined
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(71): error: identifier "testMode" is undefined
1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(91): error: identifier "shrQAStart" is undefined

etc...

1>Error limit reached.
1>100 errors detected in the compilation of "C:/Users/Stefano/AppData/Local/Temp/tmpxft_000012d4_00000000-8_bandwidthTest.compute_20.cpp1.ii".
1>Compilation terminated.
1>Project : error PRJ0019: Uno strumento ha restituito un codice di errore da "Compiling with CUDA Build Rule..."
1>Il log di compilazione è stato salvato in 'file://c:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest\Debug\BuildLog.htm'
1>bandwidthTest - 101 errore/i, 0 avviso/i
========== Compilazione: 0 completate, 1 non riuscite, 0 aggiornate, 0 ignorate ==========
[/quote]

I tried many times reinstalling all but still happens.

Can someone help me? It is really important because it's for my IT thesis...
Thank you very much
Hi all!



I just installed, following the instructions on the CUDA_C_Getting_Started_Windows.pdf, Cuda Toolkit & GPU Computing SDK 4.0

All went good and indeed i can run both NVCC - V and all samples getting the expected output.



The problem is that when i open the .sln (vs2008 one) and i try to compile it, i get these errors:



1>------ Inizio compilazione: Progetto: bandwidthTest, Configurazione: Debug Win32 ------

1>Compiling with CUDA Build Rule...

1>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\nvcc.exe" -gencode=arch=compute_10,code=\"sm_10,compute_10\" -gencode=arch=compute_20,code=\"sm_20,compute_20\" --machine 32 -ccbin "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0/include" -I"./" -I"../../common/inc" -I"../../../shared/inc" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\include" -maxrregcount=0 --compile -o "Debug/bandwidthTest.cu.obj" bandwidthTest.cu

1>bandwidthTest.cu

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(121): error: identifier "__inline__" is undefined

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(121): error: "__host__" is not a function or static data member

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(121): error: expected a ";"

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(64): error: identifier "NULL" is undefined

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(71): error: identifier "testMode" is undefined

1>C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\sal.h(91): error: identifier "shrQAStart" is undefined



etc...



1>Error limit reached.

1>100 errors detected in the compilation of "C:/Users/Stefano/AppData/Local/Temp/tmpxft_000012d4_00000000-8_bandwidthTest.compute_20.cpp1.ii".

1>Compilation terminated.

1>Project : error PRJ0019: Uno strumento ha restituito un codice di errore da "Compiling with CUDA Build Rule..."

1>Il log di compilazione è stato salvato in 'file://c:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.0\C\src\bandwidthTest\Debug\BuildLog.htm'

1>bandwidthTest - 101 errore/i, 0 avviso/i

========== Compilazione: 0 completate, 1 non riuscite, 0 aggiornate, 0 ignorate ==========





I tried many times reinstalling all but still happens.



Can someone help me? It is really important because it's for my IT thesis...

Thank you very much

#1
Posted 10/07/2011 11:08 AM   
Scroll To Top