Hello!
i’am using visual c++ 2008 profesional on win7 x64 . i have instaled cuda 3.0 ( driver , toolkit… everyting that was on the download site).
Sice then i have tried to make it work with visual c++ profesional but i faild!! ( it’s been 4 days of anoing trying and i think it’s realy stupind that there isen’t an instaler that duoes all the work!!!) .
i’ve Googled alot!
Could someone please send me a link or write a complite idiot’s guide to instaling and making cuda 3.0 work with visual c++ 2008 profesional ( from what stuff to download , in witch order to instal , what custom buid steps to add …)??
thanks!!
Suppose you have everything in C and your CUDA installation is in C:\CUDA do a simple thing like this in the custom build, suppose that your code is “code.cu” in the solution:
c:\CUDA\bin64\nvcc.exe -arch sm_10 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin” -Xcompiler “/EHsc /W3 /nologo /O2 /Zi /MT " -I"C:\CUDA\include” -I"…/…/common/inc" -maxrregcount=32 --compile -o “Release\code.obj” code.cu
Well there should be many other options which you can see in the CUDA SDK Example Solutions (Have you taken a loot at those also?)
If this does not compile then check to see if you have the libraries needed in the Solution (mostly cudart.lib and cutil64.lib). If you do and it does not compile then you have a problem with MS VS 2007. I hope you do not have the trial version. If you do then I can’t help you in 64-bit, but I can confirm you you can compile with the 32-bit CUDA toolkit just change c:\cuda\bin64\nvcc.exe to c:\cuda\bin\nvcc.exe in the 32 bit case.
Best,
Alexander.