package commons

  1. Overview
  2. Docs

Source file Parmap_helpers.ml

1
2
3
4
let get_cpu_count () : int =
  (* Parmap subtracts 1 from the number of detected cores.
     This comes with no guarantees. *)
  max 1 (Parmap.get_default_ncores () + 1)
OCaml

Innovation. Community. Security.