0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00
zml/MODULE.bazel

164 lines
5.4 KiB

2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
workspace: update rules_cc=0.1.1 and bazel=8.1.1 (#196) This PR updates the `rules_cc` dependency from `0.1.0` to `0.1.1` and the Bazel version from `8.0.1` to `8.1.1`. ### Changes: 1. Updated `rules_cc` version in `zml/MODULE.bazel` from 0.1.0 to 0.1.1: ```bazel bazel_dep(name = "rules_cc", version = "0.1.1") ``` 2. Updated the Bazel version in `zml/examples/.bazelversion` from `8.0.1` to `8.1.1`. ### Context: 1. Initially, running `bazel run -c opt //mnist` failed due to a Bazel version mismatch (required `8.0.1` but the currently brew-installable version is `8.1.1`). This was resolved by updating `.bazelversion`. 2. After fixing the Bazel version, the build failed again this time due to a yanked version of `rules_cc` (`0.1.0`). > ERROR: Error computing the main repository mapping: Yanked version detected in your resolved dependency graph: rules_cc@0.1.0, for the reason: rules_cc 0.1.0 is yanked due to incompatible change (prematurely removing cc_proto_library from defs.bzl), please upgrade to 0.1.1. > Yanked versions may contain serious vulnerabilities and should not be used. To fix this, use a bazel_dep on a newer version of this module. To continue using this version, allow it using the --allow_yanked_versions flag or the BZLMOD_ALLOW_YANKED_VERSIONS env variable. 3. Updating `rules_cc` to `0.1.1` resolved this issue. ### Testing: 1. Verified the update by running: ```zsh git clone https://github.com/jaco-bro/zml cd zml/examples bazel run -c opt //mnist ``` 2. The build and execution succeeded without errors. ``` info(mnist): ✅ RECOGNIZED DIGIT: +-------------+ | ### | | # # | | # # | | # # | | # # | | # # | | ### | +-------------+ ```
2025-03-04 00:46:50 +09:00
workspace: bump llvm / xla / stablehlo / pjrt plugins and restore disabled tests xla@4663f04 (#98) - workspace: new module versions added to Bazel registry: - deps/xla: https://github.com/openxla/xla/commit/4663f04d2653d686833f9c306bd0d899c3127358 (20241025.0-4663f04) This version introduces an upgraded overlay with Python repository initialization for the TSL extension. The changes were necessitated by this XLA commit: https://github.com/openxla/xla/commit/19b4ecbe98e2c2910d6ff6532cdb64636a71e6d5#diff-df5471accc0ccfdac45fb8397fb8e1488565baf112c72487912deda919680f8aR841 , which triggers a repository call. Python's hermetic version is provided via the .bazelrc file. - deps/stablehlo: https://github.com/openxla/stablehlo/commit/f7f8e4e35296deeff2e12e39421ac8d9599ba340 (20241021.0-1c0b606) - deps/llvm: https://github.com/llvm/llvm-project/commit/f7f8e4e35296deeff2e12e39421ac8d9599ba340 (20241022.0-6c4267f) This version includes an upgraded module declaration with rules_python dependency added, as LLVM prepares its overlay for Bazel v8. Relevant LLVM changes here: https://github.com/llvm/llvm-project/commit/3903cb4695012fb85a76c83b5616f2ffe6fa10f4 - deps/runtimes: use PJRT artifacts v3.0.0 (https://github.com/zml/pjrt-artifacts/releases/tag/v3.0.0) - workspace: align used versions of rules_zig in the Bazel dependency graph - pjrt: expose getPluginAttributes and getPluginAttribute private APIs and stablehloCurrentVersion public API - pjrt: updated customCallRegistry function with the new FFI provided by the PJRT API GPU extension Minimal support for this feature was added, as this is not the main focus of the current PR. See related changes in XLA here: https://github.com/openxla/xla/commit/ef85a7bcc308313492ebc50295a8a08b4e51b8f5 - dialects/mlir/stablehlo: expose getCurrentVersion API and fix broken stablehloVersionFromCompatibilityRequirement API - zml/pjrtx: serialize IR to the PJRT plugin's supported HLO version. If the plugin attribute is unavailable, it falls back to the StableHLO's compatibility requirement version. - zml/tensor: tests using batching dims for gather and scatter are now re-enabled
2024-11-25 15:53:25 +01:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
workspace: bump llvm / xla / stablehlo / pjrt plugins and restore disabled tests xla@4663f04 (#98) - workspace: new module versions added to Bazel registry: - deps/xla: https://github.com/openxla/xla/commit/4663f04d2653d686833f9c306bd0d899c3127358 (20241025.0-4663f04) This version introduces an upgraded overlay with Python repository initialization for the TSL extension. The changes were necessitated by this XLA commit: https://github.com/openxla/xla/commit/19b4ecbe98e2c2910d6ff6532cdb64636a71e6d5#diff-df5471accc0ccfdac45fb8397fb8e1488565baf112c72487912deda919680f8aR841 , which triggers a repository call. Python's hermetic version is provided via the .bazelrc file. - deps/stablehlo: https://github.com/openxla/stablehlo/commit/f7f8e4e35296deeff2e12e39421ac8d9599ba340 (20241021.0-1c0b606) - deps/llvm: https://github.com/llvm/llvm-project/commit/f7f8e4e35296deeff2e12e39421ac8d9599ba340 (20241022.0-6c4267f) This version includes an upgraded module declaration with rules_python dependency added, as LLVM prepares its overlay for Bazel v8. Relevant LLVM changes here: https://github.com/llvm/llvm-project/commit/3903cb4695012fb85a76c83b5616f2ffe6fa10f4 - deps/runtimes: use PJRT artifacts v3.0.0 (https://github.com/zml/pjrt-artifacts/releases/tag/v3.0.0) - workspace: align used versions of rules_zig in the Bazel dependency graph - pjrt: expose getPluginAttributes and getPluginAttribute private APIs and stablehloCurrentVersion public API - pjrt: updated customCallRegistry function with the new FFI provided by the PJRT API GPU extension Minimal support for this feature was added, as this is not the main focus of the current PR. See related changes in XLA here: https://github.com/openxla/xla/commit/ef85a7bcc308313492ebc50295a8a08b4e51b8f5 - dialects/mlir/stablehlo: expose getCurrentVersion API and fix broken stablehloVersionFromCompatibilityRequirement API - zml/pjrtx: serialize IR to the PJRT plugin's supported HLO version. If the plugin attribute is unavailable, it falls back to the StableHLO's compatibility requirement version. - zml/tensor: tests using batching dims for gather and scatter are now re-enabled
2024-11-25 15:53:25 +01:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00
2024-09-17 11:11:18 +02:00