Hi all,
It’s been a while since I worked with CUDA, but I expected it would be easy to pick it back up; apparently I was wrong.
I previously used MSVS 2008 on a Vista 32 bit machine. As such, after installing the driver, SDK, etc., I could not only run the already compiled executables provided in the SDK, but I could immediately compile the source code in MSVS 2008. Simple.
Now fast forward two years. Just reloaded the machine with Windows 7 Professional 64 bit and MSVS 2008. Of course, the preloaded executables run fine. But when I compile the source files, say bandwidth.cu, as an example, I get an error.
I assume, and perhaps incorrectly so, that the SDK installation, knowing which version of Windows you are running (32 bit vs 64 bit) would install ready-to-go source files accordingly. Meaning, if one has a 64 bit system, there would be a separate set of source files, with the VS solution configuration setup accordingly to compile on 64 bit machines.
(1) So my first question: Is that assumption wrong?
I ask, because when I compile, I get 1 Link error: cutil32d.lib not found or something like that. After searching online, I see this file is expected on 32 bit systems, but on my system, instead, I have cutil64d.lib.
And mind you, I am a a complete NEWBIE with MSVS and am not the most technically oriented (by far). However, I don’t like posting before reading, so I searched the forum for this cutil32d.lib and saw several people offering “solutions”, most of which were over my head. However, what I got from them was to check in the configuration options of the solution file and check “certain things”, again stuff, at this point, beyond me. However, I noticed that all the SDK source files were configured with cutil32d.lib and NOT with cutil64d.lib. So this brings me back to my assumption. Was my assumption wrong, in that I expected there to be two sets of source files in the SDK, one for 32 bit and one for 64 bit, with the only difference being the appropriately configured options in the solution file?
(2) How do I compile the sample source files in the SDK. What specifically needs to change under the “Properties” when I right click on the solution in MSVS 2008?
While searching the forum, I came across this similar thread:
http://forums.nvidia.com/index.php?showtopic=180554&st=0&p=1116904&hl=cutil32dlib&fromsearch=1&#entry1116904
The response said to find the cutil file, and then compile that (or so that’s how I understood the response). So I found the cutil_vc90.sln file under the “common” folder under “C”, and then Built that solution. Then I opened up bandwidth sln, again, and try to Rebuild. Instead of the cutil32d.lib error, I get the following:
fatal error LNK1181: cannot open input file ‘shrUtils32D.lib’
So did I mess things up?
I’ve seen several posts recommending the following link for setting up MSVS 2008:
That link seems detailed enough that I can try to follow, and if needed, as follow up questions.
However, for now, I’m not starting with a blank file and am simply trying to compile the SDK source files. Although I’m using 64 bit Windows, I’m sure this isn’t really too difficult…just a lack of know how on my part.
Any help is greatly appreciated. Thanks in advance.