-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
AdvSimd doesn't work at all on multiple Android devices #60792
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. |
CC. @imhameed, @fanyang-mono This is dependent on Mono and is tracked by #43051 |
Thank you for reply. |
Tagging subscribers to this area: @dotnet/area-system-runtime-intrinsics Issue DetailsDescription
Reproduction Steps
private void OnCounterClicked(object sender, EventArgs e)
{
var sb = new StringBuilder()
sb.AppendLine($"AdvSimd: {AdvSimd.IsSupported}");
try
{
var r = Vector128.Create(1f);
var q = AdvSimd.Add(r, r);
sb.AppendLine($"{q.GetElement(3)}");
}
catch (Exception e)
{
sb.AppendLine($"{e}");
}
CounterLabel.Text = sb.ToString();
SemanticScreenReader.Announce(CounterLabel.Text);
}
Expected behaviorShows
EDIT: miscalculation (my bad...) Actual behaviorShows
and Exception details Regression?No response Known WorkaroundsNo response ConfigurationEDIT: Visual Studio 2022 installation
Other informationOther intrinsics such as ArmBase and Dp didn't work as well. Even
|
@fanyang-mono is this still planned for .NET 7.0? If not, can you please move it to 8.0? Thanks! |
This might have been fixed by #72982. I will try it out this week. If not, will move this to .NET8 |
AdvSimd can only be enabled when both LLVM and JIT supports it on Arm64. The support for JIT hasn't landed yet. Moving this to .NET9. |
Description
AdvSimd.IsSupported
returnsfalse
, andAdvSimd.Add(Vector128<float>, Vector128<float>)
throws
PlatformNotSupportedException
.Reproduction Steps
net6.0-android
.OnCounterClicked
with:Expected behavior
Shows
Actual behavior
Shows
and Exception details
Regression?
No response
Known Workarounds
No response
Configuration
EDIT: Updated Environment information and added a device.
EDIT: Visual Studio 2022 installation
Other information
Other intrinsics such as ArmBase and Dp did not work at all on both devices, and
Vector.IsHardwareAccelerated
also returnedfalse
, meaning that SIMD is currently not available at all.The text was updated successfully, but these errors were encountered: