Im having trouble with running my code. Im using the book called “CUDA By Example” and was doing several examples.
Among those examples, those of which run on CPU was working great except that when I used global to make it run on
GPU it starts to give wrong values. Following is one of the program which is supposed to add values from array a and b
and store the value to c.
Adding.cu (1.06 KB)
I have no idea what is going on. Did anyone had similar problem? Im using nvcc compiler. Can someone please help me?