带有 OAML 的 OpenMP
有谁知道是否可以将 OpenMP 与 OCaml 源代码一起使用?
或者另一个与 OCaml 兼容的应用程序/工作环境,允许我运行利用多个内核的并行程序?
如果是,怎么办?你有一个简单的例子吗?
Does anyone know if it's possible use OpenMP with OCaml source code?
Or another application/ambient of work, compatible with OCaml, that allows me to run parallel programs that exploit multiple cores?
If yes, how? Have you got an easy example?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
目前有OC4MC(ocaml 4多核)来执行共享内存多处理。我没有使用过该项目,但最近有更新,所以我只能假设该项目仍在向前推进。
JOCAML 是实现连接演算的 ocaml 的另一个并发扩展。我也没有使用过这个项目,但他们的网站已更新,提到了最近发布的 ocaml 3.12。见评论。
如果您可以摆脱 openMP 范例,那么可以使用 mpi 的 ocaml 绑定。我使用这个项目,并且没有遇到任何问题,如果您熟悉 MPI,它会非常容易使用。
最后,一些与多核/并行处理相关的(可能未维护的)软件包可以在 ocaml 驼峰。
Currently there is OC4MC (ocaml 4 multi-core) to perform shared memory multi-processing. I have not used the project, but there are fairly recent updates, so I can only assume the project is still moving forward.
JOCAML is another concurrent extension to ocaml implementing the join calculus. I have also not used this project, but their site is updated to mention ocaml 3.12, which came out fairly recently. Disregard; see comment.
If you can pry yourself away from the openMP paradigm, then there are ocaml bindings for mpi. I use this project, and have not had problems with it, and it's pretty easy to use if you are familiar with MPI.
Lastly, some (possibly unmaintained) packages pertaining to multi-core / parallel processing can be found on the ocaml hump.