Skip to content

Commit 8926413

Browse files
author
mc
committed
Fixes for 8th Wall builds
1 parent 7729668 commit 8926413

File tree

8 files changed

+6678
-2393
lines changed

8 files changed

+6678
-2393
lines changed

tensorflow/lite/build_def.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def tflite_copts():
1818
"-DFARMHASH_NO_CXX_STRING",
1919
"-Wno-deprecated-declarations",
2020
"-Wno-unused-function",
21+
"-Wno-unused-but-set-variable",
2122
] + select({
2223
clean_dep("//tensorflow:android_arm"): [
2324
"-mfpu=neon",

tensorflow/lite/delegates/xnnpack/BUILD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ cc_library(
5252
name = "xnnpack_delegate_test_mode",
5353
srcs = ["xnnpack_delegate.cc"],
5454
hdrs = ["xnnpack_delegate.h"],
55-
copts = ["-DXNNPACK_DELEGATE_TEST_MODE=1"],
55+
copts = [
56+
"-DXNNPACK_DELEGATE_TEST_MODE=1",
57+
"-Wno-unused-but-set-variable",
58+
],
5659
linkstatic = True,
5760
deps = [
5861
":quantization_util",

tensorflow/workspace.bzl

Lines changed: 0 additions & 1158 deletions
This file was deleted.

tensorflow/workspace2.bzl

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def _tf_repositories():
127127
# and update the sha256 with the result.
128128
tf_http_archive(
129129
name = "XNNPACK",
130+
build_file = "//third_party:xnnpack.BUILD",
130131
sha256 = "e1fee5a16e4a06d3bd77ab33cf87b1c6d826715906248a308ab790486198d3c9",
131132
strip_prefix = "XNNPACK-476eb84d6a8e6f8249d5584d30759c6fbdbf791d",
132133
urls = [
@@ -331,18 +332,18 @@ def _tf_repositories():
331332
],
332333
)
333334

334-
tf_http_archive(
335-
name = "png",
336-
build_file = "//third_party:png.BUILD",
337-
patch_file = "//third_party:png_fix_rpi.patch",
338-
sha256 = "ca74a0dace179a8422187671aee97dd3892b53e168627145271cad5b5ac81307",
339-
strip_prefix = "libpng-1.6.37",
340-
system_build_file = "//third_party/systemlibs:png.BUILD",
341-
urls = [
342-
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
343-
"https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
344-
],
345-
)
335+
# tf_http_archive(
336+
# name = "png",
337+
# build_file = "//third_party:png.BUILD",
338+
# patch_file = "//third_party:png_fix_rpi.patch",
339+
# sha256 = "ca74a0dace179a8422187671aee97dd3892b53e168627145271cad5b5ac81307",
340+
# strip_prefix = "libpng-1.6.37",
341+
# system_build_file = "//third_party/systemlibs:png.BUILD",
342+
# urls = [
343+
# "https://storage.googleapis.com/mirror.tensorflow.org/github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
344+
# "https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
345+
# ],
346+
# )
346347

347348
tf_http_archive(
348349
name = "org_sqlite",
@@ -703,17 +704,17 @@ def _tf_repositories():
703704
],
704705
)
705706

706-
tf_http_archive(
707-
name = "zlib",
708-
build_file = "//third_party:zlib.BUILD",
709-
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
710-
strip_prefix = "zlib-1.2.11",
711-
system_build_file = "//third_party/systemlibs:zlib.BUILD",
712-
urls = [
713-
"https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
714-
"https://zlib.net/zlib-1.2.11.tar.gz",
715-
],
716-
)
707+
# tf_http_archive(
708+
# name = "zlib",
709+
# build_file = "//third_party:zlib.BUILD",
710+
# sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
711+
# strip_prefix = "zlib-1.2.11",
712+
# system_build_file = "//third_party/systemlibs:zlib.BUILD",
713+
# urls = [
714+
# "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
715+
# "https://zlib.net/zlib-1.2.11.tar.gz",
716+
# ],
717+
# )
717718

718719
tf_http_archive(
719720
name = "fft2d",

third_party/cpuinfo/workspace.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ def repo():
2222
# "https://github.com/pytorch/cpuinfo/archive/d6c0f915ee737f961915c9d17f1679b6777af207.tar.gz",
2323
],
2424
build_file = "//third_party/cpuinfo:BUILD.bazel",
25-
patch_file = clean_dep("//third_party/cpuinfo:cpuinfo.patch"),
25+
# patch_file = clean_dep("//third_party/cpuinfo:cpuinfo.patch"),
2626
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--- runtime/third_party/cuda/dependencies.bzl 2021-06-25 06:39:16.000000000 -0700
2+
+++ runtime/third_party/cuda/dependencies.bzl 2021-09-02 13:00:44.000000000 -0700
3+
@@ -48,11 +48,11 @@
4+
)
5+
6+
def cuda_dependencies():
7+
- print("The following command will download NVIDIA proprietary " +
8+
- "software. By using the software you agree to comply with the " +
9+
- "terms of the license agreement that accompanies the software. " +
10+
- "If you do not agree to the terms of the license agreement, do " +
11+
- "not use the software.")
12+
+ # print("The following command will download NVIDIA proprietary " +
13+
+ # "software. By using the software you agree to comply with the " +
14+
+ # "terms of the license agreement that accompanies the software. " +
15+
+ # "If you do not agree to the terms of the license agreement, do " +
16+
+ # "not use the software.")
17+
18+
_cuda_headers(name = "cuda_headers")
19+
_cudnn_headers(name = "cudnn_headers")

third_party/tf_runtime/workspace.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def repo():
1313
name = "tf_runtime",
1414
sha256 = TFRT_SHA256,
1515
strip_prefix = "runtime-{commit}".format(commit = TFRT_COMMIT),
16+
patch_file = "//third_party:tf_runtime/8thwall-tf_runtime.patch",
1617
urls = [
1718
"http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT),
1819
"https://github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT),

0 commit comments

Comments
 (0)