Skip to content

Commit c710145

Browse files
committed
Defensively make sure that everything is assigned a package
1 parent 71c8f62 commit c710145

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

arrayjit/bin/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(executable
22
(package arrayjit)
3-
(public_name arrayjit_read_config)
3+
(public_name arrayjit.read_config)
44
(name read_config)
55
(modules read_config)
66
(libraries utils)

arrayjit/test/dune

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
(executable
22
(name test_numerical_types)
3+
(package arrayjit)
4+
(public_name arrayjit.test_numerical_types)
35
(modules test_numerical_types)
46
(libraries base stdio arrayjit.ir)
57
(preprocess
@@ -15,5 +17,6 @@
1517

1618
(rule
1719
(alias runtest)
20+
(package arrayjit)
1821
(action
1922
(diff test_numerical_types.expected test_numerical_types.output)))

test/einsum/dune

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
(test
55
(name moons_demo_variant)
6+
(package neural_nets_lib)
67
(deps ocannl_config)
78
(modules moons_demo_variant)
89
(libraries ocannl datasets)
@@ -11,6 +12,7 @@
1112

1213
(test
1314
(name einsum_trivia_exec)
15+
(package neural_nets_lib)
1416
(deps ocannl_config)
1517
(modules einsum_trivia_exec)
1618
(libraries ocannl)
@@ -19,6 +21,7 @@
1921

2022
(test
2123
(name test_conv_syntax)
24+
(package neural_nets_lib)
2225
(deps ocannl_config)
2326
(modules test_conv_syntax)
2427
(libraries ocannl)
@@ -27,6 +30,7 @@
2730

2831
(test
2932
(name test_print_style)
33+
(package neural_nets_lib)
3034
(deps ocannl_config)
3135
(modules test_print_style)
3236
(libraries ocannl)
@@ -35,6 +39,7 @@
3539

3640
(test
3741
(name test_surjectivity)
42+
(package neural_nets_lib)
3843
(deps ocannl_config)
3944
(modules test_surjectivity)
4045
(libraries ocannl)
@@ -43,6 +48,7 @@
4348

4449
(test
4550
(name test_accumulation_semantics)
51+
(package neural_nets_lib)
4652
(deps ocannl_config)
4753
(modules test_accumulation_semantics)
4854
(libraries ocannl)
@@ -62,13 +68,15 @@
6268

6369
(test
6470
(name inline_permuted_view)
71+
(package neural_nets_lib)
6572
(modules inline_permuted_view)
6673
(libraries base ocannl)
6774
(preprocess
6875
(pps ppx_here ppx_ocannl)))
6976

7077
(rule
7178
(alias runtest)
79+
(package neural_nets_lib)
7280
(target inline_permuted_view-c_fwd.ll.actual)
7381
(action
7482
(no-infer
@@ -80,6 +88,7 @@
8088

8189
(rule
8290
(alias runtest)
91+
(package neural_nets_lib)
8392
(action
8493
(diff
8594
"inline_permuted_view-c_fwd.ll.expected"

test/operations/dune

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
(executable
55
(name micrograd_demo_logging)
6+
(package neural_nets_lib)
7+
(public_name neural_nets_lib.micrograd_demo_logging)
68
(modules micrograd_demo_logging)
79
(libraries ocannl)
810
(preprocess
@@ -61,20 +63,23 @@
6163

6264
(rule
6365
(alias runtest)
66+
(package neural_nets_lib)
6467
(action
6568
(diff
6669
"micrograd_demo_logging-%{read:config/ocannl_backend.txt}-0-0.log.expected"
6770
"%{read:config/ocannl_backend.txt}-0-0.log.actual")))
6871

6972
(test
7073
(name threefry4x32_demo)
74+
(package neural_nets_lib)
7175
(modules threefry4x32_demo)
7276
(libraries base ocannl)
7377
(preprocess
7478
(pps ppx_here ppx_ocannl)))
7579

7680
(test
7781
(name top_down_prec)
82+
(package neural_nets_lib)
7883
(modules top_down_prec)
7984
(libraries base ocannl)
8085
(preprocess
@@ -106,41 +111,47 @@
106111

107112
(rule
108113
(alias runtest)
114+
(package neural_nets_lib)
109115
(action
110116
(diff
111117
"n3_fwd_with_prec-unoptimized.ll.expected"
112118
"n3_fwd_with_prec-unoptimized.ll.actual")))
113119

114120
(rule
115121
(alias runtest)
122+
(package neural_nets_lib)
116123
(action
117124
(diff
118125
"top_down_prec-unoptimized.ll.expected"
119126
"top_down_prec-unoptimized.ll.actual")))
120127

121128
(test
122129
(name test_vec_simple)
130+
(package neural_nets_lib)
123131
(modules test_vec_simple)
124132
(libraries base ocannl)
125133
(preprocess
126134
(pps ppx_here ppx_ocannl)))
127135

128136
(test
129137
(name test_uniform_demo)
138+
(package neural_nets_lib)
130139
(modules test_uniform_demo)
131140
(libraries base ocannl)
132141
(preprocess
133142
(pps ppx_here ppx_ocannl)))
134143

135144
(test
136145
(name test_threefry_precision)
146+
(package neural_nets_lib)
137147
(modules test_threefry_precision)
138148
(libraries base ocannl)
139149
(preprocess
140150
(pps ppx_here ppx_ocannl)))
141151

142152
(test
143153
(name test_where_simple)
154+
(package neural_nets_lib)
144155
(modules test_where_simple)
145156
(libraries ocannl base stdio)
146157
(preprocess

0 commit comments

Comments
 (0)