OpenCL 库和绑定
有人知道 CL 程序的库吗(如果有好的文档那就更好了)?
我对 D 语言绑定也很感兴趣。
有人见过比较具有 OpenCL 和/或 OpenGL 的本机代码应用程序的性能以及 Java 绑定 性能的基准吗?我知道DLL调用会导致性能下降。用 C/C++ 编写的应用程序是否会比用 Java 编写的应用程序更快?
Does anybody know any libraries of CL-procedures (it will be better if there is a good documentation)?
And Im also interested in D-languages binding.
Has somebody seen benchmarks that compares performance of native code applications with OpenCL and/or OpenGL and performance of Java Binding? I know that DLL calls cause of performance decline. Does an application written on C/C++ will be anyway faster than the same on Java?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
适合我的 JavaCL 怎么样?
据我所知,与其他开销(例如编译 CL 代码和与 GPU 交换数据)相比,绑定的成本相当小。
How about JavaCL which works for me ?
As far as I have seen the cost of binding is fairly small compared to other overheads such as compiling the CL code and exchanging data with the GPU.
正如 Jakob 已经说过的,我的 D 包装器是 @ https://github.com/Trass3r/cl4d
带有内联、-version=NO_CL_EXCEPTIONS 和正确的死代码消除,代码应该几乎等同于直接使用 C API 手动编码的应用程序。
因此,包装器几乎不引入任何开销,性能取决于您的内核和巧妙的内存传输。
As Jakob already said, my D wrapper is @ https://github.com/Trass3r/cl4d
With inlining, -version=NO_CL_EXCEPTIONS and proper dead code elimination the code should be nearly equivalent to a manually coded app using the C API directly.
So the wrapper introduces almost no overhead, performance depends on your kernels and clever memory transport.