In the YouTube video “CUDACast #2” by Mark Ebersole, he presents some CPU code, which he then modifies to demonstrate how to do it with the GPU. I have followed his demonstration to a T in VS 2013 --and the program does compile and run on my system.
CUDACast #2: [url]http://devblogs.nvidia.com/parallelforall/cudacasts-episode-2-your-first-cuda-c-program/[/url]
However, at runtime the c array doesn’t get updated, and the printout for each c[i] is “c[0] = 0, c[1] = 0, c[2] = 0, c[3] = 0”, etc. I’ve ensured the code is accurate–but it appears the Cuda kernel is not operating, and not performing the addition or updating the c array.
The background of my set up is as follows:
I downloaded and installed CUDA 6.5 on my Windows 7 64 bit machine. Then I downloaded and installed VS 2013 Community. My Graphics card is the GTX 260 Core 216 with display driver 340.62. This is an older card with the GT200 GPU, but it is Cuda enabled with Compute Capability 1.3
The largest blocksize for Compute Capability 1.3 is 512 instead of 1024; hence, in the code I set “#define SIZE 1024” to “#define SIZE 512” instead. I even tried a much smaller SIZE number, such as 20.
Finally, Cuda 6.5 is the last version to support my GPU model, and also the first to work with VS 2013. So version 6.5 should be the ticket with my hardware and software.
Everything appears fine, except my GPU just doesn’t seem to know it’s actually supposed to do something. What am I missing?