Skip to content

Commit

Permalink
Use physical cores for recommended parralellism
Browse files Browse the repository at this point in the history
  • Loading branch information
krtab authored and zapashcanon committed Jun 18, 2024
1 parent bfe3517 commit be1b0de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@
digestif
xmlm
(hc (>= 0.3))
(processor (>= 0.1))
dune-site)
(sites (share binc) (share libc)))
1 change: 1 addition & 0 deletions owi.opam
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ depends: [
"digestif"
"xmlm"
"hc" {>= "0.3"}
"processor" {>= "0.1"}
"dune-site"
]
build: [
Expand Down
6 changes: 3 additions & 3 deletions src/bin/owi.ml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ let unsafe =

let workers =
let doc =
"number of workers for symbolic execution. Defaults to a machine-specific \
value given by the OCaml Domain.recommended_domain_count function."
"number of workers for symbolic execution. Defaults to the number of \
physical cores."
in
Cmdliner.Arg.(
value
& opt int (Domain.recommended_domain_count ())
& opt int Processor.Query.core_count
& info [ "workers"; "w" ] ~doc ~absent:"n" )

let workspace =
Expand Down
1 change: 1 addition & 0 deletions src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
menhirLib
ocaml_intrinsics
ppxlib
processor
sedlex
uutf
runtime_events
Expand Down

0 comments on commit be1b0de

Please sign in to comment.