Help with compilation

I am having problem with nvcc compilation on my Windows 7 64 bits. I have both installed CUDA 32 bits and 64 bits, but it seems the SO just take the CUDA 64bits path when I try to compile a CUDA file. When I manually type the full path of CUDA 32 bits I got a successful compilation, but when I put the same PATH on the system PATH the SO just choose the 64 bits nvcc path that is almos in the finish of system PATH. I placed a txt file as attachment where I’ve describe the steps that I made.

any help is very appreciated

Thanks beforehand for everyone


I don’t know why, but I think my txt file has not attached to the message.

Because of that I’ve transcribed the file contents below

1º I echoed the system path

C:\Users\Eduard\Desktop\projetos\CUDA project>echo %PATH%

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files

(x86)\Microsoft Visual Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual

 Studio 9.0\Common7\Tools;...

-----------------------------------------------------------------------

2º after, I put the path for the CUDA 32 bits in the system path and echoed the results

set CUDA_PATH=C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v3.2\;

C:\Users\Eduard\Desktop\projetos\CUDA project>set PATH=%CUDA_PATH%;%PATH%

C:\Users\Eduard\Desktop\projetos\CUDA project>echo %PATH%

C:\Program Files (x86)\NVIDIA GPU Computing Toolkit\CUDA\v3.2\;C:\Program Files

(x86)\Microsoft Visual Studio 9.0\Common7\IDE;C:\Program Files (x86)\Microsoft V

isual Studio 9.0\VC\BIN;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Commo

n7\Tools;...

C:\Users\Eduard\Desktop\projetos\CUDA project>nvcc main.cpp special.cu

nvcc fatal   : Visual Studio configuration file '(null)' could not be found for

installation at 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN/../..

'

3º I have tested what I did and everything succeded, with nvcc generating a.exe

C:\Users\Eduard\Desktop\projetos\CUDA project>"C:\Program Files (x86)\NVIDIA GPU

 Computing Toolkit\CUDA\v3.2\bin\nvcc.exe" main.cpp special.cu

main.cpp

special.cu

tmpxft_00000980_00000000-3_special.cudafe1.gpu

tmpxft_00000980_00000000-9_special.cudafe2.gpu

special.cu

tmpxft_00000980_00000000-3_special.cudafe1.cpp

tmpxft_00000980_00000000-15_special.ii

C:\Users\Eduard\Desktop\projetos\CUDA project>dir

 O volume na unidade C é Win 7

 O Número de Série do Volume é F8A1-BE86

Pasta de C:\Users\Eduard\Desktop\projetos\CUDA project

06/02/2011  11:55    <DIR>          .

06/02/2011  11:55    <DIR>          ..

06/02/2011  12:05            69.632 a.exe

(other paths ommited)

4º One more try and some observations...

The ellipsis represents another paths that I have ommited

One of them is the path of CUDA 64 bits installation

Though I don't have an edition of MSVC 64 bits

But in my knowledge the SO takes the first executable that 

matches on the PATH, but in some way it was using the 

path of CUDA 64. 

I've tried include the CUDA 32 bin path like my first entry in PATH, but

it didn't have succeeded:

C:\Users\Eduard\Desktop\projetos\CUDA project>set PATH=%CUDA_PATH%\bin%;%PATH%

C:\Users\Eduard\Desktop\projetos\CUDA project>nvcc

nvcc fatal   : No input files specified; use option --help for more information

C:\Users\Eduard\Desktop\projetos\CUDA project>nvcc main.cpp

nvcc fatal   : Visual Studio configuration file '(null)' could not be found for

installation at 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN/../.

'

Does somewhere have any idea about like I can compile the code without I always need

to type the entire path on the process?