开发者

Find logarithm in cuda

How do I开发者_运维百科 find logarithm in cuda? I'm looking for a device function.

Thanks


You can use:

logf(x)
__logf(x)
log2f(x)
__log2f(x)
log10f(x)
__log10f(x)

Taken from the CUDA Programming Guide (Appendix D).


As Ade says log* functions. Keep in mind that __log* might be fast but not accurate.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜