Skip to content

Commit bc36a00

Browse files
committed
Config for tests experiment failed, revert; tiny lint fixes; don't format the ppx test target
1 parent 07821ad commit bc36a00

File tree

5 files changed

+18
-12
lines changed

5 files changed

+18
-12
lines changed

.ocamlformat-ignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test_ppx/test_ppx_op_expected.ml

arrayjit/lib/backends.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

arrayjit/lib/cc_backend.ml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ type context = { label : string; arrays : ctx_arrays } [@@deriving sexp_of]
2525
let ctx_arrays context = context.arrays
2626

2727
type 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

3538
let buffer_ptr ctx_array = ctx_array
3639

arrayjit/lib/gcc_backend.gccjit.ml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@ type ctx_array = Ndarray.t [@@deriving sexp_of]
2929
type ctx_arrays = ctx_array Map.M(Tn).t [@@deriving sexp_of]
3030

3131
type 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

3941
let buffer_ptr ctx_array = ctx_array
4042

arrayjit/lib/rand.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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))
2828
end
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

3232
let random_lib =
3333
match random_config with

0 commit comments

Comments
 (0)