Skip to content

AdvSimd doesn't work at all on multiple Android devices #60792

Open
@MineCake147E

Description

@MineCake147E

Description

AdvSimd.IsSupported returns false, and AdvSimd.Add(Vector128<float>, Vector128<float>)
throws PlatformNotSupportedException.

Reproduction Steps

  1. Create a new maui project with net6.0-android.
  2. Replace text inside OnCounterClicked with:
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);
}
  1. Build and deploy in Release mode.
  2. Run the app.
  3. Tap the counter.

Expected behavior

Shows

AdvSimd: true
2

Actual behavior

Shows

AdvSimd: false

and Exception details

Regression?

No response

Known Workarounds

No response

Configuration

EDIT: Updated Environment information and added a device.

EDIT: Visual Studio 2022 installation
Microsoft Visual Studio Community 2022
Version 17.3.0 Preview 3.0
VisualStudio.17.Preview/17.3.0-pre.3.0+32708.82
Microsoft .NET Framework
Version 4.8.04084

インストールされているバージョン:Community

Visual C++ 2022   00482-90000-00000-AA086
Microsoft Visual C++ 2022

ASP.NET and Web Tools   17.3.364.15177
ASP.NET and Web Tools

AvaloniaPackage Extension   1.0
AvaloniaPackage Visual Studio Extension Detailed Info

Azure App Service Tools v3.0.0   17.3.364.15177
Azure App Service Tools v3.0.0

Boost.Test のテスト アダプター   1.0
Boost.Test 向けに作成された単体テストを含む、Visual Studio のテスト ツールを有効にします。拡張機能のインストール ディレクトリに、使用条件およびサード パーティからの通知が含まれています。

C# ツール   4.3.0-3.22329.30+29e657c0582904529bae2a87c227220e03f509cf
IDE で使用する C# コンポーネント。プロジェクトの種類や設定に応じて、異なるバージョンのコンパイラを使用できます。

Code Cleanup On Save   1.0.12
Automatically run one of the Code Clean profiles when saving the document. This ensures your code is always formatted correctly and follows your coding style conventions.

CodeMaid   12.0
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, R, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.

Common Azure Tools   1.10
Azure Mobile Services および Microsoft Azure Tools で使用する共通サービスを提供します。

Extensibility Message Bus   1.2.6 (master@34d6af2)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

File Icons   2.7
Adds icons for files that are not recognized by Solution Explorer

GhostDoc   22.2.22190.0  (Not Loaded)
Generate XML Comments from your code, maintain clean and up-to-date documentation, produce help documentation in multiple formats, use intelligent source code Spell Checker in Visual Studio.

Linux コア ダンプ デバッグ   1.0.9.32708
Linux コア ダンプのデバッグを有効にします。

Microsoft JVM Debugger   1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Mono Debugging for Visual Studio   17.3.20 (3f4cb00)
Support for debugging Mono processes with Visual Studio.

NuGet パッケージ マネージャー   6.3.0
Visual Studio 内の NuGet パッケージ マネージャー。NuGet の詳細については、https://docs.nuget.org/ にアクセスしてください

Razor (ASP.NET Core)   17.0.0.2232702+e1d654e792aa2fe6646a6935bcca80ff0aff4387
ASP.NET Core Razor の言語サービスを提供します。

SonarLint for Visual Studio   6.6.0.49766
SonarLint is an extension to your favorite IDE that provides on-the-fly feedback to developers on new bugs and quality issues injected into their code.

Syntax Visualizer   1.0
An extension for visualizing Roslyn SyntaxTrees.

Test Adapter for Google Test   1.0
Google Test 向けに作成された単体テストを含む、Visual Studio のテスト ツールを有効にします。拡張機能のインストール ディレクトリに、使用条件およびサード パーティからの通知が含まれています。

Tweaks 2022   1.1.134
A collection of minor fixes and tweaks for Visual Studio to reduce the paper cuts and make you a happier developer

TypeScript Tools   17.0.10701.2001
TypeScript Tools for Microsoft Visual Studio

Visual Basic ツール   4.3.0-3.22329.30+29e657c0582904529bae2a87c227220e03f509cf
IDE で使用する Visual Basic コンポーネント。プロジェクトの種類や設定に応じて、異なるバージョンのコンパイラを使用できます。

Visual C++ for Cross Platform Mobile Development (Android)   17.0.32708.82
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Linux Development   1.0.9.32708
Visual C++ for Linux Development

Visual F# Tools   17.1.0-beta.22327.2+ddc90b20287a765a9d526da42b3be0dd8e907ec5
Microsoft Visual F# Tools

Visual Studio Color Theme Designer   1.0
Allows users to create and edit Visual Studio themes. Themes can customize colors used for menus, toolbars, tabs, titlebars, the text editor, and other environment colors.

Visual Studio IntelliCode   2.2
Visual Studio 向けの AI 支援付き開発。

Visual Studio Spell Check Everywhere   VSSpellCheckEverywhere
An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes.
https://GitHub.com/EWSoftware/VSSpellChecker

Visual Studio Spell Checker   VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows.
https://GitHub.com/EWSoftware/VSSpellChecker

VisualStudio.DeviceLog   1.0
パッケージに関する情報

VisualStudio.Mac   1.0
Mac Extension for Visual Studio

Xamarin   17.3.0.288 (main@5d42bb2)
Xamarin.iOS と Xamarin.Android の開発を有効にする Visual Studio 拡張機能

Xamarin Designer   17.3.0.202 (remotes/origin/d17-3@6ce0bfa51)
Visual Studio で Xamarin Designer ツールを有効にするための Visual Studio 拡張機能。

Xamarin Templates   17.2.28 (9b3d244)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   13.0.0.0 (d17-3/030cd63)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: dffa5ab
    Java.Interop: xamarin/java.interop/d17-3@7716ae53
    SQLite: xamarin/sqlite/3.38.5@df4deab
    Xamarin.Android Tools: xamarin/xamarin-android-tools/main@14076a6


Xamarin.iOS and Xamarin.Mac SDK   15.11.0.308 (7ad9f8893)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
  • PC: Modified DELL XPS 8700
    • OS: Windows 10 21H2
    • CPU: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz 3.60 GHz
    • RAM: 32 GB DDR3
    • Graphics: NVIDIA GeForce GTX1060(6 GB) Compatible
    • Storage:
      • OS(C:) : Western Digital WDC WDS100T2B0A-00SM50 1000.2 GB SATA SSD
      • WORKSPACE(D:) : Seagate ST1000DM003-1ER162 1000.2 GB 7200RPM SATA HDD
      • ARCHIVE(E:) : HGST HCC541010B9E660 1000.2 GB 5400RPM SATA HDD
  • Phone: Sony Xperia™ XZ3(SOV39)
    • OS: Android 10(52.1.C.0.360)
    • SoC: Qualcomm Snapdragon 845
    • RAM: 4 GB
  • Phone 2: Sony Xperia™ 1 IV(SOG06)
    • OS: Android 12(64.0.D.5.48)
    • SoC: Qualcomm Snapdragon 8 Gen 1
    • RAM: 12 GB

Other information

Other intrinsics such as ArmBase and Dp did not work at all on both devices, and Vector.IsHardwareAccelerated also returned false, meaning that SIMD is currently not available at all.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions