-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
R2R Test CpuId_R2R_Avx fails locally #88156
Comments
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics Issue DetailsDescriptionRunning CpuId_R2R_Avx test fails locally (Ryzen 4750U) when testing Vector512 HW acceleration which this model does not have. Reproduction Stepsgit checkout 19d2e90b # commit is not related, it's just an arbirtrary recent revision
.\build.cmd clr+libs -rc Checked -lc Release
.\src\tests\build.cmd Checked test D:\runtime\src\tests\readytorun\HardwareIntrinsics\X86\CpuId_R2R_Avx.csproj
$env:CORE_ROOT="$PWD\artifacts\tests\coreclr\windows.x64.Checked\Tests\Core_Root"
.\artifacts\tests\coreclr\windows.x64.Checked\readytorun\HardwareIntrinsics\X86\CpuId_R2R_Avx\CpuId_R2R_Avx.cmd Expected behaviorTest does not fail. Actual behaviorTest fails with
Regression?Probably not. I believe the test was added after I ran tests the last time. Known WorkaroundsDisabling AVX512 manually before running the test: $env:DOTNET_EnableAVX512F=0 Configuration.NET 19d2e90 cpuid:
Other informationIt passes with the following change to the test, but I'm not sure if that's the right fix.
- bool isAvx512HierarchyDisabled = isHierarchyDisabled;
+ bool isAvx512HierarchyDisabled = isHierarchyDisabled || !Avx512F.IsSupported; There is also the special handling of certain Intel models which could possibly be extended.
|
Reproduces on more recent Ryzens too, e.g.
cc: @tannergooding I believe this is your area of expertise. |
Some fixes have gone in around this area. I'm working on getting one of my older boxes running so I can test locally myself, but if someone has the availability it would be beneficial to confirm whether the issue is still surfacing for the latest commit from main. |
It still reproduces for me running 2e7f0dc on Ryzen 4750U. |
Fix is up here: #88848 The issue was that we weren't including |
Description
Running CpuId_R2R_Avx test fails locally (Ryzen 4750U) when testing Vector512 HW acceleration which this model does not have.
Reproduction Steps
Expected behavior
Test does not fail.
Actual behavior
Test fails with
Regression?
Probably not. I believe the test was added after I ran tests the last time.
Known Workarounds
Disabling AVX512 manually before running the test:
Configuration
.NET 19d2e90
Windows 10
AMD Ryzen 7 PRO 4750U with Radeon Graphics
AMD64 Family 23 Model 96 Stepping 1, AuthenticAMD
cpuid:
Other information
It passes with the following change to the test, but I'm not sure if that's the right fix.
runtime/src/tests/readytorun/HardwareIntrinsics/X86/CpuId.cs
Line 213 in 257c3c1
There is also the special handling of certain Intel models which could possibly be extended.
The text was updated successfully, but these errors were encountered: