Cuda 4.1 with VS2008


I am trying to create a 64bit app using the VS2008. I select CUDA4.1 Runtime, but the empty solution it creates is 32bit only. What do I need to do to create a 64 bit CUDA app?

For this you have to change the Configuration as x64. By default the configuration will be Win32 which is 32 bit. For changing this
Click Project -> Properties -> Configuration Manager
From this Click New from the Active Solution Platform combo box
Select New Platform as x64 from the combo.
Click OK. Rest other settings has to be remain as such

Select Project Properties Page. Expand CUDA Runtime API tree. Select Host. Select Target Machine Platform as x64

After that when you build the application, it will be in 64 bit