I can only see System.Runtime.Intrinsics for .NET Core 3.0 (which is a preview). Is there similar dll for .NET Framework?
Asked
Active
Viewed 2,347 times
3
-
1For such, your best channel is GitHub https://github.com/dotnet/corefx/issues – Lex Li Jan 02 '19 at 23:32
-
thanks. ill try. however - if you were working on the Core, why would you be interested answering questions about the Framework? I wouldn't. – Boppity Bop Jan 03 '19 at 14:49
-
_if you were working on the Core, why would you be interested answering questions about the Framework?_ It's the same team at Microsoft that works on both .NET Core and .NET Framework. – Eric Erhardt Jan 05 '19 at 21:37
-
1The ['Vector
struct`](https://learn.microsoft.com/en-us/dotnet/api/system.numerics.vector-1?view=netcore-2.2) is available in the .NETFramework. Be sure to use the Nuget package, it was considered too risky to include it with the default install. https://www.nuget.org/packages/System.Numerics.Vectors/4.5.0 – Hans Passant Jan 05 '19 at 23:09 -
@hans vectors aren't enough. I am trying to replicate intel algorithm from this white paper and see if it works faster w avx2 and/or avx512 : https://www.intel.com/content/dam/www/public/us/en/documents/white-papers/sha-256-implementations-paper.pdf – Boppity Bop Jan 06 '19 at 00:11
-
P. S. Unless someone can prove the. Net framework sha256 cng implementation about same fast including avx512 (because this whole task started with premise that sha on avx512 is 40% faster than on avx2) – Boppity Bop Jan 06 '19 at 00:14
-
System.Numerics.Vectors [uses AVX2](https://stackoverflow.com/a/34532449/17034). If you want to prove anything then .NETCore surely ought to be good enough. – Hans Passant Jan 06 '19 at 01:54
-
I will post the results and we see whats what firsthand. – Boppity Bop Jan 06 '19 at 13:40
1 Answers
2
No, unfortunately the hardware intrinsics feature is only supported on .NET Core. It isn't available on .NET Framework. You can get .NET Core 3.0 Preview 1 from https://aka.ms/netcore3download. Note that you no longer need to reference the System.Runtime.Intrinsics package to use the feature. The APIs are available by default when targeting netcoreapp3.0.

Eric Erhardt
- 2,286
- 15
- 19
-
Thanks I decided to use c++/cli project mixed with native code where intrinsics are available for x64.. All is working. Now I just need to port Intel "fast sha256" code... Phew.. Wish me luck kuck – Boppity Bop Jan 06 '19 at 00:05
-
P. S. I need production code soon. I can't use alpha software. Even beta won't do. – Boppity Bop Jan 06 '19 at 00:07
-
1Any idea if intrinsics are likely to *ever* appear in .NET Framework? – Cocowalla Apr 18 '19 at 15:12