Skip to content

Commit bef4ee5

Browse files
committed
Scale up timeout... to 100 seconds
Signed-off-by: Lukasz Stafiniak <lukstafi@gmail.com>
1 parent 1edfb11 commit bef4ee5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

arrayjit/lib/cc_backend.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ let%track7_sexp c_compile_and_load ~f_path =
111111
(* Note: it seems waiting for the file to exist is necessary here and below regardless of needing
112112
the logs. *)
113113
let start_time = Unix.gettimeofday () in
114-
let timeout = Float.of_string @@ Utils.get_global_arg ~default:"5.0" ~arg_name:"cc_backend_post_compile_timeout" in
114+
let timeout = Float.of_string @@ Utils.get_global_arg ~default:"100.0" ~arg_name:"cc_backend_post_compile_timeout" in
115115
while rc = 0 && (not @@ (Stdlib.Sys.file_exists libname && Stdlib.Sys.file_exists log_fname)) do
116116
let elapsed = Unix.gettimeofday () -. start_time in
117117
if Float.(elapsed > timeout) then

ocannl_config.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,6 @@ default_prec=single
204204
# (where the initialization code sets the values).
205205
limit_constant_fill_size=16
206206

207-
# The timeout for the CC backend to wait for the compilation files to appear.
207+
# The timeout for the CC backend to wait for the compilation files to appear, in seconds.
208208
# This is the wait after the compiler command exits (doesn't include the compilation time).
209-
cc_backend_post_compile_timeout=5.0
209+
cc_backend_post_compile_timeout=100.0

0 commit comments

Comments
 (0)