Support for double type in texture memory in CUDA
Can 2D textures be declared for double type variables in GTX 280 having compute capability 1.3 The开发者_如何学JAVA declaration is given only for float
For as far as I'm aware, you can't. However, you can use the int2 type as shown in point 23 here: http://forums.nvidia.com/index.php?showtopic=84440
edit: Corrected grammar
You can't do texture interpolation with doubles, the hardware doesn't support it. What you can do is store the doubles as int2 and then use the tex2dfetch to collect the relevant points, convert to double, then do the actual interpolation in software.
精彩评论