Quantcast

System.Numerics.Vector not accelerated

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

System.Numerics.Vector not accelerated

Natalia Portillo
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://github.com/claunia/TestSIMD

Regards,
Natalia Portillo
Sent from my iPhone
_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.dot.net/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: System.Numerics.Vector not accelerated

Alexander Köplinger via Mono-list
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 <[hidden email]> 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  -  [hidden email]
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


_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.dot.net/mailman/listinfo/mono-list
Loading...