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 committed Jun 7, 2024
1 parent 2051454 commit d6143bf
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 pyc) (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 @@ -60,12 +60,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 @@ -98,6 +98,7 @@
menhirLib
ocaml_intrinsics
ppxlib
processor
sedlex
uutf
runtime_events
Expand Down

0 comments on commit d6143bf

Please sign in to comment.