Skip to content

Commit

Permalink
Fixes for 8th Wall builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mc committed Sep 2, 2021
1 parent 7729668 commit 8926413
Show file tree
Hide file tree
Showing 8 changed files with 6,678 additions and 2,393 deletions.
1 change: 1 addition & 0 deletions tensorflow/lite/build_def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def tflite_copts():
"-DFARMHASH_NO_CXX_STRING",
"-Wno-deprecated-declarations",
"-Wno-unused-function",
"-Wno-unused-but-set-variable",
] + select({
clean_dep("//tensorflow:android_arm"): [
"-mfpu=neon",
Expand Down
5 changes: 4 additions & 1 deletion tensorflow/lite/delegates/xnnpack/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ cc_library(
name = "xnnpack_delegate_test_mode",
srcs = ["xnnpack_delegate.cc"],
hdrs = ["xnnpack_delegate.h"],
copts = ["-DXNNPACK_DELEGATE_TEST_MODE=1"],
copts = [
"-DXNNPACK_DELEGATE_TEST_MODE=1",
"-Wno-unused-but-set-variable",
],
linkstatic = True,
deps = [
":quantization_util",
Expand Down
1,158 changes: 0 additions & 1,158 deletions tensorflow/workspace.bzl

This file was deleted.

47 changes: 24 additions & 23 deletions tensorflow/workspace2.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def _tf_repositories():
# and update the sha256 with the result.
tf_http_archive(
name = "XNNPACK",
build_file = "//third_party:xnnpack.BUILD",
sha256 = "e1fee5a16e4a06d3bd77ab33cf87b1c6d826715906248a308ab790486198d3c9",
strip_prefix = "XNNPACK-476eb84d6a8e6f8249d5584d30759c6fbdbf791d",
urls = [
Expand Down Expand Up @@ -331,18 +332,18 @@ def _tf_repositories():
],
)

tf_http_archive(
name = "png",
build_file = "//third_party:png.BUILD",
patch_file = "//third_party:png_fix_rpi.patch",
sha256 = "ca74a0dace179a8422187671aee97dd3892b53e168627145271cad5b5ac81307",
strip_prefix = "libpng-1.6.37",
system_build_file = "//third_party/systemlibs:png.BUILD",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
"https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
],
)
# tf_http_archive(
# name = "png",
# build_file = "//third_party:png.BUILD",
# patch_file = "//third_party:png_fix_rpi.patch",
# sha256 = "ca74a0dace179a8422187671aee97dd3892b53e168627145271cad5b5ac81307",
# strip_prefix = "libpng-1.6.37",
# system_build_file = "//third_party/systemlibs:png.BUILD",
# urls = [
# "https://storage.googleapis.com/mirror.tensorflow.org/github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
# "https://github.com/glennrp/libpng/archive/v1.6.37.tar.gz",
# ],
# )

tf_http_archive(
name = "org_sqlite",
Expand Down Expand Up @@ -703,17 +704,17 @@ def _tf_repositories():
],
)

tf_http_archive(
name = "zlib",
build_file = "//third_party:zlib.BUILD",
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
strip_prefix = "zlib-1.2.11",
system_build_file = "//third_party/systemlibs:zlib.BUILD",
urls = [
"https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
"https://zlib.net/zlib-1.2.11.tar.gz",
],
)
# tf_http_archive(
# name = "zlib",
# build_file = "//third_party:zlib.BUILD",
# sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
# strip_prefix = "zlib-1.2.11",
# system_build_file = "//third_party/systemlibs:zlib.BUILD",
# urls = [
# "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
# "https://zlib.net/zlib-1.2.11.tar.gz",
# ],
# )

tf_http_archive(
name = "fft2d",
Expand Down
2 changes: 1 addition & 1 deletion third_party/cpuinfo/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ def repo():
# "https://github.com/pytorch/cpuinfo/archive/d6c0f915ee737f961915c9d17f1679b6777af207.tar.gz",
],
build_file = "//third_party/cpuinfo:BUILD.bazel",
patch_file = clean_dep("//third_party/cpuinfo:cpuinfo.patch"),
# patch_file = clean_dep("//third_party/cpuinfo:cpuinfo.patch"),
)
19 changes: 19 additions & 0 deletions third_party/tf_runtime/8thwall-tf_runtime.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- runtime/third_party/cuda/dependencies.bzl 2021-06-25 06:39:16.000000000 -0700
+++ runtime/third_party/cuda/dependencies.bzl 2021-09-02 13:00:44.000000000 -0700
@@ -48,11 +48,11 @@
)

def cuda_dependencies():
- print("The following command will download NVIDIA proprietary " +
- "software. By using the software you agree to comply with the " +
- "terms of the license agreement that accompanies the software. " +
- "If you do not agree to the terms of the license agreement, do " +
- "not use the software.")
+ # print("The following command will download NVIDIA proprietary " +
+ # "software. By using the software you agree to comply with the " +
+ # "terms of the license agreement that accompanies the software. " +
+ # "If you do not agree to the terms of the license agreement, do " +
+ # "not use the software.")

_cuda_headers(name = "cuda_headers")
_cudnn_headers(name = "cudnn_headers")
1 change: 1 addition & 0 deletions third_party/tf_runtime/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def repo():
name = "tf_runtime",
sha256 = TFRT_SHA256,
strip_prefix = "runtime-{commit}".format(commit = TFRT_COMMIT),
patch_file = "//third_party:tf_runtime/8thwall-tf_runtime.patch",
urls = [
"http://mirror.tensorflow.org/github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT),
"https://github.com/tensorflow/runtime/archive/{commit}.tar.gz".format(commit = TFRT_COMMIT),
Expand Down
Loading

0 comments on commit 8926413

Please sign in to comment.