Visual Studio 的循环矢量化(手动和自动)有哪些资源?

发布于 2024-08-04 05:16:52 字数 73 浏览 4 评论 0原文

我看到了一些 gcc 的资源,但没有看到 Visual Studio 的资源。

有人有参考资料、例子和技巧的宝库吗?

I see some resources for gcc, but not for Visual Studio.

Anyone have a treasure trove of references, examples and tricks?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

雅心素梦 2024-08-11 05:16:52

我不认为 VC++ 会进行循环向量化。如果您想要它,您可能必须使用 英特尔的编译器。请注意,它将作为直接替代品插入到 Visual Studio 中。

另请参阅此问题:

除了 gcc 之外,还有哪些编译器可以对代码进行矢量化?

< strong>更新: 据报道,2012 版本现在可以进行自动矢量化,请参阅:

内部自动矢量化,n 中的 1

I don't think VC++ does loop vectorization. If you want it, you'll probably have to use Intel's compiler. Note that it will plugin to Visual Studio as a drop-in replacement.

Also see this question:

What compilers besides gcc can vectorize code?

UPDATE: The 2012 version reportedly does auto-vectorization now, see:

Inside Auto-Vectorization, 1 of n

呆头 2024-08-11 05:16:52

VC++ 不支持矢量化。但是,SSE 支持是通过内在函数启用的。请查看此 MSDN 帖子。

Vectorization is not supported by VC++. But, the SSE support is enabled via intrinsics. Please look this MSDN post.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文