互惠函数的cuda“舍入模式”[重复]

问题描述 投票:1回答:1

这个问题在这里已有答案:

看看Cuda-Math-Api documentation,功能

  • __frcp_rd以向下舍入模式计算1 / x
  • __frcp_rn以舍入到最接近的偶数模式计算1 / x
  • __frcp_ru以向上模式计算1 / x
  • __frcp_rz在round-to-zero模式下计算1 / x

但那些“模式”是什么意思呢?如果我要划分'1/3',每个函数会产生什么?

谷歌搜索“舍入模式的倒数”并没有返回任何结果

api math cuda intrinsics
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.