Skip to content

Commit

Permalink
With mosaic
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses committed Feb 6, 2024
1 parent 185b4c0 commit 63fb3db
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
10 changes: 5 additions & 5 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ load("@rules_cc//cc:repositories.bzl", "rules_cc_dependencies")

rules_cc_dependencies()

LLVM_COMMIT = "3a82a1c3f6bdc9259cc4641f66fc76d1e171e382"
LLVM_SHA256 = "c525cdb14bb239695852d696bcd13a6d47e579be18386ba2048515fe7f059153"
LLVM_COMMIT = "0f8680b9d87fa9e8839bd8e39ce605d64148ace6"
LLVM_SHA256 = ""
LLVM_TARGETS = ["X86", "AArch64", "AMDGPU", "NVPTX"]

http_archive(
Expand All @@ -30,7 +30,7 @@ http_archive(
load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure")
llvm_configure(name = "llvm-project", targets = LLVM_TARGETS)

XLA_COMMIT = "28d55494cbaf896e52fff2d9a5255eff19e8c072"
XLA_COMMIT = "c5163ff997d8be8fd32136e25050fa32c67c989f"
XLA_SHA256 = ""

http_archive(
Expand Down Expand Up @@ -60,7 +60,7 @@ load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependen

pip_install_dependencies()

ENZYME_COMMIT = "bad7df07dd7657c0c6884667d62ad1d9bcfd1d16"
ENZYME_COMMIT = "dc5eaa56b9fbb64aad911ffed27e7a59e88a9b32"
ENZYME_SHA256 = ""

http_archive(
Expand All @@ -70,7 +70,7 @@ http_archive(
urls = ["https://github.com/EnzymeAD/Enzyme/archive/{commit}.tar.gz".format(commit = ENZYME_COMMIT)],
)

JAX_COMMIT = "f691fe468a8e1f8545f7d624055d58b823ee3201"
JAX_COMMIT = "9a098e922aff62a3b49bd673b9518d97ee599248"
JAX_SHA256 = ""

http_archive(
Expand Down
16 changes: 8 additions & 8 deletions patches/jax.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- a/jaxlib/cpu/BUILD
+++ a/jaxlib/cpu/BUILD
@@ -79,7 +79,7 @@ cc_library(
":ducc_fft_flatbuffers_cc",
"@xla//xla/service:custom_call_status",
"@com_github_google_flatbuffers//:flatbuffers",
- "@ducc//:fft",
+ "@ducc//:fft_wrapper",
--- a/jaxlib/mosaic/BUILD
+++ b/jaxlib/mosaic/BUILD
@@ -20,7 +20,7 @@ licenses(["notice"])
package(
default_applicable_licenses = [],
default_visibility = [
- "//:__subpackages__",
+ "//visibility:public",
],
)

6 changes: 6 additions & 0 deletions src/enzyme_ad/jax/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ pybind_library(
"@llvm-project//mlir:ArithDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:Parser",

# EnzymeMLIR
"@enzyme//:EnzymeMLIR",

# Mosaic
"@jax//jaxlib/mosaic:tpu_dialect",
],
)

Expand Down

0 comments on commit 63fb3db

Please sign in to comment.