Skip to content

Commit 8b046ac

Browse files
committed
patch jax
1 parent 53ce83b commit 8b046ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

deps/ReactantExtra/WORKSPACE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,17 @@ LLVM_TARGETS = select({
150150
# ],
151151
# )
152152

153+
JAX_PATCHES = [
154+
"""
155+
sed -i.bak0 "s/ cast/ llvm::cast/g" jaxlib/mosaic/dialect/gpu/mosaic_gpu.cc
156+
"""
157+
]
158+
153159
http_archive(
154160
name = "jax",
155161
patch_args = ["-p1"],
156162
patches = ["@enzyme_ad//:patches/jax.patch"],
163+
patch_cmds = JAX_PATCHES,
157164
sha256 = JAX_SHA256,
158165
strip_prefix = "jax-" + JAX_COMMIT,
159166
urls = ["https://github.com/google/jax/archive/{commit}.tar.gz".format(commit = JAX_COMMIT)],

0 commit comments

Comments
 (0)