Skip to content

Commit 4766178

Browse files
ssjhvcopybara-github
authored andcommitted
Updated Bazel workspace setup to match manylinux2014 requirements.
Before the changes, libm.so was linked to GLIBC 2.29, while manylinux2014 requires GLIBC version no later than 2.17. The workspace change pulls Tensorflow source and uses the toolchains used to build and ship TF wheel files. PiperOrigin-RevId: 466431404 Change-Id: I311e8e242010dfc788c3cc3e1a62f7630764e4d0
1 parent 57ff399 commit 4766178

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# This flag is required for CUDA repo that @org_tensorflow depends on.
2+
common --experimental_repo_remote_exec

WORKSPACE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
workspace(name = "tensorflow_compression")
22

3+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
34
load("//:workspace.bzl", "tensorflow_compression_workspace")
45
tensorflow_compression_workspace()
6+
7+
http_archive(
8+
name = "org_tensorflow",
9+
sha256 = "6eaf86ead73e23988fe192da1db68f4d3828bcdd0f3a9dc195935e339c95dbdc",
10+
strip_prefix = "tensorflow-2.9.1",
11+
urls = [
12+
"https://github.com/tensorflow/tensorflow/archive/refs/tags/v2.9.1.tar.gz",
13+
],
14+
)
15+
16+
# Copied from `@org_tensorflow//:WORKSPACE`.
17+
load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3")
18+
tf_workspace3()
19+
20+
load("@org_tensorflow//tensorflow:workspace2.bzl", "tf_workspace2")
21+
tf_workspace2()
22+
23+
load("@org_tensorflow//tensorflow:workspace1.bzl", "tf_workspace1")
24+
tf_workspace1()
25+
26+
load("@org_tensorflow//tensorflow:workspace0.bzl", "tf_workspace0")
27+
tf_workspace0()
28+

tensorflow_compression/cc/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ cc_binary(
2121
"-std=c++17",
2222
],
2323
linkshared = 1,
24-
linkstatic = 0,
2524
visibility = ["//visibility:public"],
2625
deps = [
2726
# When building this binary together with TensorFlow, i.e., when using

0 commit comments

Comments
 (0)