[Mono-list] System.Numerics.Vector not accelerated

Alexander Köplinger alkpli at microsoft.com
Tue May 16 13:32:26 UTC 2017


Hey,

this was fixed with https://github.com/mono/mono/pull/4762 and should show up in the Mono 5.2 release (which should be in the alpha channel soon).

- Alex

On 16 May 2017, at 14:59, Natalia Portillo <claunia at claunia.com<mailto:claunia at claunia.com>> wrote:

Hi all,

I've created a little test of MD5 using the System.Cryptography implementation as well as Mono.Simd and System.Numerics.Vectors.

I've got the following unexpected results:
1.- IsHardwareAccelerated is false in Mono 5.0.0.100 in Linux and macOS. It's true in Windows .NET (VS2017 sdk)
2.- Vectors is THOUSANDS of times slower than crypto, managed and mono.simd versions even when accelerated.
3.- Mono.Simd is still slower than just managed.

I don't know if this is a bug or I'm using the intrinsics in an inadequate way.

The code is available for inspection in https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fclaunia%2FTestSIMD&data=02%7C01%7Calkpli%40microsoft.com%7C144d2ea4005f459b8c9f08d49c5b6600%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636305363754917255&sdata=32YqIVi8vguZnupUKmQuE%2B0cH%2BUnK3Vd0ywuUb%2Ft7m0%3D&reserved=0

Regards,
Natalia Portillo
Sent from my iPhone
_______________________________________________
Mono-list maillist  -  Mono-list at lists.dot.net<mailto:Mono-list at lists.dot.net>
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.dot.net%2Fmailman%2Flistinfo%2Fmono-list&data=02%7C01%7Calkpli%40microsoft.com%7C144d2ea4005f459b8c9f08d49c5b6600%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636305363754917255&sdata=mZhk52BdjnaBbWKI0%2B6csF5WEYWf0HcbwSFQH%2BxDfHY%3D&reserved=0

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/mono-list/attachments/20170516/d384fc09/attachment.html>


More information about the Mono-list mailing list