Skip to content

Commit d2a16c4

Browse files
panglesdjonludlam
authored andcommitted
Driver: by default, use a reasonable number of domains
1 parent 49837d8 commit d2a16c4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/driver/common_args.ml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ let stats =
2222

2323
let nb_workers =
2424
let doc = "Number of workers." in
25-
Arg.(value & opt int 15 & info [ "j" ] ~doc ~docs:Manpage.s_common_options)
25+
Arg.(
26+
value
27+
& opt int (Domain.recommended_domain_count () - 1)
28+
& info [ "j" ] ~doc ~docs:Manpage.s_common_options)
2629

2730
let odoc_bin =
2831
let doc = "Odoc binary to use" in

0 commit comments

Comments
 (0)