闪电战吗?在可能且适当的情况下使用 BLAS 例程

发布于 2024-08-11 04:14:02 字数 165 浏览 5 评论 0原文

我知道 Blitz++ 通过广泛使用表达式模板和模板元程序来提高其性能。但在某些时候,您无法通过使用这些技术从代码中获得更多信息 - 您必须对一些浮点数进行乘法和求和。此时,您可以通过使用高度优化的(特别是对于特殊架构)BLAS 例程来获得最终的性能提升。 Blitz++ 的当前实现是否尽可能使用 BLAS 例程?

I know that Blitz++ gets its performance plus by extensive usage of expression templates and template metaprogramms. But at some point you can't get more out of your code by using these techniques - you have to multiply and sum some floats up. At this point you can get a final performance kick by using the highly optimized (especially for special architectures) BLAS routines. Does the current implementation of Blitz++ use BLAS routines whenever it is possible?

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

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

发布评论

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

评论(1

沙与沫 2024-08-18 04:14:02

仅对于基准测试,您必须在配置 blitz++ 时指定它:

./configure -with-blas=...

Blitz 不使用 Blas 例程。

Only for benchmarks you must specify it when you configure blitz++:

./configure -with-blas=...

Blitz does not use Blas routines.

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