SPU 上的 GSL 库

发布于 2024-08-02 11:27:55 字数 93 浏览 2 评论 0原文

有谁成功地为 SPU 编译/移植/找到 GNU 科学库吗?

如果没有,是否存在类似的 SPU 库或包装器?或者,您将如何移植一些功能?

谢谢

has anyone succeed in compiling/porting/finding the GNU scientific libraries for the SPU?

IF not, do similar libraries or wrappers for the SPU exist? or, how would you just port some of the functions?

Thanks

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

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

发布评论

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

评论(2

野鹿林 2024-08-09 11:27:55

Mercury Computers 为 SPE 出售一个闭源科学库,名为 SAL 由手工调整组装而成。他们还将源代码出售给功能等效的 C 实现(称为 CSAL),该实现未经优化,但可通过编译器移植到任何平台。这非常有用,因为您可以在对您来说最方便的任何架构上进行大量原型设计。 SAL 并没有涵盖 GNU 科学图书馆 中的所有内容,但它是一个良好的开端,而且尽可能快地运行。

我对 GNU 科学库没有任何经验,但它看起来并没有使用任何向量内在函数或任何使其特别不可移植的东西。我认为您将遇到的唯一问题是,如果您的数据大小太大,所有的 malloc 可能会耗尽本地存储。另外,请记住,文本(库和代码)占用的空间越大,数据的空间就越少。

Mercury Computers sells a closed source scientific library for the SPEs called SAL constructed from hand tuned assembly. They also sell the source to a functionally equivalent C implementation called CSAL that is un-optimized but portable to any platform with a compiler. This is pretty useful as you can do quite a bit of prototyping on whatever architecture is the most convenient for you. SAL doesn't cover everything that is in the GNU Scientific Library but its good start and its runs just about as fast as possible.

I don't have any experience with the GNU Scientific Library but it doesn't look like it uses any vector intrinsics or anything that would make it especially non-portable. I think the only problem you are going to have is with all the mallocs you might blow out the Local Store if your data sizes are too big. Also, keep in mind that the more space you take up with text (libraries and your code) the less room you have for data.

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