-
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
Vector256.Create() randomly throws PlatformNotSupportedException #72506
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
The behavior looks related to tiered compilation. Or maybe dynamic PGO? |
I can confirm that |
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics Issue DetailsDescriptionCalling Reproduction Stepsusing System.Runtime.Intrinsics;
int i = 0;
while (true) {
Vector256.Create(0f);
if (i++ % 10000 == 0) Console.WriteLine("OK " + i);
} Expected behaviorThe program above should run indefinitely. Actual behaviorThe program crashes after a short amount of time:
Regression?I'm pretty sure it is. Changing the target to .NET 6 works as expected, and I've only found this issue after upgrading to .NET 7 preview 6. Known WorkaroundsNo response Configuration.NET SDK: 7.0.100-preview.6.22352.1 (commit 492644e08e) Other informationNo response
|
There are two problems here:
Solution:
|
This is the same issue that ImageSharp hit that I was looking into. |
Description
Calling
Vector256.Create()
on a machine with no support for AVX2 will throwPlatformNotSupportedException
after a short amount of time.Reproduction Steps
Expected behavior
The program above should run indefinitely.
Actual behavior
The program crashes after a short amount of time:
Regression?
I'm pretty sure it is. Changing the target to .NET 6 works as expected, and I've only found this issue after upgrading to .NET 7 preview 6.
Known Workarounds
No response
Configuration
.NET SDK: 7.0.100-preview.6.22352.1 (commit 492644e08e)
OS: Windows 10 (6.3.9600, x64)
CPU: Intel i3 Gen2 (Sandy Bridge, with no AVX2 support)
Other information
No response
The text was updated successfully, but these errors were encountered: