开发者

Support for double type in texture memory in CUDA

开发者 https://www.devze.com 2023-01-29 18:19 出处:网络
Can 2D textures be declared for double type variables in GTX 280 having compute capability 1.3 The开发者_如何学JAVA declaration is given only for floatFor as far as I\'m aware, you can\'t. However, yo

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

精彩评论

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