I have a somewhat weird question. I have a float * array to which I bind a float4 texture.
The reason is best explained in the following manner:
I need to read 4 floats for thread X, values: A, B, C, D Thread X+1 will read 4 floats, values: C, D, E, F (i.e. C and D in both threads are the same)
Is there a way to do this? because from playing with it a bit, I see that if I do:
texture< float4, 1, cudaReadModeElementType > mytex; ... tex1Dfetch( mytex, pos );
then pos brings me the values in pos * 4 in the array (which is reasonable I guess) but that means
I cant access positions in the array which divide evenly by 2 but not by 4.
Am I missing something ?