File tree Expand file tree Collapse file tree 5 files changed +18
-12
lines changed Expand file tree Collapse file tree 5 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 1+ test_ppx/test_ppx_op_expected.ml
Original file line number Diff line number Diff line change @@ -1347,7 +1347,7 @@ let fresh_backend ?backend_name ?(config = Physical_devices_only) () =
13471347 let backend =
13481348 match
13491349 Option. value_or_thunk backend_name ~default: (fun () ->
1350- Utils. get_global_arg ~arg_name: " backend" ~default: " sync_cc " )
1350+ Utils. get_global_arg ~arg_name: " backend" ~default: " pipes_cc " )
13511351 |> String. lowercase
13521352 with
13531353 | "cc" -> (module Cc_backend : Backend )
Original file line number Diff line number Diff line change @@ -25,12 +25,15 @@ type context = { label : string; arrays : ctx_arrays } [@@deriving sexp_of]
2525let ctx_arrays context = context.arrays
2626
2727type buffer_ptr = ctx_array [@@ deriving sexp_of ]
28- (* * Alternative approach: {[
29- type buffer_ptr = unit Ctypes_static.ptr
3028
31- let sexp_of_buffer_ptr ptr = Sexp.Atom (Ops.ptr_to_string ptr Ops.Void_prec)
32- let buffer_ptr ctx_array = Ndarray.get_voidptr ctx_array
33- ]} *)
29+ (* * Alternative approach:
30+
31+ {[
32+ type buffer_ptr = unit Ctypes_static.ptr
33+
34+ let sexp_of_buffer_ptr ptr = Sexp.Atom (Ops.ptr_to_string ptr Ops.Void_prec)
35+ let buffer_ptr ctx_array = Ndarray.get_voidptr ctx_array
36+ ]} *)
3437
3538let buffer_ptr ctx_array = ctx_array
3639
Original file line number Diff line number Diff line change @@ -29,12 +29,14 @@ type ctx_array = Ndarray.t [@@deriving sexp_of]
2929type ctx_arrays = ctx_array Map .M (Tn ).t [@@ deriving sexp_of ]
3030
3131type buffer_ptr = ctx_array [@@ deriving sexp_of ]
32- (* * Alternative approach: {[
33- type buffer_ptr = unit Ctypes_static.ptr
32+ (* * Alternative approach:
3433
35- let sexp_of_buffer_ptr ptr = Sexp.Atom (Ops.ptr_to_string ptr Ops.Void_prec)
36- let buffer_ptr ctx_array = Ndarray.get_voidptr ctx_array
37- ]} *)
34+ {[
35+ type buffer_ptr = unit Ctypes_static.ptr
36+
37+ let sexp_of_buffer_ptr ptr = Sexp.Atom (Ops.ptr_to_string ptr Ops.Void_prec)
38+ let buffer_ptr ctx_array = Ndarray.get_voidptr ctx_array
39+ ]} *)
3840
3941let buffer_ptr ctx_array = ctx_array
4042
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ module Random_for_tests = struct
2727 let int high = Int32. (to_int_trunc @@ (rand_int32 () % of_int_trunc high))
2828end
2929
30- let random_config = Utils. get_global_arg ~arg_name: " randomness_lib" ~default: " for_tests "
30+ let random_config = Utils. get_global_arg ~arg_name: " randomness_lib" ~default: " stdlib "
3131
3232let random_lib =
3333 match random_config with
You can’t perform that action at this time.
0 commit comments