Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed 'comp->supportSIMDTypes()' #66206

Closed
BruceForstall opened this issue Mar 4, 2022 · 4 comments
Closed

Assertion failed 'comp->supportSIMDTypes()' #66206

BruceForstall opened this issue Mar 4, 2022 · 4 comments
Labels
arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI os-mac-os-x macOS aka OSX
Milestone

Comments

@BruceForstall
Copy link
Member

Many tests in "runtime-coreclr jitstress-isas-x86" pipeline, job "CoreCLR OSX x64 Checked jitstress_isas_nosimd" fail, e.g., JIT/Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.sh:

Assert failure(PID 19764 [0x00004d34], Thread: 722343 [0xb05a7]): Assertion failed 'comp->supportSIMDTypes()' in 'r8NaNdiv:d_test2_f(System.String):double' during 'Rationalize IR' (IL size 33; hash 0xcd8ee9f9; FullOpts)

File: /Users/runner/work/1/s/src/coreclr/jit/rationalize.cpp Line: 781
Image: /private/tmp/helix/working/A85C0927/p/corerun
task_for_pid(19764) FAILED 5 (os/kern) failure
/private/tmp/helix/working/A85C0927/w/AA01093A/e/JIT/Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.sh: line 379: 19764 Abort trap: 6           (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /tmp/helix/working/A85C0927/w/AA01093A/uploads/Reports/JIT.Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/A85C0927/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false r8NaNdiv_cs_do.dll ''
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:

set CORE_ROOT=/tmp/helix/working/A85C0927/p
/private/tmp/helix/working/A85C0927/w/AA01093A/e/JIT/Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.sh
Expected: True
Actual:   False

@tannergooding @dotnet/jit-contrib

@BruceForstall BruceForstall added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Mar 4, 2022
@BruceForstall BruceForstall added this to the 7.0.0 milestone Mar 4, 2022
@ghost
Copy link

ghost commented Mar 4, 2022

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

Issue Details

Many tests in "runtime-coreclr jitstress-isas-x86" pipeline, job "CoreCLR OSX x64 Checked jitstress_isas_nosimd" fail, e.g., JIT/Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.sh:

Assert failure(PID 19764 [0x00004d34], Thread: 722343 [0xb05a7]): Assertion failed 'comp->supportSIMDTypes()' in 'r8NaNdiv:d_test2_f(System.String):double' during 'Rationalize IR' (IL size 33; hash 0xcd8ee9f9; FullOpts)

File: /Users/runner/work/1/s/src/coreclr/jit/rationalize.cpp Line: 781
Image: /private/tmp/helix/working/A85C0927/p/corerun
task_for_pid(19764) FAILED 5 (os/kern) failure
/private/tmp/helix/working/A85C0927/w/AA01093A/e/JIT/Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.sh: line 379: 19764 Abort trap: 6           (core dumped) $LAUNCHER $ExePath "${CLRTestExecutionArguments[@]}"

Return code:      1
Raw output file:      /tmp/helix/working/A85C0927/w/AA01093A/uploads/Reports/JIT.Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.output.txt
Raw output:
BEGIN EXECUTION
/tmp/helix/working/A85C0927/p/corerun -p System.Reflection.Metadata.MetadataUpdater.IsSupported=false r8NaNdiv_cs_do.dll ''
Expected: 100
Actual: 134
END EXECUTION - FAILED
Test Harness Exitcode is : 1
To run the test:

set CORE_ROOT=/tmp/helix/working/A85C0927/p
/private/tmp/helix/working/A85C0927/w/AA01093A/e/JIT/Methodical/NaN/r8NaNdiv_cs_do/r8NaNdiv_cs_do.sh
Expected: True
Actual:   False

@tannergooding @dotnet/jit-contrib

Author: BruceForstall
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: 7.0.0

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 4, 2022
@BruceForstall BruceForstall added arch-x64 os-mac-os-x macOS aka OSX and removed untriaged New issue has not been triaged by the area owner labels Mar 4, 2022
@tannergooding
Copy link
Member

tannergooding commented Mar 4, 2022

It's probably worth removing the COMPlus_EnableSIMD=0 switch. It doesn't exist/work for ARM64 and the code has been in long enough for x86/x64 that it's extremely well tested and so the original purpose for it doesn't really "exist" anymore. Additionally on Unix (and to an extent on x64 Windows) the support is "required" for ABI purposes to ensure types like Vector128<T> or HFAs/HVAs are correctly passed around.

Users still have the option of disabling individual ISAs or using the COMPlus_EnableHWIntrinsic, which would then leave on the general SIMD support needed for ABI, but while still allowing testing the various code paths their code has.

@BruceForstall, @echesakovMSFT, thoughts?

@BruceForstall
Copy link
Member Author

You understand the support matrix here much better than I, so I will defer to your judgement. My main concern would be that we should be able to test all the configurations that we support. If COMPlus_EnableSIMD=0 doesn't improve our testability, then I'm fine to remove it.

@kunalspathak
Copy link
Member

#66670 fixes this.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI os-mac-os-x macOS aka OSX
Projects
None yet
Development

No branches or pull requests

3 participants