Many tests fail when compiling with -march

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

还没有人认领这个 Issue。

  • #2207 来自 @Redhawk18 —— 已关闭,未合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
cpp
领域
testing

调研方向

使用 -march=alderlake 通过 CTest 或 make test 目标复现该失败,然后检查 tests/cpu/ops/gamma/GammaOpCPU_tests.cpp 中报告的断言。比较各个 gamma 用例中失败的值和阈值,并确定容差是否应适应该架构。完成的标准是,受影响的 CPU 测试在报告的优化选项下通过,同时不掩盖无关的失败。

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

描述

   8 tests failed with 33 errors 21 skips.
  
  
         Start  9: test_cpu_avx512
    9/10 Test  #9: test_cpu_avx512 ..................   Passed    0.00 sec
         Start 10: test_python
   10/10 Test #10: test_python ......................   Passed    0.35 sec
  
   30% tests passed, 7 tests failed out of 10
  
   Total Test time (real) =  10.73 sec
  
   The following tests FAILED:
             2 - test_cpu (Failed)
             3 - test_cpu_no_accel (Failed)
             4 - test_cpu_sse2 (Failed)
             5 - test_cpu_avx (Failed)
             6 - test_cpu_avx+f16c (Failed)
             7 - test_cpu_avx2 (Failed)
             8 - test_cpu_avx2+f16c (Failed)
   Errors while running CTest
   make: *** [Makefile:71: test] Error 8
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:123:
   FAILED: Index: 17 - Values: 0.896949828 and: 0.896951199 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:123:
   FAILED: Index: 21 - Values: 1.10895336 and: 1.10895324 - Threshold: 1.00000001e-07
   [ 694/1098] [GammaOpCPU / apply_basic_style_fwd                          ] - FAILED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:187:
   FAILED: Index: 16 - Values: 0.830311298 and: 0.830311418 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:187:
   FAILED: Index: 17 - Values: 0.976092517 and: 0.976092875 - Threshold: 1.00000001e-07
   [ 695/1098] [GammaOpCPU / apply_basic_style_rev                          ] - FAILED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:279:
   FAILED: Index: 17 - Values: 0.896949828 and: 0.896951199 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:279:
   FAILED: Index: 21 - Values: -0.896949828 and: -0.896951199 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:279:
   FAILED: Index: 25 - Values: 1.10895336 and: 1.10895324 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:279:
   FAILED: Index: 29 - Values: -1.10895336 and: -1.10895324 - Threshold: 1.00000001e-07
   [ 696/1098] [GammaOpCPU / apply_basic_mirror_style_fwd                   ] - FAILED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:370:
   FAILED: Index: 16 - Values: 0.830311298 and: 0.830311418 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:370:
   FAILED: Index: 17 - Values: 0.976092517 and: 0.976092875 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:370:
   FAILED: Index: 20 - Values: -0.830311298 and: -0.830311418 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:370:
   FAILED: Index: 21 - Values: -0.976092517 and: -0.976092875 - Threshold: 1.00000001e-07
   [ 697/1098] [GammaOpCPU / apply_basic_mirror_style_rev                   ] - FAILED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:449:
   FAILED: Index: 17 - Values: 0.896949828 and: 0.896951199 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:449:
   FAILED: Index: 25 - Values: 1.10895336 and: 1.10895324 - Threshold: 1.00000001e-07
   [ 698/1098] [GammaOpCPU / apply_basic_pass_thru_style_fwd                ] - FAILED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:528:
   FAILED: Index: 16 - Values: 0.830311298 and: 0.830311418 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:528:
   FAILED: Index: 17 - Values: 0.976092517 and: 0.976092875 - Threshold: 1.00000001e-07
   [ 699/1098] [GammaOpCPU / apply_basic_pass_thru_style_rev                ] - FAILED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:583:
   FAILED: Index: 16 - Values: 0.60383141 and: 0.603831291 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:583:
   FAILED: Index: 17 - Values: 0.910603881 and: 0.91060406 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:583:
   FAILED: Index: 20 - Values: 1.01142669 and: 1.01142657 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:583:
   FAILED: Index: 21 - Values: 1.09394491 and: 1.09394503 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:583:
   FAILED: Index: 22 - Values: 1.49998474 and: 1.49998403 - Threshold: 1.00000001e-07
   [ 700/1098] [GammaOpCPU / apply_moncurve_style_fwd                       ] - FAILED
   [ 701/1098] [GammaOpCPU / apply_moncurve_style_rev                       ] - PASSED
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 10 - Values: 0.674750805 and: 0.674750686 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 14 - Values: -0.674750805 and: -0.674750686 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 16 - Values: 0.60383141 and: 0.603831291 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 17 - Values: 0.910603881 and: 0.91060406 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 20 - Values: -0.60383141 and: -0.603831291 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 21 - Values: -0.910603881 and: -0.91060406 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 24 - Values: 1.01142669 and: 1.01142657 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 25 - Values: 1.09394491 and: 1.09394503 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 26 - Values: 1.84183896 and: 1.84183872 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 28 - Values: -1.01142669 and: -1.01142657 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
   FAILED: Index: 29 - Values: -1.09394491 and: -1.09394503 - Threshold: 1.00000001e-07
   /build/source/tests/cpu/ops/gamma/GammaOpCPU_tests.cpp:699:
  # FAILED: Index: 30 - Values: -1.84183896 and: -1.84183872 - Threshold: 1.00000001e-07

Specifically with -march=alderlake. Maybe you would want to open up the thresholds on all of these to support setting the march optimizations

主要语言
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 摘要。