开发者

Find logarithm in cuda

开发者 https://www.devze.com 2023-02-18 12:57 出处:网络
How do I开发者_运维百科 find logarithm in cuda? I\'m looking for a device function. ThanksYou can use:

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

精彩评论

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