Closed JuliaLawall closed 10 years ago
Added Setcore.numcores : unit -> int and used to compute default number of cores = max(2,Setcores.numcores -1) in 125cb4d85508c2f9c61fd4db0e077eda999d6805
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.
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
Attachments: MIME accepted, Word deprecated
Office location:
Bureau 3020 (3rd floor) Batiment Sophie Germain Avenue de France
GPG fingerprint 2931 20CE 3A5A 5390 98EC 8BFC FCCA C3BE 39CB 12D3
For code portability, it would be nice if Parmap could figure out the number of available cores by itself.