开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜