tuning your cumputer to CUDA on vista 64

This is short tutorial for enable the CUDA compilation in vista 64.

You need:

0.- Assuming you are using Vista 64-bits

1.- A CUDA-enable hardware. If your videocard appears in the following list http://wwwn.nvidia.com/object/cuda_learn_products.html you can run CUDA.

2.- Installation of CUDA software:

[indent]

    CUDA DRIVER 64 bits. In some PCs, it’s already installed then if you try to reinstall the software an error occurs.

    Check before if you have the driver installed in: CONTROL PANEL>NVIDA CONTROL PANEL>HELP>System Information>Components> You should have a notification of the CUDA driver and its version.

    CUDA Toolkit for Vista 64-bit ( it is the C compiler for CUDA)

    CUDA SDK for Vista 64-bit ( some code samples)

 All these packages can be downloaded from <a target='_blank' rel='noopener noreferrer' href='"http://www.nvidia.com/object/cuda_get.html"'>http://www.nvidia.com/object/cuda_get.html</a>. Install them.

[/indent]

  1. Visual Studio 2008. [indent]No the express version. I started using the free Express version but it doesn’t work in compilations of 64-bits.

You must purchase VS2008 by 199 Dlls. or try the evaluation of VS2008 profesional for 90 days and after that get a original serial.

You can download this evaluation version from Visual Studio 2008 Profesional [3.47 Gbytes]. Is important install its 64-bits compiler. Then Install all C++ components of VS2008. [/indent]

Well, after many hours of downloads and installations you must be able of run the some compilated samples from

[indent]C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\bin\win64\Release[/indent]

Run deviceQuery.exe for assesing the CUDA capability. If the second line in the window say that your support CUDA, you are still in the way!!!.

Before to want write some CUDA code, try to compile some of the SDK code samples to learn how correctly use VS.

[indent] i.-Open the proyect file of the deviceQuery sample program, in the folder

C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\deviceQuery.

Choose the file with sufix _VC90.SLN, it’s for the 2008 version.[/indent]

[indent]ii.-In the left window (Solution Explorer) rigth-click on deviceQuery and click properties. Modify the following parameters.

[indent]configuration propierties>linker>input>aditional dependences = cudart.lib cutil64D.lib

configuration propierties>linker>avanzadas>equipo destino = /MACHINE:X64 “I dont remember the path in the US version of VS2008, use your common sense”

configuration propierties>CUDA build rule>general>Emulation mode =no.[/indent][/indent]

[indent] iii.- The last trick was contributed by Rafael Ontivero in a MSDN forum.

[indent] "[i]Tienes que cambiar el tipo de proyecto a 64 bits dentro de visual studio.

Para ello vete a “Build -> Configuration Manager” y create una nueva configuración de 64 bits.[/i]"

[/indent] Change the proyect configuration. In menu Build > Configuration Manager, change to X64 plataform. [/indent]

You must be careful with the proyect configuration that is set in “debug” if you change this, you have to change to the correct aditional 64-bits dependence.

Read the chapter 3, section “sample projects” of CUDA Getting Started Documentation to know which libraries correspond in each case.

Finally build the executable pressing ctrl+alt+f7.

and run it ctrl+f5

Saludos :teehee:

Jacobo Salazar Torres

Exactly what i have been looking for!

Ty my friend!