I'm a very newbie using CUDA. I installed it yesterday :).
I have worked in C/C++, C++ Builder and MASM 32 and 64.
I want to start to coding in CUDA and I hope you can give me some links to know how to start and how to configure an IDE for working.
I'm using Vista 64 bits and I have installed VS2008.
Sorry if this post is too general, but I have been looking by Internet for some information about and I'm very confusing, I hope you can guide me in my first steeps and the I'll be able to fly alone.
Steps to do (for developing in Windows):
0) Get a proper video card
Install MS VS2005
Download and install video drivers, CUDA toolkit and CUDA SDK (preferably in this order)
Check if the compiled projects in \NVIDIA CUDA SDK\bin launch
Download and install CUDA Wizard
Start a new project in VS2005 using “CUDAWinApp” template
See if the dummy project compiles and runs
If not, post the problem. If yes, you’re ready to start developing
It’s a good idea to read the Programming Guide and go through tutorials here [url=“http://www.nvidia.com/object/cuda_education.html”]http://www.nvidia.com/object/cuda_education.html[/url] . I found the podcasts from University of Illinois very helpful for understanding the concepts of CUDA programming and Dr. Dobbs’ articles offer many code examples. After you go through them, read the slides in “SC07 Tutorial: High Performance Computing with CUDA”, this pdf is often referenced on the forum (it’s mostly optimization, you should leave it for after you know the basics)
And when I build the solution I had the following mistakes
1>------ Build started: Project: deviceQuery, Configuration: Debug Win32 ------
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 ‘cutil32D.lib’
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 think that the first mistake is for this line in the command line:
“$(VCInstallDir)bin”
The variable VCInstallDir is not in my Enviroment Variable
I don’t have the file cutil32D.lib but I have cutil64D.lib
I don’t know where I need to change something for using the 64 bit dll which I have installed in my PC.
I forget where exactly, but in the Project Properties under the Linker section there is a place to specify additional libraries. There you will see a reference to cutil32D.lib. Change it accordingly.
Well I searched for the CUDA on Vista foro and I found that there are problems with Vista 64 bit platform, so to start in this new advanture I’m thinking to install the tool kit for 32 bit first and try to make work CUAD in 32 bit first.
Can someone tell my how to install the 32 tool kit properly without uninstall the 64 tool kit? I mean, I’d like to have the two tool kits installed at the same time for a future use.
In this way, I don’t know what I need to change in the global Enviroment Variable to avoid problem between the two toolkits.
Well I installed the CUDA and SDK for 32 bit and I made the sample work fine xD.
If I try to compile for 64 bits 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 ‘.\release\deviceQuery.obj’
1>Build log was saved at “file://c:\Borrar\deviceQuery\Release\BuildLog.htm”
1>deviceQuery - 1 error(s), 0 warning(s)
My command line for compiling in 64 bit platform is that:
The configuration is Active(Release) and PlatForm (Active Win32). If I try to change it for x64 it is imposible then to open the window property for deviceQuery.cu, so I only change the Enviorment Variable to point to the rigiht path and change in the linker the lib cutil32D.lib for cutil64D.lib