Getting Tools Configured on Vistax64 w/ VS2008 (from Dreamspark) Tools Help Questions

I could use some help getting my tools configured to build a one of the examples in the SDK on Vistax64 with what appears to be a 32bit VS2008 application (full VS2008 from dreamspark as I’m a student @ a University) with a GeForce280GTX.

[b]Here are the steps I have performed in order:

Downloaded VS2008 professional from dreamspark.com & Installed (this appears to be a 32-bit tool)
1.) Installed VS2008
2.) Installed MSDN
3.) Installed Service Packs Via Windows Update in Vistax64

Downloaded CUDA Driver, Toolkit, SDK Code samples
4.) Installed CUDA 2.1 Beta Driver for Vista 64-bit (180.60) (Then Rebooted)
5.) Installed CUDA Toolkit Version 2.1 for Vista
6.) Installed CUDA SDK 2.1 Beta for Vista 64-bit[/b]


I used all Default Paths!

VS2008 installed things into Default Path
C:\Program Files (x86)\Microsoft Visual Studio (only has COMMON subdirectory)
C:\Program Files (x86)\Microsoft Visual Studio 8 (has Common7, SDK, VSTA subdirectories)
C:\Program Files (x86)\Microsoft Visual Studio 9.0 (Looks like where the full VS2008 tols are installed to)
CUDA Toolkit installed to Default Path
C:\CUDA
SDK installed to Default Path
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\

Added Paths to VS2008 VC++ Directories Tools->Options->Projects and Solutions -> VC++ Directories
(The only Platform available in there was Win32)

-> Win32 -> Include Files
Added C:\CUDA\include
Added C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc
-> Win32 -> Library Files
Added C:\CUDA\lib
Added C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\common\lib

I Tried to Compile the Device Query Example deviceQuery_vc90
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\projects\deviceQuery\deviceQuery_vc90.sln
Did Build->Rebuild Solution with Debug Win32 The build log give me a fatal nvcc and fatal linking error

1>------ Rebuild All started: Project: deviceQuery, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project ‘deviceQuery’, configuration ‘Debug|Win32’
1>Compiling with CUDA Build Rule…
1>“C:\CUDA\bin\nvcc.exe” -arch sm_10 -ccbin “c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin” -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -IC:\CUDA\include -I…/…/common/inc -maxrregcount=32 --compile -o Debug\deviceQuery.cu.obj deviceQuery.cu
1>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/…/…’
1>Linking…
1>LINK : fatal error LNK1181: cannot open input file ‘cutil32D.lib’
1>Build log was saved at “file://c:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\projects\deviceQuery\Debug\BuildLog.htm”
1>deviceQuery - 1 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

If I try to Build->Rebuild Solution with Debug/EmuDebug/EmuRelease/Release with x64 as the solution platform I get:

1>------ Skipped Rebuild All: Project: deviceQuery ------
1>
========== Rebuild All: 0 succeeded, 0 failed, 1 skipped ==========

It seems to me that I have some sort of configuration mistake but I’m not sure what. The project seems to see the environment variables:

CUDA_BIN_PATH=C:\CUDA\bin
CUDA_INC_PATH=C:\CUDA\include
CUDA_LIB_PATH=C:\CUDA\lib

I attached the Build Log file for the Debug\Win32 attempt.

Can someone at least give me some ideas of what to try or where I may be going wrong…?

I have gotten this example to compile and run on Vista32 w/ VS2005 Express on a different machine using the CUDA 2.0 Driver/tools/SDK.
BuildLog.htm (19.8 KB)

As a side note: My Visual Studio About Page
Looks as though I have VS2008 V 9.0.21022.8 RTM w/ .NET V3.5

Microsoft Visual Studio 2008
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5

Installed Edition: Professional

Microsoft Visual Basic 2008 91605-140-5563045-60391
Microsoft Visual Basic 2008

Microsoft Visual C# 2008 91605-140-5563045-60391
Microsoft Visual C# 2008

Microsoft Visual C++ 2008 91605-140-5563045-60391
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office 91605-140-5563045-60391
Microsoft Visual Studio 2008 Tools for Office

Microsoft Visual Web Developer 2008 91605-140-5563045-60391
Microsoft Visual Web Developer 2008

Crystal Reports AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB944899) KB944899
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB945282) KB945282
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946040) KB946040
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946308) KB946308
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946344) KB946344
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946581) KB946581
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947171) KB947171
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947173) KB947173
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947180) KB947180
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947540) KB947540
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947789) KB947789
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB948127) KB948127
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB952241) KB952241
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/952241.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB953256) KB953256
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.

Looks Like the 1st Problem is VS2008 Default install does not install the x64 compiler/tools.

I tried to “repair / add” the features in by rerunning the installer from the DVD and got a bunch of errors:
EndOfSession [01/25/09,13:17:39] MSITOSIT: [2] ERROR processed; exception was thrown for retail build
Developer Comment: : has no associated directory, verify the Feature table is correct
Build Time: Thu Dec 11 14:04:18 2003
HRESULT: -2147467259
[01/25/09,13:17:39] Microsoft Visual Studio 2008 Professional Edition - ENU: [2] Servicing: a SubComponent failed to construct
[01/25/09,13:17:39] MSITOSIT: [2] ERROR processed; exception was thrown for retail build
Developer Comment: : has no associated directory, verify the Feature table is correct
Build Time: Thu Dec 11 14:04:18 2003
HRESULT: -2147467259
[01/25/09,13:17:39] Microsoft Visual Studio 2008 Professional Edition - ENU: [2] Servicing: a SubComponent failed to construct
[01/25/09,13:17:39] MSITOSIT: [2] ERROR processed; exception was thrown for retail build
Developer Comment: : has no associated directory, verify the Feature table is correct
Build Time: Thu Dec 11 14:04:18 2003
HRESULT: -2147467259
[01/25/09,13:17:39] Microsoft Visual Studio 2008 Professional Edition - ENU: [2] Servicing: a SubComponent failed to construct
[01/25/09,13:17:39] MSITOSIT: [2] ERROR processed; exception was thrown for retail build
Developer Comment: : has no associated directory, verify the Feature table is correct
Build Time: Thu Dec 11 14:04:18 2003
HRESULT: -2147467259
[01/25/09,13:17:39] Microsoft Visual Studio 2008 Professional Edition - ENU: [2] Servicing: a SubComponent failed to construct
EndOfSession

Turns out You Can’t “Add” any features or repair the install from the DVD installer exe file after Applying SP1 to VS2008 (which I did) You are supposed to do it from the control panel (Uninstall or change a program)…
See this Link

I’m trying to add in the 64 bit tools this way at the moment and will post back…

ELO

SUCCESS!

The Default VS2008 install does not install the x64 tools

After 2 hours an a pain in the neck getting it to unistall & reinstall & reapply the security hotfix I was successfully able to compile the deviceQuery Example.

Mostly for my future reference and those of you who may follow blindly here was the Vistax64/VS2008/CUDA2.1 installation sequence.

Here are the steps I have performed in order:

Downloaded VS2008 professional from dreamspark.com & Installed (this appears to be a 32-bit tool)
1.) Installed VS2008
MAKE SURE THAT the x64 tools are installed for VC++ - The Default install does not install them!*********
2.) Installed MSDN
3.) Installed Service Packs Via Windows Update in Vistax64

Downloaded CUDA Driver, Toolkit, SDK Code samples
4.) Installed CUDA 2.1 Beta Driver for Vista 64-bit (180.60) (Then Rebooted)
5.) Installed CUDA Toolkit Version 2.1 for Vista
6.) Installed CUDA SDK 2.1 Beta for Vista 64-bit

I used all Default Paths!
VS2008 installed things into Default Path
C:\Program Files (x86)\Microsoft Visual Studio (only has COMMON subdirectory)
C:\Program Files (x86)\Microsoft Visual Studio 8 (has Common7, SDK, VSTA subdirectories)
C:\Program Files (x86)\Microsoft Visual Studio 9.0 (Looks like where the full VS2008 tols are installed to)
CUDA Toolkit installed to Default Path
C:\CUDA
SDK installed to Default Path
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\

Added Paths to VS2008 VC++ Directories Tools->Options->Projects and Solutions -> VC++ Directories
(The only Platform available in there was Win32)
-> Win32 -> Include Files
Added C:\CUDA\include
Added C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc
-> Win32 -> Library Files
Added C:\CUDA\lib
Added C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\common\lib

You should be able to compile & RUN/DEBUG
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\projects\deviceQuery\deviceQuery_vc90.sln
Using either the DEBUG or RELEASE Solution Configuration with x64 as the Solution Platform.

NOTE: You may experience BUILD errors or BUILD Clean ERROR that are related to permissions on the projects in this CUDA path
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\projects\ -
For example my build clean could not delete the exe…

Also NOTE: The Debug executable for these projects is compiled into:
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win64\Debug
and the Release exe into:
C:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win64\Release

Best of Luck to those of you who follow!

ELO

I’m reposting so all the tool installation/config stuff is in one thread. (Mostly for my future reference :))

Final Step CUDA VS Wizard - Solution Template for CUDA Apps…
I downloaded it from source forge:
http://sourceforge.net/projects/cudavswizard

I downloaded CUDA_VS_Wizard_W64.2.0.zip since I’m on Vistax64

However I ended up with a problem with CUDA VS Wizard
Eery time I do File -> New -> Project -> Visual C++ -> CUDA64 -> CUDAWinApp
I get no solution or directory created and all I get is a error message along the bottom of VS2008 “Creating project ‘CUDAWinApp1’… project creation failed.”

I did stumble on a solution to this problem…

http://forums.nvidia.com/index.php?showtop…st&p=491107

Quoting:

"We found out what my problem was. In the file C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcprojects\CUDA64WinApp.vsz there is a small typo error for the 64 bit version. If you only have VS 2008 installed and no previous version on a 64-bit system then you need to correct this typo before the 64 bit Wizard will run.

The line
Wizard=VsWizard.VsWizardEngine.8.0
should be:
Wizard=VsWizard.VsWizardEngine.9.0"

I changed this file and now CUDA VS Wizard actually generates a solution shell with a sample.cu file (it doesn’t run yet - missing cutil64.dll - probably another "SDK project I need to build in addition to the cutil_vc90 solution I needed to build for some of the SDK examples…)

ELO

ELO

Hi!

I’m tring to make cuda work with VS 2008 too, and I have the same problem with cutil64d.dll.

have you found any solutions?

I have got another pb.

I succesfully generate the code the the memory test, and the result are different from the .exe provided within the SDK…

thanks!

Hugues

P.S. I have vista 64, VS 2008, and I am using a 285 GTX with the last driver: 181.21

Hi H[sup]2[/sup]L

You can do a “Post build” event in Visual Studio to copy over the requisite dll files to the target directory where the exe gets generated…

copy “(NVSDKCUDA_ROOT)\bin\win<b>64</b>\$(ConfigurationName)\*.dll" "(TargetDir)”

  • alternatively I believe you could add the CUDA dll’s directory to the PATH environment varialble… but I haven’t tried that.

The above did work for me though with the CUDA VS Wizard on VS2008 with the Wizard template application.

I’m not sure what your talking about: “memory test application” - what is the full path in the CUDA SDK install to the application in question?

ELO

Hi!

I tried the bandwidth test, and my results are bad… :(

I try your solution for cedit64d.dll.

come bach to you.

:thumbup:

I have added the .dll to the folder and it is working.

it is not good at all, I’ll try to find another sollution sooner or later.

ciao!

What do you mean by “bad results”?

and Yes manually copying the file is one solution albeit a non-optimal one.

I’d suggest either attaching the SDK release solution to your solution of interest and adding a post build event to the solution of interest to copy over the required dlls.

“solution name” properties -> Configuration Properties -> Build Events -> PostBuild Event

If needed you can even call a batch file from this if your move/copy gets more detailed.

ELO

Latest release is not working on XP Pro SP3/VS2005 on x86. Details follow:

  1. SUCCESSFUL installation;
  2. SUCCESSFUL creating and setup (computation architecture versions, etc.) of CUDA Console Application project;
  3. SUCCESSFUL Hello World sample compilation, linking and test (added by default in the project);
  4. SUCCESSFUL adding of one .cpp and one .h files to their respectful project destinations - Headers and Source;
  5. Removing main() from sample.cu and creating empty main() in the .cpp file (it is just returning 0);
    PROBLEM 1: Build process even doesn’t try to compile the .cu file BEFORE .cpp files;
    PROBLEM 2: Build process is trying to use precompiled headers (which is easily fixed in build options);
    PROBLEM 3: Build process is NOT properly configured for compilation of Console (SUBSYSTEM:CONSOLE) .cpp files.

The wizard looks really good, but if it could be used just for compiling .cu samples instead of more complicated projects (as are SDK samples for example)… I just cannot find any use of it.

Hi

I’ve seem to haver the same problem, as many people before, except the solution does not work for me.

I have Vista 64 bit and gtx 260
I installed visual studio 2008 prof, and Cuda SDK, Cuda tools, even mingw (everything with default path)
than Ive run the cuda vs wizzard for 64 bit, it finished without a problem, than edited the CUDA64WinApp.vsz 8->9

BUT when i start the VS2008, and trying to create new CUDA64 project, the wizzard comes up, allright, but when i click finish, an error message pops up, saying error CreateCustomProject

Any ideas?

Thx
Exhodus

(MOD) Ok Ive double checked it, it was the vs2008 installer, also didnt installed the x64 Compiler, now it works