-
Notifications
You must be signed in to change notification settings - Fork 74.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move ABSL, farmhash, and gemmlowp repository macros to their own files.
PiperOrigin-RevId: 359128955 Change-Id: Id3491fe77d17334b051737571e013d0f1747e632
- Loading branch information
1 parent
f2bcdf5
commit 61d5053
Showing
12 changed files
with
84 additions
and
40 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
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
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.
File renamed without changes.
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,24 @@ | ||
"""Provides the repository macro to import absl.""" | ||
|
||
load("//third_party:repo.bzl", "third_party_http_archive") | ||
|
||
def repo(name): | ||
"""Imports absl.""" | ||
|
||
# Attention: tools parse and update these lines. | ||
ABSL_COMMIT = "df3ea785d8c30a9503321a3d35ee7d35808f190d" | ||
ABSL_SHA256 = "f368a8476f4e2e0eccf8a7318b98dafbe30b2600f4e3cf52636e5eb145aba06a" | ||
|
||
third_party_http_archive( | ||
name = name, | ||
sha256 = ABSL_SHA256, | ||
build_file = "//third_party/absl:com_google_absl.BUILD", | ||
# TODO: Remove the patch when https://github.com/abseil/abseil-cpp/issues/326 is resolved | ||
# and when TensorFlow is build against CUDA 10.2 | ||
patch_file = "//third_party/absl:com_google_absl_fix_mac_and_nvcc_build.patch", | ||
strip_prefix = "abseil-cpp-{commit}".format(commit = ABSL_COMMIT), | ||
urls = [ | ||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/abseil/abseil-cpp/archive/{commit}.tar.gz".format(commit = ABSL_COMMIT), | ||
"https://github.com/abseil/abseil-cpp/archive/{commit}.tar.gz".format(commit = ABSL_COMMIT), | ||
], | ||
) |
Empty file.
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,21 @@ | ||
"""Provides the repository macro to import farmhash.""" | ||
|
||
load("//third_party:repo.bzl", "third_party_http_archive") | ||
|
||
def repo(name): | ||
"""Imports farmhash.""" | ||
|
||
# Attention: tools parse and update these lines. | ||
FARMHASH_COMMIT = "816a4ae622e964763ca0862d9dbd19324a1eaf45" | ||
FARMHASH_SHA256 = "6560547c63e4af82b0f202cb710ceabb3f21347a4b996db565a411da5b17aba0" | ||
|
||
third_party_http_archive( | ||
name = name, | ||
build_file = "//third_party/farmhash:farmhash.BUILD", | ||
sha256 = FARMHASH_SHA256, | ||
strip_prefix = "farmhash-{commit}".format(commit = FARMHASH_COMMIT), | ||
urls = [ | ||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/farmhash/archive/{commit}.tar.gz".format(commit = FARMHASH_COMMIT), | ||
"https://github.com/google/farmhash/archive/{commit}.tar.gz".format(commit = FARMHASH_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,20 @@ | ||
"""Provides the repository macro to import gemmlowp.""" | ||
|
||
load("//third_party:repo.bzl", "tf_http_archive") | ||
|
||
def repo(name): | ||
"""Imports gemmlowp.""" | ||
|
||
# Attention: tools parse and update these lines. | ||
GEMMLOWP_COMMIT = "fda83bdc38b118cc6b56753bd540caa49e570745" | ||
GEMMLOWP_SHA256 = "43146e6f56cb5218a8caaab6b5d1601a083f1f31c06ff474a4378a7d35be9cfb" | ||
|
||
tf_http_archive( | ||
name = name, | ||
sha256 = GEMMLOWP_SHA256, | ||
strip_prefix = "gemmlowp-{commit}".format(commit = GEMMLOWP_COMMIT), | ||
urls = [ | ||
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/gemmlowp/archive/{commit}.zip".format(commit = GEMMLOWP_COMMIT), | ||
"https://github.com/google/gemmlowp/archive/{commit}.zip".format(commit = GEMMLOWP_COMMIT), | ||
], | ||
) |