Revision d23100d28be7288611eeb474d98d624750a2c56b authored by Roberto Di Cosmo on 30 November 2017, 20:59:20 UTC, committed by GitHub on 30 November 2017, 20:59:20 UTC
Add support for user-level enabling/disabling of core pinning
2 parent s f7346fc + 7c3283c
Raw File
topnat.ml
(* simple exemple to show how to use Parmap on the native toplevel *)
(* just run ocamlnat and then #use this file *)
#load "unix.cmxs";;
#load "bigarray.cmxs";;
#load "parmap.cmxs";;
let mkn n = let rec aux acc = function 0 -> acc | n -> aux (n::acc) (n-1) in aux [] n;;
Printf.printf "%d\n" (List.length (Parmap.parmap (fun x -> x+1) (Parmap.L (mkn 10000)) ~ncores:2));;
back to top