Skip to content

Commit

Permalink
makes tests compatible with 32-bit systems (#17)
Browse files Browse the repository at this point in the history
We hit the maximum array size cap, which is less than 2M in 32-bit systems.
  • Loading branch information
ivg authored Dec 6, 2022
1 parent 7b7b0d2 commit a5eb5cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib_test/run_tests.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let setup_log level =

let seed = [| 7; 8; 42; 56 |]
let tasks = 64
let task_size = 4096 * 1024
let task_size = min (4096 * 1024) (Sys.max_array_length / 2)
let delay = 4. *. atan 1.

let task (data,push) =
Expand Down
2 changes: 1 addition & 1 deletion lwt-parallel.opam
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build: [

depends: [
"base-unix"
"dune"
"dune" {>= "1.6"}
"fmt"
"logs"
"lwt" {>= "2.7.0"}
Expand Down

0 comments on commit a5eb5cf

Please sign in to comment.