Created attachment 21772 [details]
Console App which prints Information about SIMD acceleration
Version: Mono JIT compiler version 5.3.0 (Nightly 22.214.171.124/0ed43bb Mon Apr 10 09:48:18 UTC 2017)
delivers false on my Machine Linux Mint 17.3 64 Bit(delivers true on Windows though)
It does not matter if its compiled with Mono or .Net(on Windows) - Mono/.Net works on Windows, but both do not work on Linux - so it should be the JIT imho.
Tried using the Library further as well it was way slower on Linux with the Library than without, but considerably faster on Windows(so SIMD itself is definitely working)
TargetFramework: v4.6.2(tried older Versions as well)
PlatformTarget: x64(tried AnyCPU as well)
Of course I used the Release build and tried to run it with "mono ConsoleApp.exe" as well.
I hope I've done nothing wrong on the way, but Nightly should be the master Branch(right?)
Attached below the simple Console App I used to test it.
Thanks for any help you can provide
Zoltan: it seems the SIMD intrinsic for IsHardwareAccelerated was only added to System.Numerics.dll, but we need it in System.Numerics.Vectors.dll as well.
The following patch fixes it for me: https://gist.github.com/akoeplinger/f59dbcd1388a7a7e76c29379e02509bf.
Note: the check for Vector`1 in System.Numerics.dll is not needed, the type doesn't exist there so I removed it.
wouldn't "Vector`1" be for a Generic class without the generic parameters given?
Yes, the point is this type lives in System.Numerics.Vectors.dll not System.Numerics.dll.
Merged to master and 2017-04, thanks.
Zoltan: do you think we should put it in 2017-02 as well given that we mention the .NET SIMD classes in http://www.mono-project.com/docs/about-mono/releases/5.0.0/#simd-acceleration-support
No, simd is disabled in 2017-02, since there were too many bugs.