Skip to content

Commit 6180fdc

Browse files
committed
Prepare for release: Fix formatting, gh-pages script, bump version number
1 parent 9e9e35f commit 6180fdc

File tree

8 files changed

+15
-17
lines changed

8 files changed

+15
-17
lines changed

arrayjit.opam

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.4.1"
3+
version: "0.5.0.beta"
44
synopsis:
55
"An array language compiler with multiple backends (CPU, CUDA), staged compilation"
66
description:
@@ -37,11 +37,11 @@ depends: [
3737
"odoc" {with-doc}
3838
]
3939
depopts: [
40-
"cudajit" {>= "0.6.0"}
40+
"cudajit" {>= "0.6.1"}
4141
"gccjit" {>= "0.3.2"}
4242
]
4343
conflicts: [
44-
"cudajit" {< "0.6.0"}
44+
"cudajit" {< "0.6.1"}
4545
"gccjit" {< "0.3.2"}
4646
]
4747
build: [

arrayjit/lib/assignments.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ let fprint_hum ?name ?static_indices () ppf c =
364364

365365
let%track6_sexp lower ~unoptim_ll_source ~ll_source ~cd_source ~name static_indices (proc : t) :
366366
Low_level.optimized =
367-
let llc: Low_level.t = to_low_level proc in
367+
let llc : Low_level.t = to_low_level proc in
368368
(* Generate the low-level code before outputting the assignments, to force projections. *)
369369
(match cd_source with
370370
| None -> ()

arrayjit/lib/backends.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,7 @@ let finalize (type buffer_ptr dev runner event)
460460
and type runner = runner
461461
and type event = event) (ctx : Backend.context) : unit =
462462
Option.iter Backend.free_buffer ~f:(fun mem_free ->
463-
if
464-
Atomic.compare_and_set ctx.finalized false true
465-
then (
463+
if Atomic.compare_and_set ctx.finalized false true then (
466464
Backend.await ctx.stream;
467465
Map.iteri ctx.ctx_arrays ~f:(fun ~key ~data ->
468466
if

bin/hello_world_op.ml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ let%track2_sexp _Very_big_tensor (() : unit) : unit =
208208
let stream = Backend.(new_stream @@ get_device ~ordinal:0) in
209209
let ctx = Backend.make_context stream in
210210
Rand.init 0;
211-
let hey =
212-
TDSL.range_of_shape ~batch_dims:[ 6 ] ~input_dims:[ 7; 8 ] ~output_dims:[ 9 ] ()
213-
in
211+
let hey = TDSL.range_of_shape ~batch_dims:[ 6 ] ~input_dims:[ 7; 8 ] ~output_dims:[ 9 ] () in
214212
let%op ye = (hey * (1 + 1)) - 10 in
215213
Train.forward_and_forget backend ctx ye;
216214
Tensor.print ~with_code:false ~with_grad:false `Default hey;

bin/moons_benchmark.ml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ let classify_moons ~seed ~on_device ~inlining_cutoff ~num_streams ~batch_size ~b
186186
result_label = "init time in sec, min loss, last loss";
187187
result =
188188
[%sexp_of: float * float * float]
189-
(init_time_in_sec, List.reduce_exn rev_epoch_losses ~f:Float.min, List.hd_exn rev_epoch_losses);
189+
( init_time_in_sec,
190+
List.reduce_exn rev_epoch_losses ~f:Float.min,
191+
List.hd_exn rev_epoch_losses );
190192
}
191193
in
192194
Stdio.printf "\n\n%!";
@@ -211,7 +213,7 @@ let _cuda_benchmarks =
211213
~f:(fun batch_size ->
212214
List.concat_map [ (* 0; 1; 2; *) 3 ] ~f:(fun inlining_cutoff ->
213215
List.concat_map [ (* 1; 3; *) 7 (* *) ] ~f:(fun seed ->
214-
List.concat_map [ (* "gccjit" ; "cuda";"sync_cc" ; *) "cc"]
216+
List.concat_map [ (* "gccjit" ; "cuda";"sync_cc" ; *) "cc" ]
215217
~f:(fun backend_name ->
216218
List.concat_map [ (* CDSL.double; *) CDSL.single (* ; CDSL.half *) ]
217219
~f:(fun value_prec ->

dune-project

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
(name ocannl)
66

7-
(version 0.4.1)
7+
(version 0.5.0.beta)
88

99
(generate_opam_files true)
1010

@@ -80,12 +80,12 @@
8080
(>= 2.0.0)))
8181
(depopts
8282
(cudajit
83-
(>= 0.6.0))
83+
(>= 0.6.1))
8484
(gccjit
8585
(>= 0.3.2)))
8686
(conflicts
8787
(cudajit
88-
(< 0.6.0))
88+
(< 0.6.1))
8989
(gccjit
9090
(< 0.3.2)))
9191
(tags

neural_nets_lib.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.4.1"
3+
version: "0.5.0.beta"
44
synopsis:
55
"A from-scratch Deep Learning framework with an optimizing compiler, shape inference, concise syntax"
66
description:

ocannl_npy.opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This file is generated by dune, edit dune-project instead
22
opam-version: "2.0"
3-
version: "0.4.1"
3+
version: "0.5.0.beta"
44
synopsis: "Numpy file format support for ocaml"
55
maintainer: ["Lukasz Stafiniak <lukstafi@gmail.com>"]
66
authors: ["Laurent Mazare"]

0 commit comments

Comments
 (0)