Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 28 additions & 31 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,50 +38,47 @@ source:
- patches/0011-Add-well_known_types_py_pb2-to-protobuf-systemlib.patch
- patches/0012-Add-protobuf-toolchain.patch
- patches/0013-fix-genproto.patch
- patches/0014-Remove-some-usage-of-absl-str_format-in-CUDA.patch # [(cuda_compiler_version or "").startswith("11")]
- patches/0015-Adjust-relative-path-for-libdevice.patch # [(cuda_compiler_version or "").startswith("11")]
- patches/0016-Link-to-absl_log_flags-instead-of-absl_flags.patch
- patches/0017-Update-ABSL-Log-Definition-for-libabsl_vlog_config_i.patch
- patches/0018-add-absl_string_view-target.patch
- patches/0019-add-absl_nullability-target.patch
- patches/0020-add-absl_prefetch-target.patch
- patches/0021-add-absl_die_if_null-target.patch
- patches/0022-add-absl_crc32c-targets.patch
- patches/0023-add-kernel_timeout_internal-target.patch
- patches/0024-work-around-for-warning-that-clang-falsely-treats-as.patch
- patches/0025-Hardcode-BUILD_PREFIX-in-build_pip_package.patch
- patches/0026-Only-link-to-sparse_core_layout_proto_cc-headers.patch
- patches/0027-Protobuf-5-compatability.patch
- patches/0014-Link-to-absl_log_flags-instead-of-absl_flags.patch
- patches/0015-Update-ABSL-Log-Definition-for-libabsl_vlog_config_i.patch
- patches/0016-add-absl_string_view-target.patch
- patches/0017-add-absl_nullability-target.patch
- patches/0018-add-absl_prefetch-target.patch
- patches/0019-add-absl_die_if_null-target.patch
- patches/0020-add-absl_crc32c-targets.patch
- patches/0021-add-kernel_timeout_internal-target.patch
- patches/0022-work-around-for-warning-that-clang-falsely-treats-as.patch
- patches/0023-Hardcode-BUILD_PREFIX-in-build_pip_package.patch
- patches/0024-Only-link-to-sparse_core_layout_proto_cc-headers.patch
- patches/0025-Protobuf-5-compatability.patch
# https://github.com/tensorflow/tensorflow/pull/86413
- patches/0028-Avoid-linking-with-internal-nvrtc.patch
- patches/0029-remove-dependencies-to-libcuda.patch
- patches/0026-Avoid-linking-with-internal-nvrtc.patch
- patches/0027-remove-dependencies-to-libcuda.patch
# adjust patch 0004 for newer absl -- hmaarrfk - 2025/07/06
- patches/0030-Fixup-pybind11_protobuf.patch
- patches/0031-Update-linkages-for-new-absl-organization.patch
- patches/0028-Fixup-pybind11_protobuf.patch
- patches/0029-Update-linkages-for-new-absl-organization.patch
# Already included in the release after 2.19.0
- patches/0032-Remove-ambiguous-inherited-constructor-in-default_qu.patch
- patches/0030-Remove-ambiguous-inherited-constructor-in-default_qu.patch
# these came from https://git.yoctoproject.org/meta-tensorflow/tree/recipes-framework/tensorflow/files
# check every release there for patches in the future
# - patches/0033-third_party-ducc-fix-ambiguous-failure.patch
# - patches/0034-third_party-tf_runtime-fix-compile-failure.patch
# - patches/0035-support-to-build-with-gcc-15.patch
- patches/0036-third_party-eigen_archive-workaround-ice-failure-whi.patch
# - patches/0031-third_party-ducc-fix-ambiguous-failure.patch
# - patches/0032-third_party-tf_runtime-fix-compile-failure.patch
# - patches/0033-support-to-build-with-gcc-15.patch
- patches/0034-third_party-eigen_archive-workaround-ice-failure-whi.patch
# for our system absl
- patches/0037-add-absl_tracing_internal.patch
- patches/0035-add-absl_tracing_internal.patch
# for the megabuild
- patches/0038-Fix-building-different-python-wheels-from-one-python.patch
- patches/0039-Fix-matmul-unused-result-error.patch
- patches/0040-Support-cuda-12.8.patch
- patches/0041-Disable-profiler.patch
- patches/0042-bump-h5py-req.patch # [aarch64]
- patches/0043-cross-arch-config.patch # [aarch64 and target_platform != build_platform]
- patches/0036-Fix-building-different-python-wheels-from-one-python.patch
- patches/0037-Fix-matmul-unused-result-error.patch
- patches/0038-Support-cuda-12.8.patch
- patches/0039-Disable-profiler.patch
- patches/0040-cross-arch-config.patch # [aarch64 and target_platform != build_platform]
- url: https://github.com/tensorflow/estimator/archive/refs/tags/v{{ estimator_version.replace(".rc", "-rc") }}.tar.gz
sha256: 2d7e100b1878084da34b5e23b49a0cbb5ee8a7add74b7dd189a82ada1cf85530
folder: tensorflow-estimator

build:
number: {{ build }}
skip: true # [win]
skip: true # [not aarch64]
# TODO: debug issues with CUDA cross-compilation
skip: true # [aarch64 and cuda_compiler_version != "None"]

Expand Down
6 changes: 3 additions & 3 deletions recipe/patches/0001-loosen-requirements.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From ae4b01cd668c949c88872ba30e3ea44e0c43b633 Mon Sep 17 00:00:00 2001
From 6a61d4f2fa3d5b2962ca9a5ea33ca7e364826b4a Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Thu, 30 Dec 2021 06:57:09 +0200
Subject: [PATCH 01/41] loosen requirements
Subject: [PATCH 01/40] loosen requirements

* Remove unused libclang requirement
* Remove unecessary tensorflow-io-gcs-filesystem
Expand All @@ -15,7 +15,7 @@ Co-authored-by: Uwe L. Korn <[email protected]>
1 file changed, 4 deletions(-)

diff --git a/tensorflow/tools/pip_package/setup.py b/tensorflow/tools/pip_package/setup.py
index 8f2d06ec373..35290f2226c 100644
index d83b45ea3cd..414b7df48b6 100644
--- a/tensorflow/tools/pip_package/setup.py
+++ b/tensorflow/tools/pip_package/setup.py
@@ -84,7 +84,6 @@ REQUIRED_PACKAGES = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From c26ba3c6eb5a544a01dad89dbd726b0514ff2f2e Mon Sep 17 00:00:00 2001
From bfd10b68b5682251491733899a670e9062727bd9 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Fri, 30 Jun 2023 08:39:32 +0000
Subject: [PATCH 02/41] Add additional absl_synchronization linkage to gRPC
Subject: [PATCH 02/40] Add additional absl_synchronization linkage to gRPC

---
third_party/systemlibs/grpc.BUILD | 3 +++
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0003-Fix-missing-abseil-linkages.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 08d13175a8a97ed97de56b89f836d9a7624d677c Mon Sep 17 00:00:00 2001
From d9099318925833278c766f573fe163c569303179 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Mon, 3 Jul 2023 04:45:46 +0000
Subject: [PATCH 03/41] Fix missing abseil linkages
Subject: [PATCH 03/40] Fix missing abseil linkages

---
third_party/absl/system.absl.strings.BUILD | 2 +-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 78fe26cde07460b7e2ebfe2b017398986ea8f10a Mon Sep 17 00:00:00 2001
From 17122e23957b0f2c035ea2d1480c4cf71eefb6ae Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Wed, 30 Aug 2023 16:58:41 +0200
Subject: [PATCH 04/41] Fix protobuf_python for systemlibs
Subject: [PATCH 04/40] Fix protobuf_python for systemlibs

---
tensorflow/workspace2.bzl | 1 +
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0005-Add-absl_log-systemlib.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 1bb1c61fa1e5a13e2db74dbc9c4aaf08d7a7e17f Mon Sep 17 00:00:00 2001
From 6d266b4f73aff73588a1dd6e5e8a23db7a966d34 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Wed, 30 Aug 2023 16:59:28 +0200
Subject: [PATCH 05/41] Add absl_log systemlib
Subject: [PATCH 05/40] Add absl_log systemlib

---
third_party/absl/system.absl.log.BUILD | 22 ++++++++++++++++++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 0d4bb8d059721a4969f8c0267ce92c753ba1e521 Mon Sep 17 00:00:00 2001
From 5ee98f2adb993b159c78215bf11879a627be93eb Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Fri, 15 Sep 2023 11:06:27 +0200
Subject: [PATCH 06/41] Omit linking to layout_proto_cc if protobuf linkage is
Subject: [PATCH 06/40] Omit linking to layout_proto_cc if protobuf linkage is
shared

---
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0007-Fix-further-abseil-linkage.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 06977c1cf3f9af375fab69b189a3862e02774f44 Mon Sep 17 00:00:00 2001
From 86260278281eff45de43ffd41372ab4bdd1fbf57 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Mon, 18 Sep 2023 14:47:08 +0000
Subject: [PATCH 07/41] Fix further abseil linkage
Subject: [PATCH 07/40] Fix further abseil linkage

---
third_party/absl/system.absl.base.BUILD | 14 ++++++++++++--
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2ca8630407e1761f3a1cad9e83ac62e5283cf24d Mon Sep 17 00:00:00 2001
From e728b9d2e42dac9b438bd38085afcb45d94ade74 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Fri, 27 Oct 2023 11:20:12 +0200
Subject: [PATCH 08/41] Add constraint to pybind11 systemlib
Subject: [PATCH 08/40] Add constraint to pybind11 systemlib

---
third_party/systemlibs/pybind11.BUILD | 6 ++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 98427157b56dcc5c1e785c5324c9fb0b3776fb3a Mon Sep 17 00:00:00 2001
From 3cc47c8231e7eabe441b36ed0a18e3734e3db9fe Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Fri, 27 Oct 2023 11:21:11 +0200
Subject: [PATCH 09/41] Different file ending for flatbuffers LICENSE
Subject: [PATCH 09/40] Different file ending for flatbuffers LICENSE

---
third_party/flatbuffers/BUILD.system | 5 +++++
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0010-Use-correct-hermetic-python.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From f8a71b341d0fa6442c7c05dd0c597b5d32bf39c0 Mon Sep 17 00:00:00 2001
From 05858d6ff312066dedd563683afed84ee0b5a346 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Fri, 27 Oct 2023 11:21:38 +0200
Subject: [PATCH 10/41] Use correct, hermetic python
Subject: [PATCH 10/40] Use correct, hermetic python

---
.../tensorflow/gen_quantized_function_library.py | 5 +++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 795cb1ee4f72fd5e4cb85b54394bf0bc763a9694 Mon Sep 17 00:00:00 2001
From 5c5f2c1feaa7f726bff03c8deb55cc87a7d432fe Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Wed, 15 Nov 2023 09:18:28 +0100
Subject: [PATCH 11/41] Add well_known_types_py_pb2 to protobuf systemlib
Subject: [PATCH 11/40] Add well_known_types_py_pb2 to protobuf systemlib

---
third_party/systemlibs/protobuf.BUILD | 7 +++++++
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0012-Add-protobuf-toolchain.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e6d327cbf0aaf7e60e92af92a68fb1962f5ad0bc Mon Sep 17 00:00:00 2001
From 7af984bc362f729f12a62732eae07d5da2ff6c15 Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Wed, 15 Nov 2023 10:32:41 +0000
Subject: [PATCH 12/41] Add protobuf toolchain
Subject: [PATCH 12/40] Add protobuf toolchain

---
third_party/systemlibs/protobuf.BUILD | 14 ++++++++++++++
Expand Down
4 changes: 2 additions & 2 deletions recipe/patches/0013-fix-genproto.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 4d9acbf4fdf1387e43c7bab3ab4848552da3c995 Mon Sep 17 00:00:00 2001
From 1ff6abf250aaf92764d40c5e1f4405ba3a0e3c2a Mon Sep 17 00:00:00 2001
From: "Uwe L. Korn" <[email protected]>
Date: Thu, 16 Nov 2023 06:38:27 +0000
Subject: [PATCH 13/41] fix genproto
Subject: [PATCH 13/40] fix genproto

---
third_party/xla/xla/tsl/platform/default/build_config.bzl | 5 +----
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 325185559fa8f5de25417644fc892c39fdbe2199 Mon Sep 17 00:00:00 2001
From 0b66747ec6ecad9868b98bf82eb74e1d6b06a3bc Mon Sep 17 00:00:00 2001
From: Mark Harfouche <[email protected]>
Date: Mon, 26 Feb 2024 22:30:08 -0500
Subject: [PATCH 16/41] Link to absl_log_flags instead of absl_flags
Subject: [PATCH 14/40] Link to absl_log_flags instead of absl_flags

---
third_party/absl/system.absl.flags.BUILD | 2 +-
Expand Down

This file was deleted.

22 changes: 0 additions & 22 deletions recipe/patches/0015-Adjust-relative-path-for-libdevice.patch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b027d8a7e8c257e50a8db2ef875f1fdf4b5276c0 Mon Sep 17 00:00:00 2001
From a992f6848323db9ecb7f43de4880a99ffaa42b07 Mon Sep 17 00:00:00 2001
From: Mark Harfouche <[email protected]>
Date: Tue, 27 Feb 2024 18:01:19 -0500
Subject: [PATCH 17/41] Update ABSL Log Definition for
Subject: [PATCH 15/40] Update ABSL Log Definition for
libabsl_vlog_config_internal.so

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 9222ace0a6fd07bca537ea8bbe6f0bf3e1daafc0 Mon Sep 17 00:00:00 2001
From 3802481399b9182696f71d57f4e13f9e8f09dce4 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Sun, 12 May 2024 18:45:03 +1100
Subject: [PATCH 18/41] add absl_string_view target
Subject: [PATCH 16/40] add absl_string_view target

---
third_party/absl/system.absl.strings.BUILD | 14 +++++++++++++-
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 53c5f176c1280b7e3207a28e6f3e65a5795c15a0 Mon Sep 17 00:00:00 2001
From a0918ae281372b0fe910afa79acd8186b1e18037 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Sun, 12 May 2024 19:30:44 +1100
Subject: [PATCH 19/41] add absl_nullability target
Subject: [PATCH 17/40] add absl_nullability target

---
third_party/absl/system.absl.base.BUILD | 8 ++++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From b9df95b322f94fa8377f060e7ba4718e1fcaaaae Mon Sep 17 00:00:00 2001
From 2b03e5dc39513a76ce44fe036d59adf570c9320b Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Sun, 12 May 2024 22:29:25 +1100
Subject: [PATCH 20/41] add absl_prefetch target
Subject: [PATCH 18/40] add absl_prefetch target

---
third_party/absl/system.absl.base.BUILD | 8 ++++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 98381356151907b49a5dec905d52ea523abbc5f3 Mon Sep 17 00:00:00 2001
From 8a405a4c24821c5fbfc4f990b7288633a9cd6e18 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Sun, 12 May 2024 22:46:04 +1100
Subject: [PATCH 21/41] add absl_die_if_null target
Subject: [PATCH 19/40] add absl_die_if_null target

---
third_party/absl/system.absl.log.BUILD | 16 ++++++++++++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d062da2c65a8aab38325f1a02b253a668f7227a7 Mon Sep 17 00:00:00 2001
From e121469880807e2e750b3787213b3da77248bb82 Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Mon, 13 May 2024 09:41:09 +1100
Subject: [PATCH 22/41] add absl_crc32c targets
Subject: [PATCH 20/40] add absl_crc32c targets

---
third_party/absl/system.absl.crc.BUILD | 70 ++++++++++++++++++++++++++
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 15e565f9a3ba59df7a36d32104e729483d552357 Mon Sep 17 00:00:00 2001
From d29ecd1e45d9dd11af21056eba5d180ad50f392a Mon Sep 17 00:00:00 2001
From: "H. Vetinari" <[email protected]>
Date: Mon, 13 May 2024 23:36:48 +1100
Subject: [PATCH 23/41] add kernel_timeout_internal target
Subject: [PATCH 21/40] add kernel_timeout_internal target

---
.../absl/system.absl.synchronization.BUILD | 15 +++++++++++++++
Expand Down
Loading
Loading