gpt4 book ai didi

opencl - OpenCL 中的最小/最大 float 或 double 常量

转载 作者:行者123 更新时间:2023-12-01 15:31:34 25 4
gpt4 key购买 nike

我需要涉及计算对数概率的 OpenCL 内核程序中的最小/最大浮点数。我查看了 OpenCL 引用手册,但找不到此类常量。

在 Java 中它相当于 Double.MAX_VALUE;

在 C 中,它在 float.h 中

最佳答案

它们被称为 FLT_MAX/FLT_MIN 和 DBL_MAX/DBL_MIN。
Macros and Limits在 OpenCL 1.2 规范中。

关于opencl - OpenCL 中的最小/最大 float 或 double 常量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11725064/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com