VS 2010 Integration Problems creating a new cuda project in VS 2010
Hi

I'm using VS 2010 and it was installed on WinXP before I installed the CUDA toolkit and sdk.

I've followed instructions about creating a new project at:

http://stackoverflow.com/questions/3778799/how-do-i-start-a-cuda-app-in-visual-studio-2010

but can't seem to create a new cuda project correctly.

I've checked that files are in both of the following:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCProjectDefaults

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations

I've also updated the .props and .targets further to the following patch;

http://developer.download.nvidia.com/compute/cuda/4_0/BuildCustomizationUpdate/CUDA4_0BuildCustomizationFix.zip

What I don't understand is when I open and run the vectoradd sample I see a "CUDA C/C++" in the project properties dialog on the left hand side. However, if a create a new empty project and select the build customizations I never get to see this "CUDA C/C++" properties treee node for the new project?

Also, if I select the cuda build customization for a new project then project properties tree disappears.

When installing the Toolkit I did a complete installation.

I've done everything as described in the Setup guide for Win but VS Integration is not correct.

Does nayone know what's wrong.

Graham
Hi



I'm using VS 2010 and it was installed on WinXP before I installed the CUDA toolkit and sdk.



I've followed instructions about creating a new project at:



http://stackoverflow.com/questions/3778799/how-do-i-start-a-cuda-app-in-visual-studio-2010



but can't seem to create a new cuda project correctly.



I've checked that files are in both of the following:



C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCProjectDefaults



C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations



I've also updated the .props and .targets further to the following patch;



http://developer.download.nvidia.com/compute/cuda/4_0/BuildCustomizationUpdate/CUDA4_0BuildCustomizationFix.zip



What I don't understand is when I open and run the vectoradd sample I see a "CUDA C/C++" in the project properties dialog on the left hand side. However, if a create a new empty project and select the build customizations I never get to see this "CUDA C/C++" properties treee node for the new project?



Also, if I select the cuda build customization for a new project then project properties tree disappears.



When installing the Toolkit I did a complete installation.



I've done everything as described in the Setup guide for Win but VS Integration is not correct.



Does nayone know what's wrong.



Graham

#1
Posted 01/17/2012 01:52 PM   
[quote name='gmseed0' date='17 January 2012 - 09:52 AM' timestamp='1326808379' post='1357080']
Hi

I'm using VS 2010 and it was installed on WinXP before I installed the CUDA toolkit and sdk.

I've followed instructions about creating a new project at:

http://stackoverflow.com/questions/3778799/how-do-i-start-a-cuda-app-in-visual-studio-2010

but can't seem to create a new cuda project correctly.

I've checked that files are in both of the following:

C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCProjectDefaults

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations

I've also updated the .props and .targets further to the following patch;

http://developer.download.nvidia.com/compute/cuda/4_0/BuildCustomizationUpdate/CUDA4_0BuildCustomizationFix.zip

What I don't understand is when I open and run the vectoradd sample I see a "CUDA C/C++" in the project properties dialog on the left hand side. However, if a create a new empty project and select the build customizations I never get to see this "CUDA C/C++" properties treee node for the new project?

Also, if I select the cuda build customization for a new project then project properties tree disappears.

When installing the Toolkit I did a complete installation.

I've done everything as described in the Setup guide for Win but VS Integration is not correct.

Does nayone know what's wrong.

Graham
[/quote]
[quote name='gmseed0' date='17 January 2012 - 09:52 AM' timestamp='1326808379' post='1357080']

Hi



I'm using VS 2010 and it was installed on WinXP before I installed the CUDA toolkit and sdk.



I've followed instructions about creating a new project at:



http://stackoverflow.com/questions/3778799/how-do-i-start-a-cuda-app-in-visual-studio-2010



but can't seem to create a new cuda project correctly.



I've checked that files are in both of the following:



C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\VCProjectDefaults



C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations



I've also updated the .props and .targets further to the following patch;



http://developer.download.nvidia.com/compute/cuda/4_0/BuildCustomizationUpdate/CUDA4_0BuildCustomizationFix.zip



What I don't understand is when I open and run the vectoradd sample I see a "CUDA C/C++" in the project properties dialog on the left hand side. However, if a create a new empty project and select the build customizations I never get to see this "CUDA C/C++" properties treee node for the new project?



Also, if I select the cuda build customization for a new project then project properties tree disappears.



When installing the Toolkit I did a complete installation.



I've done everything as described in the Setup guide for Win but VS Integration is not correct.



Does nayone know what's wrong.



Graham

bojrab

#2
Posted 03/07/2012 03:26 AM   
I ran across this issue while setting up a new VC++ project, and it stumped me for a few minutes, until I realized what was going on. Once you patch the .targets, add the CUDA build customizations and a .cu file. If the "CUDA C/C++" menu doesn't appear in the Project->Properties->Configuration Properties page, RMB the .cu file in the Solution Explorer and go to properties. Under the General tab, select "CUDA C/C++" from the "Item Type" menu. This will make the menu appear, so you can build the file and change the build settings.
I ran across this issue while setting up a new VC++ project, and it stumped me for a few minutes, until I realized what was going on. Once you patch the .targets, add the CUDA build customizations and a .cu file. If the "CUDA C/C++" menu doesn't appear in the Project->Properties->Configuration Properties page, RMB the .cu file in the Solution Explorer and go to properties. Under the General tab, select "CUDA C/C++" from the "Item Type" menu. This will make the menu appear, so you can build the file and change the build settings.

bojrab

#3
Posted 03/07/2012 03:37 AM   
Scroll To Top