Skip to content

Commit 067169f

Browse files
committed
Fixes #259: break up dependency on ppx_jane
1 parent e8f8eb8 commit 067169f

File tree

8 files changed

+61
-22
lines changed

8 files changed

+61
-22
lines changed

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- Moved the multicore backend from a `device = stream` model to a single device model.
1717
- Got rid of `unsafe_cleanup`.
1818
- Got rid of `subordinal`.
19-
- Removed dependency on `Core`.
19+
- Removed dependency on `dore`, broke up dependency on `ppx_jane`.
2020
- TODO: Built per-tensor-node stream-to-stream synchronization into device-to-device copying functions, removed obsolete blocking synchronizations.
2121

2222
### Fixed

arrayjit.opam

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ depends: [
2222
"printbox-text"
2323
"ocannl_npy"
2424
"stdio"
25+
"sexplib"
2526
"num"
2627
"saturn_lockfree" {>= "0.5.0"}
2728
"ppxlib"
28-
"ppx_jane"
29+
"ppx_compare"
30+
"ppx_hash"
31+
"ppx_here"
32+
"ppx_sexp_conv"
33+
"ppx_string"
34+
"ppx_variants_conv"
2935
"ppx_expect"
3036
"ppx_minidebug" {>= "2.0.0"}
3137
"odoc" {with-doc}

arrayjit/lib/dune

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
printbox-text
88
npy
99
stdio
10+
sexplib
1011
str
1112
ctypes
1213
ctypes.foreign
@@ -23,7 +24,7 @@
2324
(-> cuda_backend.missing.ml))
2425
ppx_minidebug.runtime)
2526
(preprocess
26-
(pps ppx_jane ppx_minidebug))
27+
(pps ppx_compare ppx_hash ppx_here ppx_sexp_conv ppx_string ppx_variants_conv ppx_minidebug))
2728
(modules
2829
utils
2930
rand
@@ -48,4 +49,4 @@
4849
(modules ppx_helper)
4950
(libraries base ppxlib str)
5051
(preprocess
51-
(pps ppx_jane ppxlib.metaquot)))
52+
(pps ppxlib.metaquot)))

bin/dune

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
(modules hello_world)
44
(libraries ocannl base stdio)
55
(preprocess
6-
(pps ppx_jane ppx_ocannl))
6+
(pps ppx_ocannl))
77
(modes exe))
88

99
(executable
@@ -12,63 +12,63 @@
1212
(public_name ocannl)
1313
(name moons_benchmark)
1414
(modules moons_benchmark)
15-
(libraries ocannl base stdio)
15+
(libraries ocannl base stdio time_now)
1616
(preprocess
17-
(pps ppx_jane ppx_ocannl ppx_minidebug))
17+
(pps ppx_here ppx_sexp_conv ppx_string ppx_ocannl ppx_minidebug))
1818
(modes exe))
1919

2020
(executable
2121
(name compilation_speed)
2222
(modules compilation_speed)
23-
(libraries ocannl base stdio)
23+
(libraries ocannl base stdio time_now)
2424
(preprocess
25-
(pps ppx_jane ppx_ocannl))
25+
(pps ppx_sexp_conv ppx_ocannl))
2626
(modes exe))
2727

2828
(executable
2929
(name einsum_trivia)
3030
(modules einsum_trivia)
3131
(libraries ocannl base stdio)
3232
(preprocess
33-
(pps ppx_jane ppx_ocannl))
33+
(pps ppx_ocannl))
3434
(modes exe))
3535

3636
(executable
3737
(name zero2hero_1of7)
3838
(modules zero2hero_1of7)
3939
(libraries ocannl base stdio)
4040
(preprocess
41-
(pps ppx_jane ppx_ocannl ppx_minidebug))
41+
(pps ppx_here ppx_ocannl ppx_minidebug))
4242
(modes exe))
4343

4444
(executable
4545
(name micrograd_basic)
4646
(modules micrograd_basic)
4747
(libraries ocannl base stdio)
4848
(preprocess
49-
(pps ppx_jane ppx_ocannl ppx_minidebug))
49+
(pps ppx_ocannl ppx_minidebug))
5050
(modes exe))
5151

5252
(executable
5353
(name micrograd_demo)
5454
(modules micrograd_demo)
5555
(libraries ocannl base stdio)
5656
(preprocess
57-
(pps ppx_jane ppx_ocannl ppx_minidebug))
57+
(pps ppx_sexp_conv ppx_ocannl ppx_minidebug))
5858
(modes exe))
5959

6060
(executable
6161
(name moons_demo)
6262
(modules moons_demo)
6363
(libraries ocannl base stdio)
6464
(preprocess
65-
(pps ppx_jane ppx_ocannl ppx_minidebug))
65+
(pps ppx_sexp_conv ppx_ocannl ppx_minidebug))
6666
(modes exe))
6767

6868
(executable
6969
(name moons_demo_parallel)
7070
(modules moons_demo_parallel)
7171
(libraries ocannl base stdio)
7272
(preprocess
73-
(pps ppx_jane ppx_ocannl))
73+
(pps ppx_ocannl))
7474
(modes exe))

dune-project

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,17 @@
6464
printbox-text
6565
ocannl_npy
6666
stdio
67+
sexplib
6768
num
6869
(saturn_lockfree
6970
(>= 0.5.0))
7071
ppxlib
71-
ppx_jane
72+
ppx_compare
73+
ppx_hash
74+
ppx_here
75+
ppx_sexp_conv
76+
ppx_string
77+
ppx_variants_conv
7278
ppx_expect
7379
(ppx_minidebug
7480
(>= 2.0.0)))
@@ -110,9 +116,17 @@
110116
(angstrom
111117
(>= 0.15))
112118
stdio
119+
sexplib
113120
num
121+
time_now
114122
ppxlib
115-
ppx_jane
123+
ppx_compare
124+
ppx_fields_conv
125+
ppx_hash
126+
ppx_here
127+
ppx_sexp_conv
128+
ppx_string
129+
ppx_variants_conv
116130
ppx_expect
117131
(ppx_minidebug
118132
(>= 2.0.0))

lib/dune

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,23 @@
88
npy
99
angstrom
1010
stdio
11+
sexplib
1112
num
1213
str
1314
; mem_usage
1415
ppx_minidebug.runtime
1516
arrayjit)
1617
(preprocess
17-
(pps ppx_jane ppx_ocannl ppx_minidebug))
18+
(pps
19+
ppx_compare
20+
ppx_fields_conv
21+
ppx_hash
22+
ppx_here
23+
ppx_sexp_conv
24+
ppx_string
25+
ppx_variants_conv
26+
ppx_ocannl
27+
ppx_minidebug))
1828
(modules PrintBox_utils row shape tensor operation train nn_blocks)
1929
(modes byte native)
2030
(c_library_flags -pthread))
@@ -26,4 +36,4 @@
2636
(modules ppx_shared ppx_cd ppx_op ppx_ocannl)
2737
(libraries base ppxlib str ppx_arrayjit)
2838
(preprocess
29-
(pps ppx_jane ppxlib.metaquot)))
39+
(pps ppxlib.metaquot)))

neural_nets_lib.opam

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,17 @@ depends: [
2222
"ocannl_npy"
2323
"angstrom" {>= "0.15"}
2424
"stdio"
25+
"sexplib"
2526
"num"
27+
"time_now"
2628
"ppxlib"
27-
"ppx_jane"
29+
"ppx_compare"
30+
"ppx_fields_conv"
31+
"ppx_hash"
32+
"ppx_here"
33+
"ppx_sexp_conv"
34+
"ppx_string"
35+
"ppx_variants_conv"
2836
"ppx_expect"
2937
"ppx_minidebug" {>= "2.0.0"}
3038
"patdiff" {>= "v0.15.0"}

test/dune

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
(deps ocannl_config)
88
(libraries ocannl)
99
(preprocess
10-
(pps ppx_jane ppx_ocannl)))
10+
(pps ppx_ocannl)))
1111

1212
(library
1313
(name tutorials)
@@ -22,5 +22,5 @@
2222
zero2hero_1of7
2323
moons_demo_parallel)
2424
(preprocess
25-
(pps ppx_jane ppx_expect ppx_inline_test ppx_ocannl))
25+
(pps ppx_here ppx_expect ppx_inline_test ppx_ocannl))
2626
(modes native))

0 commit comments

Comments
 (0)