rdicosmo / parmap

Parmap is a minimalistic library allowing to exploit multicore architecture for OCaml programs with minimal modifications.
http://rdicosmo.github.io/parmap/
Other
94 stars 20 forks source link

Number of cores #19

Closed JuliaLawall closed 10 years ago

JuliaLawall commented 10 years ago

For code portability, it would be nice if Parmap could figure out the number of available cores by itself.

rdicosmo commented 10 years ago

Added Setcore.numcores : unit -> int and used to compute default number of cores = max(2,Setcores.numcores -1) in 125cb4d85508c2f9c61fd4db0e077eda999d6805

UnixJunkie commented 10 years ago

But figuring this out would need some C code so that it works on most platforms. Roberto knows some project where there is such C code (maybe distcc, I am not sure), we would need to wrapp it in OCaml though.

rdicosmo commented 10 years ago

I added a simple solution that works at least on Linux machines... committed in trunk

On Wed, Feb 26, 2014 at 06:05:07PM -0800, Francois Berenger wrote:

But figuring this out would need some C code so that it works on most platforms. Roberto knows some project where there is such C code (maybe distcc, I am not sure), we would need to wrapp it in OCaml though.

— Reply to this email directly or view it on GitHub.*

Roberto Di Cosmo


Professeur En delegation a l'INRIA PPS E-mail: roberto@dicosmo.org Universite Paris Diderot WWW : http://www.dicosmo.org Case 7014 Tel : ++33-(0)1-57 27 92 20 5, Rue Thomas Mann
F-75205 Paris Cedex 13 Identica: http://identi.ca/rdicosmo

FRANCE. Twitter: http://twitter.com/rdicosmo

Attachments: MIME accepted, Word deprecated

http://www.gnu.org/philosophy/no-word-attachments.html

Office location:

Bureau 3020 (3rd floor) Batiment Sophie Germain Avenue de France

Metro Bibliotheque Francois Mitterrand, ligne 14/RER C

GPG fingerprint 2931 20CE 3A5A 5390 98EC 8BFC FCCA C3BE 39CB 12D3