@@ -4,52 +4,24 @@ NSYNC_COMMIT = "82b118aa7ace3132e517e2c467f8732978cf4023"
4
4
5
5
NSYNC_SHA256 = ""
6
6
7
+ ENZYMEXLA_COMMIT = "30194bfd56e844ebf4e5fa8a946efa26d344d1cd"
8
+
9
+ ENZYMEXLA_SHA256 = ""
10
+
7
11
http_archive (
8
12
name = "nsync" ,
9
13
sha256 = NSYNC_SHA256 ,
10
14
strip_prefix = "nsync-" + NSYNC_COMMIT ,
11
15
urls = ["https://github.com/wsmoses/nsync/archive/{commit}.tar.gz" .format (commit = NSYNC_COMMIT )],
12
16
)
13
17
14
- ENZYMEXLA_COMMIT = "0dc3ef87806ab3c9a695fe5c5689f8e2baf0d6cb"
15
-
16
- ENZYMEXLA_SHA256 = ""
17
-
18
18
http_archive (
19
19
name = "enzyme_ad" ,
20
20
sha256 = ENZYMEXLA_SHA256 ,
21
21
strip_prefix = "Enzyme-JAX-" + ENZYMEXLA_COMMIT ,
22
22
urls = ["https://github.com/EnzymeAD/Enzyme-JAX/archive/{commit}.tar.gz" .format (commit = ENZYMEXLA_COMMIT )],
23
23
)
24
24
25
- # Hedron's Compile Commands Extractor for Bazel
26
- # https://github.com/hedronvision/bazel-compile-commands-extractor
27
- http_archive (
28
- name = "hedron_compile_commands" ,
29
- strip_prefix = "bazel-compile-commands-extractor-4f28899228fb3ad0126897876f147ca15026151e" ,
30
-
31
- # Replace the commit hash (0e990032f3c5a866e72615cf67e5ce22186dcb97) in both places (below) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main), rather than using the stale one here.
32
- # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
33
- url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/4f28899228fb3ad0126897876f147ca15026151e.tar.gz" ,
34
- # When you first run this tool, it'll recommend a sha256 hash to put here with a message like: "DEBUG: Rule 'hedron_compile_commands' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = ..."
35
- )
36
-
37
- load ("@hedron_compile_commands//:workspace_setup.bzl" , "hedron_compile_commands_setup" )
38
-
39
- hedron_compile_commands_setup ()
40
-
41
- load ("@hedron_compile_commands//:workspace_setup_transitive.bzl" , "hedron_compile_commands_setup_transitive" )
42
-
43
- hedron_compile_commands_setup_transitive ()
44
-
45
- load ("@hedron_compile_commands//:workspace_setup_transitive_transitive.bzl" , "hedron_compile_commands_setup_transitive_transitive" )
46
-
47
- hedron_compile_commands_setup_transitive_transitive ()
48
-
49
- load ("@hedron_compile_commands//:workspace_setup_transitive_transitive_transitive.bzl" , "hedron_compile_commands_setup_transitive_transitive_transitive" )
50
-
51
- hedron_compile_commands_setup_transitive_transitive_transitive ()
52
-
53
25
load ("@enzyme_ad//:workspace.bzl" , "ENZYME_COMMIT" , "ENZYME_SHA256" , "JAX_COMMIT" , "JAX_SHA256" , "XLA_PATCHES" )
54
26
55
27
CUPTI_OLD = [
@@ -177,25 +149,6 @@ http_archive(
177
149
urls = ["https://github.com/giordano/xla/archive/{commit}.tar.gz" .format (commit = XLA_COMMIT )],
178
150
)
179
151
180
- load ("@xla//third_party/py:python_init_rules.bzl" , "python_init_rules" )
181
-
182
- python_init_rules ()
183
-
184
- load ("@xla//third_party/py:python_init_repositories.bzl" , "python_init_repositories" )
185
-
186
- python_init_repositories (
187
- requirements = {
188
- "3.9" : "//build:requirements_lock_3_9.txt" ,
189
- "3.10" : "//build:requirements_lock_3_10.txt" ,
190
- "3.11" : "//build:requirements_lock_3_11.txt" ,
191
- "3.12" : "//build:requirements_lock_3_12.txt" ,
192
- "3.13" : "//build:requirements_lock_3_13.txt" ,
193
- },
194
- )
195
-
196
- load ("@xla//third_party/py:python_init_toolchains.bzl" , "python_init_toolchains" )
197
-
198
- python_init_toolchains ()
199
152
#
200
153
# load("@xla//third_party/py:python_init_pip.bzl", "python_init_pip")
201
154
# python_init_pip()
@@ -233,6 +186,34 @@ load("@jax//third_party/xla:workspace.bzl", jax_xla_workspace = "repo")
233
186
234
187
jax_xla_workspace ()
235
188
189
+ load ("@xla//:workspace4.bzl" , "xla_workspace4" )
190
+
191
+ xla_workspace4 ()
192
+
193
+ load ("@xla//:workspace3.bzl" , "xla_workspace3" )
194
+
195
+ xla_workspace3 ()
196
+
197
+ load ("@xla//third_party/py:python_init_rules.bzl" , "python_init_rules" )
198
+
199
+ python_init_rules ()
200
+
201
+ load ("@xla//third_party/py:python_init_repositories.bzl" , "python_init_repositories" )
202
+
203
+ python_init_repositories (
204
+ requirements = {
205
+ "3.9" : "//build:requirements_lock_3_9.txt" ,
206
+ "3.10" : "//build:requirements_lock_3_10.txt" ,
207
+ "3.11" : "//build:requirements_lock_3_11.txt" ,
208
+ "3.12" : "//build:requirements_lock_3_12.txt" ,
209
+ "3.13" : "//build:requirements_lock_3_13.txt" ,
210
+ },
211
+ )
212
+
213
+ load ("@xla//third_party/py:python_init_toolchains.bzl" , "python_init_toolchains" )
214
+
215
+ python_init_toolchains ()
216
+
236
217
load ("@xla//third_party/llvm:workspace.bzl" , llvm = "repo" )
237
218
238
219
llvm ("llvm-raw" )
@@ -244,13 +225,6 @@ llvm_configure(
244
225
targets = LLVM_TARGETS ,
245
226
)
246
227
247
- load ("@xla//:workspace4.bzl" , "xla_workspace4" )
248
-
249
- xla_workspace4 ()
250
-
251
- load ("@xla//:workspace3.bzl" , "xla_workspace3" )
252
-
253
- xla_workspace3 ()
254
228
255
229
load ("@xla//:workspace2.bzl" , "xla_workspace2" )
256
230
@@ -285,6 +259,12 @@ load("@jax//third_party/flatbuffers:workspace.bzl", flatbuffers = "repo")
285
259
286
260
flatbuffers ()
287
261
262
+ load ("@jax//:test_shard_count.bzl" , "test_shard_count_repository" )
263
+
264
+ test_shard_count_repository (
265
+ name = "test_shard_count" ,
266
+ )
267
+
288
268
load (
289
269
"@rules_ml_toolchain//cc_toolchain/deps:cc_toolchain_deps.bzl" ,
290
270
"cc_toolchain_deps" ,
@@ -367,3 +347,32 @@ load(
367
347
nvshmem_redist_init_repository (
368
348
nvshmem_redistributions = NVSHMEM_REDISTRIBUTIONS ,
369
349
)
350
+
351
+ # Hedron's Compile Commands Extractor for Bazel
352
+ # https://github.com/hedronvision/bazel-compile-commands-extractor
353
+ http_archive (
354
+ name = "hedron_compile_commands" ,
355
+ strip_prefix = "bazel-compile-commands-extractor-4f28899228fb3ad0126897876f147ca15026151e" ,
356
+
357
+ # Replace the commit hash (0e990032f3c5a866e72615cf67e5ce22186dcb97) in both places (below) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main), rather than using the stale one here.
358
+ # Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README).
359
+ url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/4f28899228fb3ad0126897876f147ca15026151e.tar.gz" ,
360
+ # When you first run this tool, it'll recommend a sha256 hash to put here with a message like: "DEBUG: Rule 'hedron_compile_commands' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = ..."
361
+ )
362
+
363
+ load ("@hedron_compile_commands//:workspace_setup.bzl" , "hedron_compile_commands_setup" )
364
+
365
+ hedron_compile_commands_setup ()
366
+
367
+ load ("@hedron_compile_commands//:workspace_setup_transitive.bzl" , "hedron_compile_commands_setup_transitive" )
368
+
369
+ hedron_compile_commands_setup_transitive ()
370
+
371
+ load ("@hedron_compile_commands//:workspace_setup_transitive_transitive.bzl" , "hedron_compile_commands_setup_transitive_transitive" )
372
+
373
+ hedron_compile_commands_setup_transitive_transitive ()
374
+
375
+ load ("@hedron_compile_commands//:workspace_setup_transitive_transitive_transitive.bzl" , "hedron_compile_commands_setup_transitive_transitive_transitive" )
376
+
377
+ hedron_compile_commands_setup_transitive_transitive_transitive ()
378
+
0 commit comments