-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move deps to modules * update * remove `setup` rules * reorder `xla_workspace` calls * Move Hedron commit to `workspace.bzl` * format code * fix typo
- Loading branch information
Showing
10 changed files
with
80 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
"""Loads Enzyme.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "ENZYME_COMMIT", "ENZYME_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "enzyme", | ||
sha256 = ENZYME_SHA256, | ||
strip_prefix = "Enzyme-" + ENZYME_COMMIT + "/enzyme", | ||
urls = ["https://github.com/EnzymeAD/Enzyme/archive/{commit}.tar.gz".format(commit = ENZYME_COMMIT)], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Loads Hedron's Compile Commands Extractor for Bazel.""" | ||
# https://github.com/hedronvision/bazel-compile-commands-extractor | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "HEDRON_COMPILE_COMMANDS_COMMIT", "HEDRON_COMPILE_COMMANDS_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "hedron_compile_commands", | ||
sha256 = HEDRON_COMPILE_COMMANDS_SHA256, | ||
# Replace the commit hash in both places (below) with the latest (https://github.com/hedronvision/bazel-compile-commands-extractor/commits/main), rather than using the stale one here. | ||
# Even better, set up Renovate and let it do the work for you (see "Suggestion: Updates" in the README). | ||
url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/{commit}.tar.gz".format(commit = HEDRON_COMPILE_COMMANDS_COMMIT), | ||
strip_prefix = "bazel-compile-commands-extractor-" + HEDRON_COMPILE_COMMANDS_COMMIT, | ||
# 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 = ..." | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Loads JAX.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "JAX_COMMIT", "JAX_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "jax", | ||
sha256 = JAX_SHA256, | ||
strip_prefix = "jax-" + JAX_COMMIT, | ||
urls = ["https://github.com/google/jax/archive/{commit}.tar.gz".format(commit = JAX_COMMIT)], | ||
patch_args = ["-p1"], | ||
patches = ["//:patches/jax.patch"], | ||
) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""Loads XLA.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("@jax//third_party/xla:workspace.bzl", "XLA_COMMIT", "XLA_SHA256") | ||
load("//:workspace.bzl", "XLA_PATCHES") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "xla", | ||
sha256 = XLA_SHA256, | ||
strip_prefix = "xla-" + XLA_COMMIT, | ||
urls = ["https://github.com/wsmoses/xla/archive/{commit}.tar.gz".format(commit = XLA_COMMIT)], | ||
patch_cmds = XLA_PATCHES, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters