Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OpenMP with 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?

like image 909
Zany Avatar asked Jan 20 '11 18:01

Zany


1 Answers

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.

like image 58
nlucaroni Avatar answered Oct 23 '22 05:10

nlucaroni