swh:1:snp:2d869aa00591d2ac8ec8e7abacdda563d413189d
Raw File
Tip revision: 45b0039a63c5da3164c6c2c3ff5deabea09ae4ba authored by Roberto Di Cosmo on 29 July 2011, 20:13:57 UTC
First stable version of the library, stand-alone, defunctorised, with one example.
Tip revision: 45b0039
parmap.mli
(**************************************************************************)
(* ParMap: a simple library to perform Map computations on a multi-core   *)
(*                                                                        *)
(*  Author(s):  Marco Danelutto, Roberto Di Cosmo                         *)
(*                                                                        *)
(*  This library is free software: you can redistribute it and/or modify  *)
(*  it under the terms of the GNU Lesser General Public License as        *)
(*  published by the Free Software Foundation, either version 3 of the    *)
(*  License, or (at your option) any later version.  A special linking    *)
(*  exception to the GNU Lesser General Public License applies to this    *)
(*  library, see the LICENSE file for more information.                   *)
(**************************************************************************)

(** Module [Parmap]: parallel map on multicores. *)

(** {6 Parallel map} *)

val parmap : ('a -> 'b) -> 'a list -> ?ncores:int -> 'b list
  (** [parmap f l ~ncores:n ] computes [List.map f l] 
      by forking [n] processes on a mulicore machine. *)
back to top