double texture memory

I tried to use double texture reference for a double memory in my GPU (GTX 280 with DP), but looks like texture does not support double. any reason and work around for this.

thanks very much!

The hardware doesn’t support double precision float as a texture format, but it is possible to use int2 and cast it to double as long as you don’t need interpolation:

texture<int2,1> my_texture;

static __inline__ __device__ double fetch_double(texture<int2, 1> t, int i)


	int2 v = tex1Dfetch(t,i);

	return __hiloint2double(v.y, v.x);


that is good. late thanks