i really can’t explain this.
My application works just great when i use only global memory but when i try to use constant memory it’s like constant memory is filled with zeroes.
What i’m trying to do in my example is offload data_x and data_y in constant memory to speed up my app.
Thank you for your time.
a.txt (190 Bytes)
b.txt (192 Bytes)
Edit:i actually found the problem just now,for some weird reason the pointer to constant memory screwed everything up.
I changed d_data_x to c_data_x INSIDE the kernel NOT the argument list and it worked,but to my dissapointment it was slower than global memory.(probably due to fermi cache).
Can anybody explain to me why the pointer thing is happening?