CUDA中的双精度浮点 [英] Double precision floating point in CUDA

查看:308
本文介绍了CUDA中的双精度浮点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CUDA是否支持双精度浮点数?也需要同样的原因。

Does CUDA support double precision floating point numbers ? Also need reasons for the same.

推荐答案

提示:

如果你想使用双精度,你必须将GPU架构设置为 sm_13 (如果你的GPU支持它)。

If you want to use double precision you have to set the GPU architecture to sm_13 (if your GPU supports it).

否则它仍然会将所有双精度值转换为浮点值,并只给出一个警告(如faya的帖子中所示)。

Otherwise it will still convert all doubles to floats and gives only a warning (as seen in faya's post). (Very annoying if you get a error because of this :-) )

标志是: -arch = sm_13

The flag is: -arch=sm_13

这篇关于CUDA中的双精度浮点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆