Many tests fail when compiling with -march

Aperta
#2,146 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

  • #2207 di @Redhawk18 — chiusa senza merge

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
testing

Direzione di ricerca

Riproduci il fallimento con il target CTest o make test usando -march=alderlake, quindi esamina tests/cpu/ops/gamma/GammaOpCPU_tests.cpp nelle asserzioni segnalate. Confronta i valori e le soglie che falliscono tra i casi gamma e determina se la tolleranza debba tenere conto di questa architettura. Il lavoro è completato quando i test CPU interessati passano con l’ottimizzazione indicata senza nascondere errori non correlati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

   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

Lingua principale
C++
Stelle
2.1k
Fork
513
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di AcademySoftwareFoundation/OpenColorIO

Tutte le issue di AcademySoftwareFoundation/OpenColorIO

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.