-
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.
* organize platforms and toolchains * hardcode libcxxwrap_julia path * format code * remove outdated hardcoded symbolic links * add third party bazel wrapper to libcxxwrap_julia * readd platforms * some small fixes * first step on moving externals to modular organization * refactor libcxxwrap_julia on top of `cc_import` * use modular workspaces * add `libcxxwrap_julia` as dependency * hardcode julia dep * export `reactant_*` functions * downgrade libcxxwrap_julia to v0.13.3 * fix major version when linking to libcxxwrap_julia * remove legacy export * move `API.cpp` to new `src/` folder to start modularizing code * export `register_julia_module` from libcxxwrap_julia * fix symbol visibility * clean code remove libcxxwrap and julia deps * format code * import hedron compile commands from Enzyme-JAX * move deps commits to `workspace.bzl`
- Loading branch information
Showing
28 changed files
with
397 additions
and
338 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
File renamed without changes.
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 @@ | ||
licenses(["notice"]) |
Empty file.
10 changes: 10 additions & 0 deletions
10
deps/ReactantExtra/third_party/build_bazel_rules_apple/workspace.bzl
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,10 @@ | ||
"""Loads bazel rules for apple.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "build_bazel_rules_apple", | ||
sha256 = "34c41bfb59cdaea29ac2df5a2fa79e5add609c71bb303b2ebb10985f93fa20e7", | ||
url = "https://github.com/bazelbuild/rules_apple/releases/download/3.1.1/rules_apple.3.1.1.tar.gz", | ||
) |
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("@enzyme_ad//: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,12 @@ | ||
"""Loads Enzyme-JAX.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "ENZYMEXLA_COMMIT", "ENZYMEXLA_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "enzyme_ad", | ||
sha256 = ENZYMEXLA_SHA256, | ||
strip_prefix = "Enzyme-JAX-" + ENZYMEXLA_COMMIT, | ||
urls = ["https://github.com/EnzymeAD/Enzyme-JAX/archive/{commit}.tar.gz".format(commit = ENZYMEXLA_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,14 @@ | ||
"""Loads Enzyme-JAX.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("@enzyme_ad//: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 = ["@enzyme_ad//: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,12 @@ | ||
"""Loads nsync.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "NSYNC_COMMIT", "NSYNC_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "nsync", | ||
sha256 = NSYNC_SHA256, | ||
strip_prefix = "nsync-" + NSYNC_COMMIT, | ||
urls = ["https://github.com/wsmoses/nsync/archive/{commit}.tar.gz".format(commit = NSYNC_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,14 @@ | ||
"""Loads bazel rules_cc.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "RULES_CC_COMMIT", "RULES_CC_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "rules_cc", | ||
sha256 = RULES_CC_SHA256, | ||
strip_prefix = "rules_cc-" + RULES_CC_COMMIT, | ||
urls = [ | ||
"https://github.com/bazelbuild/rules_cc/archive/{commit}.tar.gz".format(commit = RULES_CC_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,12 @@ | ||
"""Loads rules_python (downgrades over the one used by XLA due to a bug in the latest release).""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "RULES_PYTHON_SHA256", "RULES_PYTHON_VERSION") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "rules_python", | ||
sha256 = RULES_PYTHON_SHA256, | ||
strip_prefix = "rules_python-" + RULES_PYTHON_VERSION, | ||
url = "https://github.com/bazelbuild/rules_python/releases/download/{commit}/rules_python-{commit}.tar.gz".format(commit = RULES_PYTHON_VERSION), | ||
) |
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 upb.""" | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
load("//:workspace.bzl", "UPB_COMMIT", "UPB_SHA256") | ||
|
||
def repo(): | ||
http_archive( | ||
name = "upb", | ||
sha256 = UPB_SHA256, | ||
strip_prefix = "upb-" + UPB_COMMIT, | ||
patch_cmds = [ | ||
"sed -i.bak0 's/@bazel_tools\\/\\/platforms:windows/@platforms\\/\\/os:windows/g' BUILD", | ||
"sed -i.bak0 's/-Werror//g' BUILD", | ||
], | ||
url = "https://github.com/protocolbuffers/upb/archive/{commit}.tar.gz".format(commit = UPB_COMMIT), | ||
) |
Empty file.
Oops, something went wrong.