mirror of
https://github.com/tensorflow/tensorflow.git
synced 2024-11-21 21:05:19 +00:00
2d34c7e935
PiperOrigin-RevId: 417520712 Change-Id: I5bb9ee0457b9b2bd289828f2996a3bd796975333
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
"""Provides the repository macro to import farmhash."""
|
|
|
|
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
|
|
|
|
def repo():
|
|
"""Imports farmhash."""
|
|
|
|
# Attention: tools parse and update these lines.
|
|
# LINT.IfChange
|
|
FARMHASH_COMMIT = "0d859a811870d10f53a594927d0d0b97573ad06d"
|
|
FARMHASH_SHA256 = "18392cf0736e1d62ecbb8d695c31496b6507859e8c75541d7ad0ba092dc52115"
|
|
# LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/farmhash.cmake)
|
|
|
|
tf_http_archive(
|
|
name = "farmhash_archive",
|
|
build_file = "//third_party/farmhash:farmhash.BUILD",
|
|
sha256 = FARMHASH_SHA256,
|
|
strip_prefix = "farmhash-{commit}".format(commit = FARMHASH_COMMIT),
|
|
urls = tf_mirror_urls("https://github.com/google/farmhash/archive/{commit}.tar.gz".format(commit = FARMHASH_COMMIT)),
|
|
)
|
|
|
|
tf_http_archive(
|
|
name = "farmhash_gpu_archive",
|
|
build_file = "//third_party/farmhash:farmhash_gpu.BUILD",
|
|
patch_file = ["//third_party/farmhash:farmhash_support_cuda.patch"],
|
|
sha256 = FARMHASH_SHA256,
|
|
strip_prefix = "farmhash-{commit}".format(commit = FARMHASH_COMMIT),
|
|
urls = tf_mirror_urls("https://github.com/google/farmhash/archive/{commit}.tar.gz".format(commit = FARMHASH_COMMIT)),
|
|
)
|