Ok
Then, first of all I put my Enviorment Variable:
32 bit platform
;***********************************************
CUDA_BIN_PATH = C:\CUDA\bin
CUDA_INC_PATH = C:\CUDA\include
CUDA_LIB_PATH = C:\CUDA\lib
NVSDKCUDA_ROOT = C:\Program Files (x86)\NVIDIA Corporation\NVIDIA CUDA SDK
64 bit platform
;***********************************************
CUDA_BIN_PATH_64 = C:\CUDA_64\bin
CUDA_INC_PATH_64 = C:\CUDA_64\include
CUDA_LIB_PATH_64 = C:\CUDA_64\lib
NVSDKCUDA_ROOT_64 = C:\Program Files (x86)\NVIDIA Corporation\NVIDIA CUDA SDK 64
My Path: C:\PROGRA~2\Borland\CBUILD~1\Bin;C:\PROGRA~2\Borland\CBUILD~1\Projects\Bpl;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Python25;C:\CUDA\bin
To follow a video that I found by Internet I copy the sample deviceQuery form the DSK 64 and copy all the director
Now, the test proyect is lacate in this address:
C:\Borrar\deviceQuery
Into the VS2005
File DeviceQuery.cu => Property => Custom Build Step => General
Command line= “$(CUDA_BIN_PATH_64)\nvcc.exe” -ccbin “$(VCInstallDir)bin” -c -D_DEBUG -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/Od,/Zi,/RTC1,/MTd -I"$(CUDA_INC_PATH_64)" -I./ -I"$(NVSDKCUDA_ROOT_64)common/inc" -o $(ConfigurationName)\deviceQuery.obj deviceQuery.cu
In this step I don’t sure whether the Variable -DWIN32 must be keep or not.
In DeviceQuery => Property => Linker => General
Output File = $(ConfigurationName)/deviceQuery.exe
Additional Library Directories = $(CUDA_LIB_PATH_64);$(NVSDKCUDA_ROOT_64)/common/lib
In DeviceQuery => Property => Linker => Input
Additional Dependence = cudart.lib cutil64D.lib ; <= I changed cutil32D.lib for cutil64D.lib
If In the configuration Management I change the platfor to x64 it is imposible to reopen the property windows for DeviceQuery and deviceQuery.cu has you can see in the file attachment.
IF I try to compile with this configuration I have the next error.
1>Performing Custom Build Step
1>nvcc fatal : Visual Studio configuration file ‘(null)’ could not be found for installation at ‘C:/Program Files (x86)/Microsoft Visual Studio 8/VC/bin’
1>Linking…
1>LINK : fatal error LNK1181: cannot open input file ‘.\debug\deviceQuery.obj’
1>Build log was saved at “file://c:\Borrar\deviceQuery\Debug\BuildLog.htm”
1>deviceQuery - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I am using VS2005 Profesional Edition with SP1
Well This is my fight and currently I’m losing :(
GUAN