unit test numeric failures in test_metal and test_gpu

未关闭
#2,211 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
cpp, macos

调研方向

首先通过 ctest 运行 test_metal 和 test_gpu 中报告的失败用例,并比较 issue 中显示的 CPU、GPU 和 tolerance 值。确定每个差异是否属于平台特定的数值失败,以及是否适合对 tolerance 或测试进行范围狭窄的调整。当这些失败已有一致同意的修复方案或 workaround,并且 ctest 在受影响的 macOS 配置上通过时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

macOS Sequoia 15.7.1 (i.e. fully up to patch level for Sequoia)

GL Vendor: Apple
GL Renderer: Apple M4 Max
GL Version: 2.1 Metal - 89.4
GLSL Version: 1.20

[202/241] [Lut1DOp / lut1d_file2_disallow_tex1D_test ] - FAILED -
Maximum error: 1 at pixel: 43691 on component 1 larger than epsilon.
src = {1.000015259, 1.000026703, 1.000038147, 1.000049591}
cpu = {0, 1, 0, 1.000049591}
gpu = {0, 0, 0, 1.000049591}
absolute tolerance=9.999999747e-05

If the tolerance is 0.0001, and the failure magnitude is 1.0, this feels like a rounding error in the LUT somewhere.

As an example of a more typical error, as it turns out there are two failures in test_metal, the other being this one:

[ 56/241] [FixedFunction / style_aces2_rgb_to_jmh_fwd ] - FAILED -
Maximum error: 0.000244140625 at pixel: 13 on component 2 larger than epsilon.
src = {0.2668400109, 0.2460400015, 0.4093199968, 1}
cpu = {53.46554947, 13.12156677, 285.6588745, 1}
gpu = {53.4655571, 13.12158012, 285.6591187, 1}
absolute tolerance=0.0001999999949

Over in test_gpu, there's this:

[ 69/241] [FixedFunction / style_RGB_TO_HSV_inv_custom ] - FAILED -
Maximum error: 7.629394531e-06 at pixel: 7 on component 1 larger than epsilon.
src = {0.5, 2.5, 0.03999999911, 0}
cpu = {-39.95812988, 39.9981308, 39.9981308, 0}
gpu = {-39.95812988, 39.99812317, 39.99812317, 0}
absolute tolerance=9.999999975e-07

As I am trying to get ctest to run without failure to satisfy the MacPorts CI system, I'd appreciate insight on the first one here, and would ask if there's a workaround (perhaps a way to relax the tolerances for just one test?) on the second and third ones.

主要语言
C++
星标
2.1k
派生
513
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

AcademySoftwareFoundation/OpenColorIO 的其他 Issue

查看 AcademySoftwareFoundation/OpenColorIO 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。