I have no idea how to use texture…
I tried in this way
first
texture<int,1> texint; // does that mean it is a one dimension array with element int?
then
cudaBindTexture(0,texint,d_Array,n4); // n is the num of array, n4 means the byte it binds?
and when I use, I use
int p=tex1Dfetch(texint, offset); // does that mean I get the number at the position offset out from the cache?
Thanks guys!