使用 flash 3d api 进行快速算术?
一些计算密集型软件现在使用 GPU 来解决数学问题。现在闪存有了 GPU 支持,是否可以使用闪存来解决数学问题?该怎么办呢。
换句话说,闪存是否公开了足够的低级 API 来充分控制 GPU 的行为来执行此类任务?
问题示例;查找具有以下哈希值的消息:2987432847298374298374982374
Some computationally intensive software are now using the GPU to solve mathematical problems. Now that flash has GPU support, is it possible to use flash to crunch math problems? How would it be done.
In other words, does flash expose sufficient low level API to control the behavior of the GPU sufficiently to perform such a task?
Example of problems; Find a message with the following hash: 2987432847298374298374982374
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Yes, since you can provide textures for random access input (if they provide constant buffers that would be nicer) and render to BitmapData for output, which are the minimum operations you need for GPGPU.没有太多关于 API 或 AGAL 指令集的完整程度的信息 - 我还没有看到任何整数寄存器或按位操作的示例,这对于您的示例问题非常有用,因此潜在的性能可能比DirectX 或 OpenGL 实现可以实现,但它仍然比 ActionScript 好得多!
不过,我应该指出,这将是老式 GPGPU,这比目前使用新的 OpenCL 和 DirectCompute API 更难。
Yes, since you can provide textures for random access input (if they provide constant buffers that would be nicer) and render to BitmapData for output, which are the minimum operations you need for GPGPU. There's not too much information on how complete the API, or AGAL's instruction set, is - I haven't seen any examples of integer registers or bitwise operations which would be incredibly useful for your example problem, so the potential performance might be far worse than a DirectX or OpenGL implementation could get, but it should still be far better than ActionScript!
I should note, however, that this would be old-school GPGPU, which is even harder to do than it currently is with the new OpenCL and DirectCompute APIs.
它不是当前的 Flash Player,而是仍在开发中的具有 gpu api 访问权限的 Flash Player Molehill。请参阅以下链接:
特别是
编辑:添加更多链接,因为我找到了好的链接。
It's not the current Flash Player, but the Flash Player Molehill which is still in development that has gpu api access. See the following links:
and especially
Edit: Adding more links as I find good ones.