dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.95k stars 4.65k forks source link

Test failure global::JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle() #83075

Closed v-wenyuxu closed 1 year ago

v-wenyuxu commented 1 year ago

Run: runtime-coreclr outerloop 20230306.3

Failed test:

R2R-CG2 windows x86 Checked no_tiered_compilation @ Windows.10.Amd64.Open

- global::JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle()

Error message:

One or more scenarios did not complete as expected.

Stack trace
   at JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle() in /__w/1/s/artifacts/tests/coreclr/obj/AnyOS.x64.Checked/Managed/JIT/HardwareIntrinsics/X86/Avx1/Avx1_ro/Avx1_ro/gen/RoundToNearestInteger.Single.cs:line 118
   at Program.<<Main>$>g__TestExecutor98|0_97(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&)
ghost commented 1 year ago

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch, @kunalspathak See info in area-owners.md if you want to be subscribed.

Issue Details
Run: [runtime-coreclr outerloop 20230306.3](https://dev.azure.com/dnceng-public/public/_build/results?buildId=195350&view=ms.vss-test-web.build-test-results-tab&runId=3698235&resultId=115428&paneView=debug) Failed test: ``` R2R-CG2 windows x86 Checked no_tiered_compilation @ Windows.10.Amd64.Open - global::JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle() ``` **Error message:** ``` One or more scenarios did not complete as expected. Stack trace at JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle() in /__w/1/s/artifacts/tests/coreclr/obj/AnyOS.x64.Checked/Managed/JIT/HardwareIntrinsics/X86/Avx1/Avx1_ro/Avx1_ro/gen/RoundToNearestInteger.Single.cs:line 118 at Program.<
$>g__TestExecutor98|0_97(StreamWriter tempLogSw, StreamWriter statsCsvSw, <>c__DisplayClass0_0&) ```
Author: v-wenyuxu
Assignees: -
Labels: `arch-x86`, `os-windows`, `area-CodeGen-coreclr`, `untriaged`, `blocking-outerloop`
Milestone: -
BruceForstall commented 1 year ago

Looks like:

03:02:54.468 Running test: global::JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle()
Beginning scenario: RunBasicScenario_UnsafeRead
Beginning scenario: RunBasicScenario_Load
Beginning scenario: RunBasicScenario_LoadAligned
Beginning scenario: RunReflectionScenario_UnsafeRead
Beginning scenario: RunReflectionScenario_Load
Beginning scenario: RunReflectionScenario_LoadAligned
Beginning scenario: RunClsVarScenario
Beginning scenario: RunClsVarScenario_Load
Beginning scenario: RunLclVarScenario_UnsafeRead
Beginning scenario: RunLclVarScenario_Load
Beginning scenario: RunLclVarScenario_LoadAligned
Beginning scenario: RunClassLclFldScenario
Beginning scenario: RunClassLclFldScenario_Load
Beginning scenario: RunClassFldScenario
Beginning scenario: RunClassFldScenario_Load
Beginning scenario: RunStructLclFldScenario
Avx.RoundToNearestInteger<Single>(Vector256<Single>): RunStructLclFldScenario failed:
 firstOp: (0.5, 0.72397345, 0.58441, 0.89630336, 0.029806474, 0.28871256, 0.69656265, 0.031168576)
  result: (0, 1, 1, 1, 0, 0, 1, 0)

Beginning scenario: RunStructLclFldScenario_Load
Beginning scenario: RunStructFldScenario
Beginning scenario: RunStructFldScenario_Load
03:02:54.994 Failed test: global::JIT.HardwareIntrinsics.X86._Avx1.Program.RoundToNearestIntegerSingle()

No failure in the subsequent run:

https://dev.azure.com/dnceng-public/public/_build/results?buildId=195652&view=results

@tannergooding ?

tannergooding commented 1 year ago

Unsure. We don't have a history of flakiness in this test nor any failures in the last 6 months and so it looks like a one off failure.

I'm not aware of any specific changes we've done that could impact this test in particular. Given its StructLclFld, it's possible there is some extreme corner case related to something @SingleAccretion or @jakobbotsch has been working on.

jakobbotsch commented 1 year ago

Will close this given we haven't seen more occurrences since then (at least none that have been added to this issue).

AndyAyersMS commented 9 months ago

Seems to have happened again:

https://dev.azure.com/dnceng-public/public/_build/results?buildId=494941&view=ms.vss-test-web.build-test-results-tab&runId=11494252&resultId=100339&paneView=dotnet-dnceng.dnceng-build-release-tasks.helix-test-information-tab

Beginning scenario: RunBasicScenario_UnsafeRead Avx.RoundToNearestInteger(Vector256): RunBasicScenario_UnsafeRead failed: firstOp: (0.55800956, 0.20841405, 0.8299036, 0.97571474, 0.5, 0.95204264, 0.32384777, 0.9830441) result: (1, 0, 1, 1, 0, 1, 0, 1)

Beginning scenario: RunBasicScenario_Load Avx.RoundToNearestInteger(Vector256): RunBasicScenario_Load failed: firstOp: (0.55800956, 0.20841405, 0.8299036, 0.97571474, 0.5, 0.95204264, 0.32384777, 0.9830441) result: (1, 0, 1, 1, 0, 1, 0, 1)

Beginning scenario: RunBasicScenario_LoadAligned Avx.RoundToNearestInteger(Vector256): RunBasicScenario_LoadAligned failed: firstOp: (0.55800956, 0.20841405, 0.8299036, 0.97571474, 0.5, 0.95204264, 0.32384777, 0.9830441) result: (1, 0, 1, 1, 0, 1, 0, 1)

Beginning scenario: RunReflectionScenario_UnsafeRead Avx.RoundToNearestInteger(Vector256): RunReflectionScenario_UnsafeRead failed: firstOp: (0.55800956, 0.20841405, 0.8299036, 0.97571474, 0.5, 0.95204264, 0.32384777, 0.9830441) result: (1, 0, 1, 1, 0, 1, 0, 1)

Beginning scenario: RunLclVarScenario_UnsafeRead Avx.RoundToNearestInteger(Vector256): RunLclVarScenario_UnsafeRead failed: firstOp: (0.55800956, 0.20841405, 0.8299036, 0.97571474, 0.5, 0.95204264, 0.32384777, 0.9830441) result: (1, 0, 1, 1, 0, 1, 0, 1)