English 中文(简体)
.NET框架4.5是否提供SSE4/AVX支助?
原标题:Does .NET Framework 4.5 provide SSE4/AVX support?

我想,我听说了,但不知道在哪里。

" 强力 " 上传: "/强 " 我告诉过Jit

最佳回答

似乎它来了。 (我一小时前才发现)

在此列出几个链接

https://devblogs.microsoft.com/dotnet/the-jit-final-final-forminate-jit-and-simd-re-getting-married/"rel=“不跟随 nofollow noreferrer">JIT最后提议。JIT和SIMD正在结婚。

https://blogs.msdn.com/b/dotnet/archive/2014/05/13/ update-to-simd-support/" rel="无跟踪 norefererr">对SIMD Support 的更新

您需要最新版本的 < a href=" "https://blogs.msdn.com/b/clrcodegeneration/archive/2014/05/12/ryujit-ctp4 - 现用- more- simd-type- types- and- better- os- support/" rel="无依无依无靠" >RyuJIT

https://www.nuget.org/packages/System.Numeprics.Vectors. rel=“不跟随 noreferrer”>微软 SIMMD 驱动的矢量类型 (努埃特)

问题回答

不, 在. NET 中不存在您可以自己写入机器代码的假想。 代码生成完全取决于及时的编译者。 它当然能够根据机器处理器的能力定制代码生成。 Ngen. exe 必须总是运行在目标机器上的原因之一 。. NET 4. 5 中的杂音是否被调用来利用 sse4 或 avx 是一个尚未解决的问题, 我还没有听说过任何问题。 微软除了修复错误外, 也不会对杂乱无章。 非常不稳定 和 4. 5 并不是一个侧面的版本 。

VS-11确实有一个更新的 C++ 的代码生成器。 它能够自动传导循环, 并且确实使用 SIMD/ AVX 的指令 。 此 < href=" http://blogs. microsoft.co. il/blogs/ sasha/ archive/2011/10/17/ simd- optimed- c- code- in- visual- studio- 11. aspx" rel = “ nofollow noreferr” > 博客 post < a > 提到, 简短的视频是 < a href=" http://channel9. msdn.com/ Events/ Windows-Camp/Developinging- Windows-8- Metro- standow- apps- in- Cpp/ Gettingting- the- most- out- MSVC- compiler- AutoVer- atoriztoriztorizer" rel@ rel= " rel= " rel= " rel= " rel= " refolnn noreferr> >, 这里可使用 < < < < < / a/ a/ a


最新消息:"http://blogs.msdn.com/b/clrcodegend/archive/2014/04/03/ryujit-ctp3-how-to-use-simd.aspx" rel=“nofollow noreferr"> new x64 jitter

更有可能取得丰硕成果的前进道路是 < a href="http://blogs.msdn.com/b/dotnet/archive/2014/04/02/announcing-net-native-preview.aspx" rel="nofollow norefererr".NET Intal ,在上次建设会议上宣布。它使用 C++ 编译器的后端来提前生成代码, 自动受益于对自动消化和自动平行化的内建支持。 否则, 它将无法明确解释内存调整问题是如何解决的。 它有自己的问题, 反省是困难的, 目前只支持包件应用程序, 其运行时间依赖性可以提前确定 。 Windows Storere 和 phone apps 。


更新: 在.NET 4. 6, System. Numeprics. Vectors. dll 组装中发运的更新。 请注意, 框架包括的是一个“ 安全”, 与 MSDN 文档不符, Vector< T> 已经丢失。 Nuget 软件包( 4. 1. 0) 匹配 。

是,您可以使用某些矢量类型,以确保在有硬件可用时使用硬件加速。

< a href=>https://learn.microsoft.com/en-us/dotnet/standalics/numberics#simd-papid-victor-types" rel=“不跟随 Noreferr">https://learn.microsoft.com/en-us/dotnet/standics/nudics#simd-papid-victor-types





相关问题
Manually implementing high performance algorithms in .NET

As a learning experience I recently tried implementing Quicksort with 3 way partitioning in C#. Apart from needing to add an extra range check on the left/right variables before the recursive call, ...

Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How do I compare two decimals to 10 decimal places?

I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal. 0....

Exception practices when creating a SynchronizationContext?

I m creating an STA version of the SynchronizationContext for use in Windows Workflow 4.0. I m wondering what to do about exceptions when Post-ing callbacks. The SynchronizationContext can be used ...

Show running instance in single instance application

I am building an application with C#. I managed to turn this into a single instance application by checking if the same process is already running. Process[] pname = Process.GetProcessesByName("...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签