diff --git a/science/py-tensorflow/Makefile b/science/py-tensorflow/Makefile index 82254a8a20fc..f174eb3f8909 100644 --- a/science/py-tensorflow/Makefile +++ b/science/py-tensorflow/Makefile @@ -1,205 +1,281 @@ PORTNAME= tensorflow DISTVERSIONPREFIX= v -DISTVERSION= 2.13.1 -PORTREVISION= 1 -CATEGORIES= science python +DISTVERSION= 2.21.0 +CATEGORIES= science python # machine-learning PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DIST_SUBDIR= ${PORTNAME} EXTRACT_ONLY= ${DISTNAME}.tar.gz -PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ -PATCHFILES= ba7501696cc.patch:-p1 667cf3ed2d7.patch:-p1 - MAINTAINER= yuri@FreeBSD.org COMMENT= Computation using data flow graphs for scalable machine learning WWW= https://www.tensorflow.org LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= amd64 -BUILD_DEPENDS= ${RUN_DEPENDS} \ - ${PYTHON_PKGNAMEPREFIX}grpcio-tools>=1.22.0:devel/py-grpcio-tools@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}grpcio-tools>=1.22.0:devel/py-grpcio-tools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.22.0:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ bash:shells/bash \ - bazel:devel/bazel5 \ + bazel:devel/bazel7 \ cython:lang/cython \ git:devel/git \ patchelf:sysutils/patchelf \ - swig:devel/swig -LIB_DEPENDS= libnsync.so:devel/nsync \ - libgpr.so:devel/grpc \ + pybind11>=2.6.2:devel/pybind11 \ + swig:devel/swig \ + xxd:sysutils/xxd +LIB_DEPENDS= libgpr.so:devel/grpc \ libpng.so:graphics/png \ libsnappy.so:archivers/snappy \ libabsl_base.so:devel/abseil \ libsqlite3.so:databases/sqlite3 \ libicuio.so:devel/icu \ libjsoncpp.so:devel/jsoncpp \ libprotobuf.so:devel/protobuf \ libgif.so:graphics/giflib \ libcurl.so:ftp/curl \ - libdouble-conversion.so:devel/double-conversion + libre2.so:devel/re2 \ + libhwloc.so:devel/hwloc2 RUN_DEPENDS= pybind11>=2.6.2:devel/pybind11 \ - ${PYTHON_PKGNAMEPREFIX}absl-py>=1.0.0:devel/py-absl-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}absl-py>=2.0.0:devel/py-absl-py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}astunparse>=1.6.0:devel/py-astunparse@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}flatbuffers>=23.1.21:devel/py-flatbuffers@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}flatbuffers>=25.9.23:devel/py-flatbuffers@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}gast>=0.2.1:devel/py-gast@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}google-pasta>=0.1.1:devel/py-google-pasta@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}h5py>=2.9.0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=1.22.0:math/py-numpy@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}opt-einsum>=2.3.2:math/py-opt-einsum@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=2.21.0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}protobuf>=3.20.3:devel/py-protobuf@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}six>=1.12.0:devel/py-six@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}termcolor>=1.1.0:devel/py-termcolor@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.6.6:devel/py-typing-extensions@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wrapt>=1.11.0:devel/py-wrapt@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}grpcio>=1.24.3:devel/py-grpcio@${PY_FLAVOR} -USES= jpeg perl5 python shebangfix ssl +USES= java jpeg perl5 python shebangfix ssl +JAVA_VERSION= 21 +JAVA_VENDOR= openjdk USE_CXXSTD= c++17 USE_GITHUB= yes -USE_LDCONFIG= yes USE_PERL5= build USE_PYTHON= distutils SHEBANG_GLOB= *.py BINARY_ALIAS= python3=${PYTHON_CMD} -PLIST_SUB= TF_PORT_VERSION=${PORTVERSION} - OPTIONS_DEFINE= CPU_OPTS XLA OPTIONS_RADIO= PARALLEL_JOBS OPTIONS_RADIO_PARALLEL_JOBS= JOBS_1 JOBS_HALF JOBS_ALL PARALLEL_JOBS_DESC= How many jobs to run during build? OPTIONS_DEFAULT= JOBS_HALF JOBS_1_DESC= Run one job JOBS_1_VARS= TF_JOBS_NUMBER=1 JOBS_HALF_DESC= Run half jobs JOBS_HALF_VARS= TF_JOBS_NUMBER="`expr \( ${MAKE_JOBS_NUMBER} + 1 \) / 2`" JOBS_ALL_DESC= Run all jobs JOBS_ALL_VARS= TF_JOBS_NUMBER=${MAKE_JOBS_NUMBER} CPU_OPTS_DESC= Enable optimisations using features available on your CPU CPU_OPTS_VARS= CPU_TARGET=native BAZEL_COPT="-c opt --copt=-march=native --copt=-mfpmath=sse" CPU_OPTS_VARS_OFF= CPU_TARGET=x86-64 XLA_DESC= Accelerated Linear Algebra XLA_VARS= XLA_OPT="1" XLA_VARS_OFF= XLA_OPT="0" .include "Makefile.MASTER_SITES" BAZEL_BOOT= --output_user_root=${WRKDIR}/bazel_out .if !defined(WITH_DEBUG) # For the reason why the linker is used for the strip, see PR 280234. BAZEL_LINKOPT= --linkopt=-Wl,--strip-all .endif post-patch: # Set up a local repository with our pre-downloaded packages # This prevents bazel downloading the files without modifying # the bzl files. @${MKDIR} ${WRKDIR}/bazel-dist .for file in ${DISTFILES:C/\:(.*)//} @${ECHO} "Moving ${file} to ${WRKDIR}/bazel-dist" @${CP} ${DISTDIR}/${DIST_SUBDIR}/${file} ${WRKDIR}/bazel-dist .endfor + # Rename distfiles to match Bazel's expected URL basenames + @${CP} ${WRKDIR}/bazel-dist/rules_foreign_cc-0.7.1.tar.gz \ + ${WRKDIR}/bazel-dist/0.7.1.tar.gz + @${CP} ${WRKDIR}/bazel-dist/libtinfo5-copyright.txt \ + ${WRKDIR}/bazel-dist/copyright.txt + + # Pre-populate repository cache for files fetched via ctx.download() + # (these are not served by --distdir; must be in --repository_cache) + @${MKDIR} ${WRKDIR}/bazel-cache/content_addressable/sha256/12cffc7274190ca1693a52ccd8303e719407e707c8557ddfb7eef81f208efaab + @${CP} ${DISTDIR}/${DIST_SUBDIR}/libtinfo.so.5 \ + ${WRKDIR}/bazel-cache/content_addressable/sha256/12cffc7274190ca1693a52ccd8303e719407e707c8557ddfb7eef81f208efaab/file + @${MKDIR} ${WRKDIR}/bazel-cache/content_addressable/sha256/5e8ee902c8906ddb7779fd36dc9979cb08b51fbebf7c0b1a9aeb78af382af590 + @${CP} ${DISTDIR}/${DIST_SUBDIR}/libtinfo5-copyright.txt \ + ${WRKDIR}/bazel-cache/content_addressable/sha256/5e8ee902c8906ddb7779fd36dc9979cb08b51fbebf7c0b1a9aeb78af382af590/file + @${CP} ${PATCHDIR}/bazelrc ${WRKDIR}/bazelrc @${CP} -R ${PATCHDIR}/bazel/* \ ${WRKSRC}/third_party/ + @${CP} ${PATCHDIR}/bazel/rules_python_freebsd.patch \ + ${WRKSRC}/third_party/xla/third_party/py/ + @${CP} ${PATCHDIR}/bazel/fix-environ.patch \ + ${WRKSRC}/third_party/xla/third_party/ + @${CP} ${PATCHDIR}/llvm_freebsd.patch \ + ${WRKSRC}/third_party/xla/third_party/llvm/freebsd.patch + @${CP} ${PATCHDIR}/grpc.bazel.BUILD \ + ${WRKSRC}/third_party/systemlibs/grpc.bazel.BUILD + @${CP} ${PATCHDIR}/grpc.bazel.python_rules.bzl \ + ${WRKSRC}/third_party/systemlibs/grpc.bazel.python_rules.bzl + @${CP} ${PATCHDIR}/grpc.bazel.cc_grpc_library.bzl \ + ${WRKSRC}/third_party/systemlibs/grpc.bazel.cc_grpc_library.bzl @${REINPLACE_CMD} "s#%%BAZEL_DIR%%#${WRKDIR}#" ${WRKDIR}/bazelrc @${REINPLACE_CMD} "s#%%BAZEL_DIST%%#${WRKDIR}#" ${WRKDIR}/bazelrc + @${REINPLACE_CMD} "s#%%JAVA_HOME%%#${JAVA_HOME}#" ${WRKDIR}/bazelrc # copy the toolchain over @${CP} -R ${PATCHDIR}/freebsd \ ${WRKSRC}/ @${REINPLACE_CMD} "s#%%PATH%%#${PATH}#" ${WRKDIR}/bazelrc @${REINPLACE_CMD} -e "s#%%LOCALBASE%%#${LOCALBASE}#" \ ${WRKDIR}/bazelrc \ ${WRKSRC}/freebsd/cc_toolchain_config.bzl \ - ${WRKSRC}/.bazelrc + ${WRKSRC}/.bazelrc \ + ${WRKSRC}/WORKSPACE + @${REINPLACE_CMD} -e "s#%%NUMPY_INCLUDEDIR%%#${PYTHON_SITELIBDIR}/numpy/core/include#g" \ + ${WRKDIR}/bazelrc \ + ${WRKSRC}/freebsd/cc_toolchain_config.bzl + + @${REINPLACE_CMD} -e "s#%%PYTHON_VER%%#${PYTHON_VER}#g" \ + ${WRKSRC}/WORKSPACE + + # Fix Python runtime headers: replace rules_python CC toolchain alias with + # a direct cc_library pointing to the system Python headers. + @${REINPLACE_CMD} \ + "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \ + ${WRKDIR}/bazelrc \ + ${WRKSRC}/third_party/xla/third_party/python_runtime/BUILD.bazel + + # Create pypi hub stub (FreeBSD has no platform wheels in requirements_lock) + @${MKDIR} ${WRKSRC}/bazel_pypi_hub + @${PRINTF} 'package(default_visibility = ["//visibility:public"])\nexports_files(["requirements.bzl"])\n' \ + > ${WRKSRC}/bazel_pypi_hub/BUILD.bazel + @${PRINTF} 'def install_deps(**kwargs):\n pass\n' \ + > ${WRKSRC}/bazel_pypi_hub/requirements.bzl + @${TOUCH} ${WRKSRC}/bazel_pypi_hub/WORKSPACE +.for _pypi_pkg in absl_py astor astunparse dill flatbuffers gast h5py jax \ + keras lit ml_dtypes opt_einsum packaging portpicker protobuf requests \ + scipy setuptools tblib termcolor typing_extensions wheel wrapt zstandard + @${MKDIR} ${WRKSRC}/bazel_pypi_hub/${_pypi_pkg} + @${PRINTF} 'package(default_visibility = ["//visibility:public"])\npy_library(name = "pkg", srcs = [])\npy_library(name = "lib", srcs = [])\npy_library(name = "whl", srcs = [])\nalias(name = "${_pypi_pkg}", actual = ":pkg")\n' \ + > ${WRKSRC}/bazel_pypi_hub/${_pypi_pkg}/BUILD.bazel +.endfor + # numpy needs extra cc_library for numpy_headers used by C++ deps + @${MKDIR} ${WRKSRC}/bazel_pypi_hub/numpy + @${MKDIR} ${WRKSRC}/bazel_pypi_hub/numpy/include + @${LN} -sf ${PYTHON_SITELIBDIR}/numpy/core/include/numpy \ + ${WRKSRC}/bazel_pypi_hub/numpy/include/numpy + # build_pip_package.py expects site-packages/numpy/{_core,core}/include + @${MKDIR} ${WRKSRC}/bazel_pypi_hub/numpy/site-packages/numpy/core + @${LN} -sf ${PYTHON_SITELIBDIR}/numpy/core/include \ + ${WRKSRC}/bazel_pypi_hub/numpy/site-packages/numpy/core/include + @${PRINTF} 'package(default_visibility = ["//visibility:public"])\npy_library(name = "pkg", srcs = [])\npy_library(name = "lib", srcs = [])\nalias(name = "numpy", actual = ":pkg")\ncc_library(\n name = "numpy_headers",\n hdrs = glob(["include/**/*.h"]),\n includes = ["include"],\n)\n' \ + > ${WRKSRC}/bazel_pypi_hub/numpy/BUILD.bazel do-configure: @cd ${WRKSRC} && ${SETENV} \ PYTHON_BIN_PATH=${PYTHON_CMD} \ PYTHON_LIB_PATH="${PYTHON_SITELIBDIR}" \ KERAS_HOME="${WRKDIR}/.keras" \ TF_NEED_OPENCL_SYCL=0 \ TF_ENABLE_XLA=${XLA_OPT} \ TF_NEED_OPENCL=0 \ TF_NEED_MPI=0 \ TF_NEED_TENSORRT=0 \ TF_NEED_NGRAPH=0 \ TF_NEED_IGNITE=0 \ TF_NEED_ROCM=0 \ TF_NEED_CUDA=0 \ TF_SET_ANDROID_WORKSPACE=0 \ TF_DOWNLOAD_CLANG=0 \ TF_NEED_NCCL=0 \ TF_IGNORE_MAX_BAZEL_VERSION=1 \ CC_OPT_FLAGS="-march=${CPU_TARGET} -I${LOCALBASE}/include" \ PREFIX="${LOCALBASE}" \ - TF_SYSTEM_LIBS="absl_py astor_archive astunparse_archive boringssl com_github_googlecloudplatform_google_cloud_cpp com_github_grpc_grpc \ - com_google_absl com_google_protobuf curl cython dill_archive double_conversion functools32_archive gast_archive \ - gif hwloc icu jsoncpp_git libjpeg_turbo nasm nsync opt_einsum_archive org_sqlite pasta png pybind11 six_archive snappy \ + TF_SYSTEM_LIBS="astor_archive astunparse_archive boringssl com_github_googlecloudplatform_google_cloud_cpp com_github_grpc_grpc \ + com_googlesource_code_re2 curl cython dill_archive functools32_archive gast_archive \ + gif hwloc icu jsoncpp_git libjpeg_turbo nasm org_sqlite pasta png pybind11 six_archive snappy \ tblib_archive termcolor_archive typing_extensions_archive wrapt zlib" \ ./configure + @${REINPLACE_CMD} 's/,com_google_absl//g;s/,absl_py//g;s/absl_py,//g' ${WRKSRC}/.tf_configure.bazelrc + +post-configure: + # BINARY_ALIAS creates a relative symlink for python3 that breaks inside + # the poudriere jail (relative path resolves under /wrkdirs/usr/local/… + # instead of /usr/local/…). Replace it with an absolute symlink. + @${RM} ${WRKDIR}/.bin/python3 + @${LN} -s ${PYTHON_CMD} ${WRKDIR}/.bin/python3 do-build: + # Fetch rules_java to ensure it is extracted from the Bazel install, then inject + # compatibility stubs for rules_java 7.x + protobuf 6.31.1 (which needs 8.x APIs). + # Both @rules_java (WORKSPACE) and @@rules_java (Bzlmod canonical = rules_java_builtin) + # must have the stubs; protobuf 6.31.1 uses the Bzlmod canonical form. + @cd ${WRKSRC} && \ + bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} fetch @rules_java//:BUILD + @BAZEL_OB=$$(cd ${WRKSRC} && bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} info output_base 2>/dev/null); \ + for RJNAME in rules_java rules_java_builtin; do \ + RJDIR="$${BAZEL_OB}/external/$${RJNAME}"; \ + if [ -d "$${RJDIR}/java/private" ]; then \ + ${CP} ${FILESDIR}/rules_java.java.private.proto_support.bzl \ + $${RJDIR}/java/private/proto_support.bzl; \ + ${CP} ${FILESDIR}/rules_java.java.common.proguard_spec_info.bzl \ + $${RJDIR}/java/common/proguard_spec_info.bzl 2>/dev/null || true; \ + else \ + ${ECHO_MSG} "WARNING: rules_java external dir $${RJNAME} not found; build may fail"; \ + fi; \ + done + # Fetch llvm-project and fix config.bzl: replace Linux-only CPU-based FreeBSD + # condition with platform-based @platforms//os:freebsd so exec/tool builds also + # use posix_defines (no HAVE_GETAUXVAL / HAVE_MALLINFO) and the correct triple. + @cd ${WRKSRC} && \ + bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} fetch @@llvm-project//llvm:Support + @LLVM_OB=$$(cd ${WRKSRC} && bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} info output_base 2>/dev/null); \ + LLVMCONF="$${LLVM_OB}/external/llvm-raw/utils/bazel/llvm-project-overlay/llvm/config.bzl"; \ + if [ -f "$${LLVMCONF}" ]; then \ + ${PYTHON_CMD} ${PATCHDIR}/fix-llvm-config.py "$${LLVMCONF}"; \ + else \ + ${ECHO_MSG} "WARNING: llvm config.bzl not found at $${LLVMCONF}; build may fail"; \ + fi @cd ${WRKSRC} && \ bazel --bazelrc="${WRKDIR}/bazelrc" ${BAZEL_BOOT} build --jobs ${TF_JOBS_NUMBER} ${BAZEL_COPT} --host_copt="-I${LOCALBASE}/include" \ --host_linkopt="-L${LOCALBASE}/lib -lexecinfo" ${BAZEL_LINKOPT} --copt="-I${LOCALBASE}/include" \ --verbose_failures -s \ --distdir=${WRKDIR}/bazel-dist \ - //tensorflow:libtensorflow_framework.so \ - //tensorflow:libtensorflow.so \ - //tensorflow:libtensorflow_cc.so \ - //tensorflow:install_headers \ - //tensorflow/tools/pip_package:build_pip_package + //tensorflow/tools/pip_package:wheel - @cd ${WRKSRC} && ${SETENV} TMPDIR=${WRKDIR} \ - bazel-bin/tensorflow/tools/pip_package/build_pip_package \ - ${WRKDIR}/whl + @${MKDIR} ${WRKDIR}/whl + @${CP} ${WRKSRC}/bazel-bin/tensorflow/tools/pip_package/wheel_house/*.whl \ + ${WRKDIR}/whl/ do-install: @${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR} - @${MKDIR} ${STAGEDIR}/${LOCALBASE}/include/tensorflow @${UNZIP_NATIVE_CMD} -d ${STAGEDIR}/${PYTHON_SITELIBDIR} ${WRKDIR}/whl/${PORTNAME}-${PORTVERSION}-*.whl - # put headers in the right folder - ${CP} -R ${WRKSRC}/bazel-bin/tensorflow/include/tensorflow \ - ${STAGEDIR}/${LOCALBASE}/include/ - - # pc files and libraries - ${INSTALL_DATA} ${PATCHDIR}/tensorflow.pc ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/ - ${INSTALL_DATA} ${PATCHDIR}/tensorflow_cc.pc ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/ - - @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" \ - ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/tensorflow.pc \ - ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/tensorflow_cc.pc - - @${REINPLACE_CMD} "s#%%VERSION%%#${PORTVERSION}#" \ - ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/tensorflow.pc - - #cleanup - ${RM} ${STAGEDIR}/${LOCALBASE}/libdata/pkgconfig/*.bak - - # install the libraries and strip - @${FIND} ${WRKSRC}/bazel-bin/tensorflow/ -depth 1 -name "*.so*" | ${XARGS} -I{} \ - ${INSTALL_LIB} {} ${STAGEDIR}/${LOCALBASE}/lib/ - post-install: # autoplist: thousands of files, all under ${PYTHON_SITELIBDIR} @cd ${STAGEDIR}${PREFIX} && \ ${FIND} ${PYTHON_SITELIBDIR:C|^${LOCALBASE}/||} -type f -or -type l | ${GREP} -v "egg-info/" >> ${TMPPLIST} .include diff --git a/science/py-tensorflow/Makefile.MASTER_SITES b/science/py-tensorflow/Makefile.MASTER_SITES index 5657bdd6a5a9..005583468fb9 100644 --- a/science/py-tensorflow/Makefile.MASTER_SITES +++ b/science/py-tensorflow/Makefile.MASTER_SITES @@ -1,85 +1,147 @@ -DISTFILES+= platforms-0.0.6.tar.gz:platforms \ - apple_support.1.1.0.tar.gz:apple \ - bazel-skylib-1.3.0.tar.gz:skylib \ - 8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz:toolchain \ - v0.1.1.zip:buildrules \ - rules_apple.1.0.1.tar.gz:applerules \ - 081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz:rulescc \ - 308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:closure \ - 0.7.1.tar.gz:rulesforeigncc \ - 7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip:java \ - 4.3.zip:jvm \ - rules_pkg-0.7.1.tar.gz:pkg \ - 11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz:protolib \ - rules_python-0.0.1.tar.gz:pythonrules \ - rules_swift.1.0.0.tar.gz:swift \ - 9351cf542ab478499294864ff3acfdab5c8c5f3d.tar.gz:dlpack \ - f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz:benchmark \ - 0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz:farmhash \ - e844ffd17118c1e17d94e1ba4354c075a4577b88.zip:gemmlowp \ - c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz:highwayhash \ - a276a8c738735a0fe45a6ee590fe2df69bcf4502.tar.gz:re2 \ - 3286a34cc8de6149ac6844107dfdffac91531e72.zip:ruy \ - 835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz:sobol \ - openmp-10.0.1.src.tar.xz:llvmorg \ - 131.1.0.tar.gz:kiss \ - v2.7.3.tar.gz:onednn \ - 43d81c6883ade82052920bd367c61f9e52f09954.zip:openxla \ - v1.0.tar.gz:ooura \ - 2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz:pybindabseil \ - 72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz:pybindbazel \ - 80f3440cd8fee124e077e2e47a8a17b78b451363.zip:pybindprotobuf \ - fa1c679da8d19e1d87f20175ae1ec10995cd3dd3.zip:cpuinfo \ - 7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz:runtime \ - eigen-b0f877f8e01e90a5b0f3a79d46ea234899f8b499.tar.gz:eigen \ - b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip:xnnpack \ - b8374f80e42010941bda6c85b0e3f1a1bd77a1e0.zip:pthread \ - 4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip:fp16 \ - 63058eff77e11aa15bf531df5dd34395ec3017c8.zip:fxdiv \ - dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz:llvm \ - 6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz:apis \ - v23.1.21.tar.gz:flatbuffer \ - a15b489e1222b2087007546b4912e21293ea86ff.tar.gz:neon +DISTFILES+=platforms-0.0.11.tar.gz:platforms \ +apple_support.1.24.5.tar.gz:apple \ +bazel-skylib-1.7.1.tar.gz:skylib \ +8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz:toolchain \ +v0.1.1.zip:buildrules \ +rules_apple.3.5.1.tar.gz:applerules \ +rules_swift.1.18.0.tar.gz:swift \ +308b05b2419edb5c8ee0471b67a40403df940149.tar.gz:closure \ +4.3.zip:jvm \ +rules_pkg-0.7.1.tar.gz:pkg \ +rules_foreign_cc-0.7.1.tar.gz:foreign_cc \ +rules_java-7.6.1.tar.gz:rules_java \ +rules_license-0.0.7.tar.gz:rlic \ +bazel_features-v1.25.0.tar.gz:bfeatures \ +rules_shell-v0.4.1.tar.gz:rshell \ +d8cb9c2c168cd64000eaa6eda0781a9615a26ffe.tar.gz:mlchain \ +f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz:benchmark \ +0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz:farmhash \ +16e8662c34917be0065110bfcd9cc27d30f52fdf.zip:gemmlowp \ +c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz:highwayhash \ +03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz:re2 \ +3286a34cc8de6149ac6844107dfdffac91531e72.zip:ruy \ +835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz:sobol \ +openmp-10.0.1.src.tar.xz:llvmorg \ +131.1.0.tar.gz:kiss \ +v3.7.3.tar.gz:onednn \ +127d2f238010589ac96f2f402a27afc9dccbb7ab.zip:openxla \ +v1.0.tar.gz:ooura \ +13d4f99d5309df3d5afa80fe2ae332d7a2a64c6b.tar.gz:pybindabseil \ +v2.13.6.tar.gz:pybindbazel \ +f02a2b7653bc50eb5119d125842a3870db95d251.zip:pybindprotobuf \ +8a9210069b5a37dd89ed118a783945502a30a4ae.zip:cpuinfo \ +4ecc3a44a32c832b748328bed3f9a599f795ca8d.tar.gz:runtime \ +eigen-dcbaf2d608f306450f1e74949eb87e9a22a7ef4b.tar.gz:eigen \ +25b42dfddb0ee22170d73ff0d4b333ea1e6edfeb.zip:xnnpack \ +0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e.zip:pthread \ +4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip:fp16 \ +63058eff77e11aa15bf531df5dd34395ec3017c8.zip:fxdiv \ +909041e4802c4b9a2223ca04099f35bf1dbbd460.tar.gz:llvm \ +6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz:apis \ +v25.9.23.tar.gz:flatbuffer \ +a15b489e1222b2087007546b4912e21293ea86ff.tar.gz:neon \ +v2.11.0.tar.gz:nanobind \ +v1.1.tar.gz:dlpack \ +d38452e1ee03523a208362186fd42248ff2609f6.tar.gz:absl \ +11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz:protolib \ +63205aa90afa6803d8f58bc3081b69288e9f1906.zip:kleidiai \ +v3.10.5.tar.gz:nlohmann \ +9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz:upb \ +a37c3dbdd5d2a15113d363c7a7c41c30453e482f.zip:riegeli \ +v1.5.7.zip:net_zstd \ +rules_go-v0.34.0.zip:rules_go \ +rules_python-1.6.0.tar.gz:rules_python \ +0.1.0.tar.gz:rules_cc \ +v6.31.1.zip:protobuf6 \ +v2.1.0.tar.gz:absl_py \ +ducc-aa46a4c21e440b3d416c16eca3c96df19c74f316.tar.gz:ducc \ +ml_dtypes-00d98cd92ade342fef589c0470379abb27baebe9.tar.gz:ml_dtypes \ +v1.2.0.tar.gz:brotli_new \ +v0.11.1.tar.gz:libjxl \ +c695e43eba127a74a67263775ab611bded7fba34.zip:xprof \ +1.3.0.tar.gz:highway \ +2025_09_16.tar.gz:skcms \ +v1.4.0.tar.gz:libwebp \ +2afe84b39f0d097ecd70fc44a9e0e39782cee6a3.zip:slinky \ +v1.3.0.tar.gz:robin_map \ +3ea912eb05a4ce1bf598834eb67dbd74e426b882.zip:shardy \ +nvshmem_src_3.1.7-1.txz:nvshmem \ +clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz:clang18 \ +x86_64_ubuntu18_gcc8.4-0.2.1.tar.xz:gcc_sysroot \ +cpython-3.11.13+20250808-x86_64-unknown-linux-gnu-install_only.tar.gz:cpython311 \ +libtinfo.so.5:libtinfo \ +libtinfo5-copyright.txt:libtinfo_cp -MASTER_SITES+= https://github.com/bazelbuild/platforms/releases/download/0.0.6/:platforms \ - https://github.com/bazelbuild/apple_support/releases/download/1.1.0/:apple \ - https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/:skylib \ - https://github.com/bazelbuild/bazel-toolchains/archive/:toolchain \ - https://github.com/bazelbuild/rules_android/archive/:buildrules \ - https://github.com/bazelbuild/rules_apple/releases/download/1.0.1/:applerules \ - https://github.com/bazelbuild/rules_cc/archive/:rulescc \ - https://github.com/bazelbuild/rules_closure/archive/:closure \ - https://github.com/bazelbuild/rules_foreign_cc/archive/:rulesforeigncc \ - https://github.com/bazelbuild/rules_java/archive/:java \ - https://github.com/bazelbuild/rules_jvm_external/archive/:jvm \ - https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/:pkg \ - https://github.com/bazelbuild/rules_proto/archive/:protolib \ - https://github.com/bazelbuild/rules_python/releases/download/0.0.1/:pythonrules \ - https://github.com/bazelbuild/rules_swift/releases/download/1.0.0/:swift \ - https://github.com/dmlc/dlpack/archive/:dlpack \ - https://github.com/google/benchmark/archive/:benchmark \ - https://github.com/google/farmhash/archive/:farmhash \ - https://github.com/google/gemmlowp/archive/:gemmlowp \ - https://github.com/google/highwayhash/archive/:highwayhash \ - https://github.com/google/re2/archive/:re2 \ - https://github.com/google/ruy/archive/:ruy \ - https://github.com/joe-kuo/sobol_data/archive/:sobol \ - https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/:llvmorg \ - https://github.com/mborgerding/kissfft/archive/refs/tags/:kiss \ - https://github.com/oneapi-src/oneDNN/archive/refs/tags/:onednn \ - https://github.com/openxla/stablehlo/archive/:openxla \ - https://github.com/petewarden/OouraFFT/archive/:ooura \ - https://github.com/pybind/pybind11_abseil/archive/:pybindabseil \ - https://github.com/pybind/pybind11_bazel/archive/:pybindbazel \ - https://github.com/pybind/pybind11_protobuf/archive/:pybindprotobuf \ - https://github.com/pytorch/cpuinfo/archive/:cpuinfo \ - https://github.com/tensorflow/runtime/archive/:runtime \ - https://gitlab.com/libeigen/eigen/-/archive/b0f877f8e01e90a5b0f3a79d46ea234899f8b499/:eigen \ - https://github.com/google/XNNPACK/archive/:xnnpack \ - https://github.com/Maratyszcza/pthreadpool/archive/:pthread \ - https://github.com/Maratyszcza/FP16/archive/:fp16 \ - https://github.com/Maratyszcza/FXdiv/archive/:fxdiv \ - https://github.com/llvm/llvm-project/archive/:llvm \ - https://github.com/googleapis/googleapis/archive/:apis \ - https://storage.googleapis.com/mirror.tensorflow.org/github.com/google/flatbuffers/archive/:flatbuffer \ - https://github.com/intel/ARM_NEON_2_x86_SSE/archive/:neon +MASTER_SITES+=https://github.com/bazelbuild/platforms/releases/download/0.0.11/:platforms \ +https://github.com/bazelbuild/apple_support/releases/download/1.24.5/:apple \ +https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/:skylib \ +https://github.com/bazelbuild/bazel-toolchains/archive/:toolchain \ +https://github.com/bazelbuild/rules_android/archive/:buildrules \ +https://github.com/bazelbuild/rules_apple/releases/download/3.5.1/:applerules \ +https://github.com/bazelbuild/rules_swift/releases/download/1.18.0/:swift \ +https://github.com/bazelbuild/rules_closure/archive/:closure \ +https://github.com/bazelbuild/rules_jvm_external/archive/:jvm \ +https://github.com/bazelbuild/rules_pkg/releases/download/0.7.1/:pkg \ +https://github.com/bazelbuild/rules_foreign_cc/archive/:foreign_cc \ +https://github.com/bazelbuild/rules_java/releases/download/7.6.1/:rules_java \ +https://github.com/bazelbuild/rules_license/releases/download/0.0.7/:rlic \ +https://github.com/bazel-contrib/bazel_features/releases/download/v1.25.0/:bfeatures \ +https://github.com/bazelbuild/rules_shell/releases/download/v0.4.1/:rshell \ +https://github.com/google-ml-infra/rules_ml_toolchain/archive/:mlchain \ +https://github.com/google/benchmark/archive/:benchmark \ +https://github.com/google/farmhash/archive/:farmhash \ +https://github.com/google/gemmlowp/archive/:gemmlowp \ +https://github.com/google/highwayhash/archive/:highwayhash \ +https://github.com/google/re2/archive/:re2 \ +https://github.com/google/ruy/archive/:ruy \ +https://github.com/joe-kuo/sobol_data/archive/:sobol \ +https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.1/:llvmorg \ +https://github.com/mborgerding/kissfft/archive/refs/tags/:kiss \ +https://github.com/oneapi-src/oneDNN/archive/refs/tags/:onednn \ +https://github.com/openxla/stablehlo/archive/:openxla \ +https://github.com/petewarden/OouraFFT/archive/:ooura \ +https://github.com/pybind/pybind11_abseil/archive/:pybindabseil \ +https://github.com/pybind/pybind11_bazel/archive/:pybindbazel \ +https://github.com/pybind/pybind11_protobuf/archive/:pybindprotobuf \ +https://github.com/pytorch/cpuinfo/archive/:cpuinfo \ +https://github.com/tensorflow/runtime/archive/:runtime \ +https://gitlab.com/libeigen/eigen/-/archive/dcbaf2d608f306450f1e74949eb87e9a22a7ef4b/:eigen \ +https://github.com/google/XNNPACK/archive/:xnnpack \ +https://github.com/Maratyszcza/pthreadpool/archive/:pthread \ +https://github.com/Maratyszcza/FP16/archive/:fp16 \ +https://github.com/Maratyszcza/FXdiv/archive/:fxdiv \ +https://github.com/llvm/llvm-project/archive/:llvm \ +https://github.com/googleapis/googleapis/archive/:apis \ +https://github.com/google/flatbuffers/archive/refs/tags/:flatbuffer \ +https://github.com/intel/ARM_NEON_2_x86_SSE/archive/:neon \ +https://github.com/wjakob/nanobind/archive/refs/tags/:nanobind \ +https://github.com/dmlc/dlpack/archive/refs/tags/:dlpack \ +https://github.com/abseil/abseil-cpp/archive/:absl \ +https://github.com/bazelbuild/rules_proto/archive/:protolib \ +https://github.com/ARM-software/kleidiai/archive/:kleidiai \ +https://github.com/nlohmann/json/archive/:nlohmann \ +https://github.com/protocolbuffers/upb/archive/:upb \ +https://github.com/google/riegeli/archive/:riegeli \ +https://github.com/facebook/zstd/archive/:net_zstd \ +https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/:rules_go \ +https://github.com/bazelbuild/rules_python/releases/download/1.6.0/:rules_python \ +https://github.com/bazelbuild/rules_cc/archive/refs/tags/:rules_cc \ +https://github.com/protocolbuffers/protobuf/archive/refs/tags/:protobuf6 \ +https://github.com/abseil/abseil-py/archive/refs/tags/:absl_py \ +https://gitlab.mpcdf.mpg.de/mtr/ducc/-/archive/aa46a4c21e440b3d416c16eca3c96df19c74f316/:ducc \ +https://github.com/jax-ml/ml_dtypes/archive/00d98cd92ade342fef589c0470379abb27baebe9/:ml_dtypes \ +https://github.com/google/brotli/archive/refs/tags/:brotli_new \ +https://github.com/libjxl/libjxl/archive/refs/tags/:libjxl \ +https://storage.googleapis.com/mirror.tensorflow.org/github.com/openxla/xprof/archive/:xprof \ +https://github.com/google/highway/archive/refs/tags/:highway \ +https://github.com/google/skcms/archive/refs/tags/:skcms \ +https://github.com/webmproject/libwebp/archive/:libwebp \ +https://github.com/dsharlet/slinky/archive/:slinky \ +https://github.com/Tessil/robin-map/archive/refs/tags/:robin_map \ +https://github.com/openxla/shardy/archive/:shardy \ +https://developer.download.nvidia.com/compute/redist/nvshmem/3.1.7/source/:nvshmem \ +https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/:clang18 \ +https://storage.googleapis.com/ml-sysroot-testing/x86_64/:gcc_sysroot \ +https://github.com/astral-sh/python-build-standalone/releases/download/20250808/:cpython311 \ +https://storage.googleapis.com/ml-sysroot-testing/libtinfo/:libtinfo \ +https://storage.googleapis.com/ml-sysroot-testing/libtinfo/:libtinfo_cp diff --git a/science/py-tensorflow/distinfo b/science/py-tensorflow/distinfo index e886c03d0967..6be3b4243f7d 100644 --- a/science/py-tensorflow/distinfo +++ b/science/py-tensorflow/distinfo @@ -1,91 +1,149 @@ -TIMESTAMP = 1731660141 -SHA256 (tensorflow/platforms-0.0.6.tar.gz) = 5308fc1d8865406a49427ba24a9ab53087f17f5266a7aabbfc28823f3916e1ca -SIZE (tensorflow/platforms-0.0.6.tar.gz) = 5537 -SHA256 (tensorflow/apple_support.1.1.0.tar.gz) = ce1042cf936540eaa7b49c4549d7cd9b6b1492acbb6e765840a67a34b8e17a97 -SIZE (tensorflow/apple_support.1.1.0.tar.gz) = 27105 -SHA256 (tensorflow/bazel-skylib-1.3.0.tar.gz) = 74d544d96f4a5bb630d465ca8bbcfe231e3594e5aae57e1edbf17a6eb3ca2506 -SIZE (tensorflow/bazel-skylib-1.3.0.tar.gz) = 36103 +TIMESTAMP = 1774238095 +SHA256 (tensorflow/platforms-0.0.11.tar.gz) = 29742e87275809b5e598dc2f04d86960cc7a55b3067d97221c9abbc9926bff0f +SIZE (tensorflow/platforms-0.0.11.tar.gz) = 7882 +SHA256 (tensorflow/apple_support.1.24.5.tar.gz) = 1ae6fcf983cff3edab717636f91ad0efff2e5ba75607fdddddfd6ad0dbdfaf10 +SIZE (tensorflow/apple_support.1.24.5.tar.gz) = 110555 +SHA256 (tensorflow/bazel-skylib-1.7.1.tar.gz) = bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f +SIZE (tensorflow/bazel-skylib-1.7.1.tar.gz) = 43566 SHA256 (tensorflow/8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz) = 294cdd859e57fcaf101d4301978c408c88683fbc46fbc1a3829da92afbea55fb SIZE (tensorflow/8c717f8258cd5f6c7a45b97d974292755852b658.tar.gz) = 80728 SHA256 (tensorflow/v0.1.1.zip) = cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806 SIZE (tensorflow/v0.1.1.zip) = 14654 -SHA256 (tensorflow/rules_apple.1.0.1.tar.gz) = 36072d4f3614d309d6a703da0dfe48684ec4c65a89611aeb9590b45af7a3e592 -SIZE (tensorflow/rules_apple.1.0.1.tar.gz) = 2198467 -SHA256 (tensorflow/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz) = ff7876d80cd3f6b8c7a064bd9aa42a78e02096544cca2b22a9cf390a4397a53e -SIZE (tensorflow/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e.tar.gz) = 130803 +SHA256 (tensorflow/rules_apple.3.5.1.tar.gz) = b4df908ec14868369021182ab191dbd1f40830c9b300650d5dc389e0b9266c8d +SIZE (tensorflow/rules_apple.3.5.1.tar.gz) = 2404029 +SHA256 (tensorflow/rules_swift.1.18.0.tar.gz) = bb01097c7c7a1407f8ad49a1a0b1960655cf823c26ad2782d0b7d15b323838e2 +SIZE (tensorflow/rules_swift.1.18.0.tar.gz) = 255839 SHA256 (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 5b00383d08dd71f28503736db0500b6fb4dda47489ff5fc6bed42557c07c6ba9 SIZE (tensorflow/308b05b2419edb5c8ee0471b67a40403df940149.tar.gz) = 464906 -SHA256 (tensorflow/0.7.1.tar.gz) = bcd0c5f46a49b85b384906daae41d277b3dc0ff27c7c752cc51e43048a58ec83 -SIZE (tensorflow/0.7.1.tar.gz) = 215296 -SHA256 (tensorflow/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip) = bc81f1ba47ef5cc68ad32225c3d0e70b8c6f6077663835438da8d5733f917598 -SIZE (tensorflow/7cf3cefd652008d0a64a419c34c13bdca6c8f178.zip) = 9422 SHA256 (tensorflow/4.3.zip) = 6274687f6fc5783b589f56a2f1ed60de3ce1f99bc4e8f9edef3de43bdf7c6e74 SIZE (tensorflow/4.3.zip) = 3998031 SHA256 (tensorflow/rules_pkg-0.7.1.tar.gz) = 451e08a4d78988c06fa3f9306ec813b836b1d076d0f055595444ba4ff22b867f SIZE (tensorflow/rules_pkg-0.7.1.tar.gz) = 77334 -SHA256 (tensorflow/11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz) = 20b240eba17a36be4b0b22635aca63053913d5c1ee36e16be36499d167a2f533 -SIZE (tensorflow/11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz) = 14304 -SHA256 (tensorflow/rules_python-0.0.1.tar.gz) = aa96a691d3a8177f3215b14b0edc9641787abaaa30363a080165d06ab65e1161 -SIZE (tensorflow/rules_python-0.0.1.tar.gz) = 2302092 -SHA256 (tensorflow/rules_swift.1.0.0.tar.gz) = 12057b7aa904467284eee640de5e33853e51d8e31aae50b3fb25d2823d51c6b8 -SIZE (tensorflow/rules_swift.1.0.0.tar.gz) = 199181 -SHA256 (tensorflow/9351cf542ab478499294864ff3acfdab5c8c5f3d.tar.gz) = 7aca112f2809b7e9523e9b47b04a393affeca38247861951f07c42dee10180e2 -SIZE (tensorflow/9351cf542ab478499294864ff3acfdab5c8c5f3d.tar.gz) = 76170 +SHA256 (tensorflow/rules_foreign_cc-0.7.1.tar.gz) = bcd0c5f46a49b85b384906daae41d277b3dc0ff27c7c752cc51e43048a58ec83 +SIZE (tensorflow/rules_foreign_cc-0.7.1.tar.gz) = 215296 +SHA256 (tensorflow/rules_java-7.6.1.tar.gz) = f8ae9ed3887df02f40de9f4f7ac3873e6dd7a471f9cddf63952538b94b59aeb3 +SIZE (tensorflow/rules_java-7.6.1.tar.gz) = 26756 +SHA256 (tensorflow/rules_license-0.0.7.tar.gz) = 4531deccb913639c30e5c7512a054d5d875698daeb75d8cf90f284375fe7c360 +SIZE (tensorflow/rules_license-0.0.7.tar.gz) = 31476 +SHA256 (tensorflow/bazel_features-v1.25.0.tar.gz) = 4fd9922d464686820ffd8fcefa28ccffa147f7cdc6b6ac0d8b07fde565c65d66 +SIZE (tensorflow/bazel_features-v1.25.0.tar.gz) = 16266 +SHA256 (tensorflow/rules_shell-v0.4.1.tar.gz) = bc61ef94facc78e20a645726f64756e5e285a045037c7a61f65af2941f4c25e1 +SIZE (tensorflow/rules_shell-v0.4.1.tar.gz) = 22017 +SHA256 (tensorflow/d8cb9c2c168cd64000eaa6eda0781a9615a26ffe.tar.gz) = 54c1a357f71f611efdb4891ebd4bcbe4aeb6dfa7e473f14fd7ecad5062096616 +SIZE (tensorflow/d8cb9c2c168cd64000eaa6eda0781a9615a26ffe.tar.gz) = 159079 SHA256 (tensorflow/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz) = 552ca3d4d1af4beeb1907980f7096315aa24150d6baf5ac1e5ad90f04846c670 SIZE (tensorflow/f7547e29ccaed7b64ef4f7495ecfff1c9f6f3d03.tar.gz) = 204856 SHA256 (tensorflow/0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz) = 18392cf0736e1d62ecbb8d695c31496b6507859e8c75541d7ad0ba092dc52115 SIZE (tensorflow/0d859a811870d10f53a594927d0d0b97573ad06d.tar.gz) = 467251 -SHA256 (tensorflow/e844ffd17118c1e17d94e1ba4354c075a4577b88.zip) = 522b7a82d920ebd0c4408a5365866a40b81d1c0d60b2369011d315cca03c6476 -SIZE (tensorflow/e844ffd17118c1e17d94e1ba4354c075a4577b88.zip) = 940590 +SHA256 (tensorflow/16e8662c34917be0065110bfcd9cc27d30f52fdf.zip) = 7dc418717c8456473fac4ff2288b71057e3dcb72894524c734a4362cdb51fa8b +SIZE (tensorflow/16e8662c34917be0065110bfcd9cc27d30f52fdf.zip) = 940836 SHA256 (tensorflow/c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz) = c0e2b9931fbcce3bfbcd7999c3c114f404ac0f8b89775a5bbccbcaa501868e58 SIZE (tensorflow/c13d28517a4db259d738ea4886b1f00352a3cc33.tar.gz) = 160745 -SHA256 (tensorflow/a276a8c738735a0fe45a6ee590fe2df69bcf4502.tar.gz) = b90430b2a9240df4459108b3e291be80ae92c68a47bc06ef2dc419c5724de061 -SIZE (tensorflow/a276a8c738735a0fe45a6ee590fe2df69bcf4502.tar.gz) = 306766 +SHA256 (tensorflow/03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz) = ef516fb84824a597c4d5d0d6d330daedb18363b5a99eda87d027e6bdd9cba299 +SIZE (tensorflow/03da4fc0857c285e3a26782f6bc8931c4c950df4.tar.gz) = 396457 SHA256 (tensorflow/3286a34cc8de6149ac6844107dfdffac91531e72.zip) = a22c42e80c7bb450db8492728e4742ee66f46d5458c45fe67ce2c9b61240630c SIZE (tensorflow/3286a34cc8de6149ac6844107dfdffac91531e72.zip) = 381045 SHA256 (tensorflow/835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz) = 583d7b975e506c076fc579d9139530596906b9195b203d42361417e9aad79b73 SIZE (tensorflow/835a7d7b1ee3bc83e575e302a985c66ec4b65249.tar.gz) = 2569603 SHA256 (tensorflow/openmp-10.0.1.src.tar.xz) = d19f728c8e04fb1e94566c8d76aef50ec926cd2f95ef3bf1e0a5de4909b28b44 SIZE (tensorflow/openmp-10.0.1.src.tar.xz) = 955492 SHA256 (tensorflow/131.1.0.tar.gz) = 76c1aac87ddb7258f34b08a13f0eebf9e53afa299857568346aa5c82bcafaf1a SIZE (tensorflow/131.1.0.tar.gz) = 52383 -SHA256 (tensorflow/v2.7.3.tar.gz) = a50993aa6265b799b040fe745e0010502f9f7103cc53a9525d59646aef006633 -SIZE (tensorflow/v2.7.3.tar.gz) = 6410473 -SHA256 (tensorflow/43d81c6883ade82052920bd367c61f9e52f09954.zip) = 57a8a93e51211f990d760631f2bfdbba5257b22dda3d60e35a186bba988a2ace -SIZE (tensorflow/43d81c6883ade82052920bd367c61f9e52f09954.zip) = 27954369 +SHA256 (tensorflow/v3.7.3.tar.gz) = 071f289dc961b43a3b7c8cbe8a305290a7c5d308ec4b2f586397749abdc88296 +SIZE (tensorflow/v3.7.3.tar.gz) = 14101401 +SHA256 (tensorflow/127d2f238010589ac96f2f402a27afc9dccbb7ab.zip) = 3780e503599ebcc1acc4c96ea5f23c724dae2a4d746ed7d9a01d3f14d879265a +SIZE (tensorflow/127d2f238010589ac96f2f402a27afc9dccbb7ab.zip) = 20267651 SHA256 (tensorflow/v1.0.tar.gz) = 5f4dabc2ae21e1f537425d58a49cdca1c49ea11db0d6271e2a4b27e9697548eb SIZE (tensorflow/v1.0.tar.gz) = 110531 -SHA256 (tensorflow/2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz) = 0223b647b8cc817336a51e787980ebc299c8d5e64c069829bf34b69d72337449 -SIZE (tensorflow/2c4932ed6f6204f1656e245838f4f5eae69d2e29.tar.gz) = 28202 -SHA256 (tensorflow/72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz) = 516c1b3a10d87740d2b7de6f121f8e19dde2c372ecbfe59aef44cd1872c10395 -SIZE (tensorflow/72cbbf1fbc830e487e3012862b7b720001b70672.tar.gz) = 8722 -SHA256 (tensorflow/80f3440cd8fee124e077e2e47a8a17b78b451363.zip) = c7ab64b1ccf9a678694a89035a8c865a693e4e872803778f91f0965c2f281d78 -SIZE (tensorflow/80f3440cd8fee124e077e2e47a8a17b78b451363.zip) = 76830 -SHA256 (tensorflow/fa1c679da8d19e1d87f20175ae1ec10995cd3dd3.zip) = 2bf2b62eb86e2d2eaf862d0b9683a6c467a4d69fb2f7f1dc47c799809148608f -SIZE (tensorflow/fa1c679da8d19e1d87f20175ae1ec10995cd3dd3.zip) = 3848981 -SHA256 (tensorflow/7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz) = cfde5639b7c67c0edfa073b779b977aae744137c2b2fcb25a992f8d57bd033dd -SIZE (tensorflow/7d879c8b161085a4374ea481b93a52adb19c0529.tar.gz) = 15228644 -SHA256 (tensorflow/eigen-b0f877f8e01e90a5b0f3a79d46ea234899f8b499.tar.gz) = bdb1353ba33a5a7a5caadf822057ac1f0254ba2c5e70512dd1ec20cbb64e2f6c -SIZE (tensorflow/eigen-b0f877f8e01e90a5b0f3a79d46ea234899f8b499.tar.gz) = 2833536 -SHA256 (tensorflow/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip) = c979b62e8b77af60dfd7567f22ade20d5a9d4d0888f8a2d60d155fc0d31b22ab -SIZE (tensorflow/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip) = 24168206 -SHA256 (tensorflow/b8374f80e42010941bda6c85b0e3f1a1bd77a1e0.zip) = b96413b10dd8edaa4f6c0a60c6cf5ef55eebeef78164d5d69294c8173457f0ec -SIZE (tensorflow/b8374f80e42010941bda6c85b0e3f1a1bd77a1e0.zip) = 61524 +SHA256 (tensorflow/13d4f99d5309df3d5afa80fe2ae332d7a2a64c6b.tar.gz) = c6d0c6784e4d5681919731f1fa86e0b7cd010e770115bdb3a0285b3939ef2394 +SIZE (tensorflow/13d4f99d5309df3d5afa80fe2ae332d7a2a64c6b.tar.gz) = 33138 +SHA256 (tensorflow/v2.13.6.tar.gz) = cae680670bfa6e82703c03f2a3c995408cdcbf43616d7bdd198ef45d3c327731 +SIZE (tensorflow/v2.13.6.tar.gz) = 6156 +SHA256 (tensorflow/f02a2b7653bc50eb5119d125842a3870db95d251.zip) = 3cf7bf0f23954c5ce6c37f0a215f506efa3035ca06e3b390d67f4cbe684dce23 +SIZE (tensorflow/f02a2b7653bc50eb5119d125842a3870db95d251.zip) = 104204 +SHA256 (tensorflow/8a9210069b5a37dd89ed118a783945502a30a4ae.zip) = c0254ce97f7abc778dd2df0aaca1e0506dba1cd514fdb9fe88c07849393f8ef4 +SIZE (tensorflow/8a9210069b5a37dd89ed118a783945502a30a4ae.zip) = 3852053 +SHA256 (tensorflow/4ecc3a44a32c832b748328bed3f9a599f795ca8d.tar.gz) = 5e81d70f9534340f7ef8e63ec43bdd5971135e48183079be50ecb3f74b1fed66 +SIZE (tensorflow/4ecc3a44a32c832b748328bed3f9a599f795ca8d.tar.gz) = 797332 +SHA256 (tensorflow/eigen-dcbaf2d608f306450f1e74949eb87e9a22a7ef4b.tar.gz) = a71517b3815984c1a8174db1ebc58a17d4f5c23c06e377bbc4a5dfc85855a516 +SIZE (tensorflow/eigen-dcbaf2d608f306450f1e74949eb87e9a22a7ef4b.tar.gz) = 2984046 +SHA256 (tensorflow/25b42dfddb0ee22170d73ff0d4b333ea1e6edfeb.zip) = 44bf8a258cfd0d7b500b6058a2bb5c7387c8cebba295cfca985a68d16513f7c8 +SIZE (tensorflow/25b42dfddb0ee22170d73ff0d4b333ea1e6edfeb.zip) = 23536211 +SHA256 (tensorflow/0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e.zip) = f602ab141bdc5d5872a79d6551e9063b5bfa7ad6ad60cceaa641de5c45c86d70 +SIZE (tensorflow/0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e.zip) = 125519 SHA256 (tensorflow/4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip) = d973501a40c55126b31accc2d9f08d931ec3cc190c0430309a5e341d3c0ce32a SIZE (tensorflow/4dfe081cf6bcd15db339cf2680b9281b8451eeb3.zip) = 91462 SHA256 (tensorflow/63058eff77e11aa15bf531df5dd34395ec3017c8.zip) = 3d7b0e9c4c658a84376a1086126be02f9b7f753caa95e009d9ac38d11da444db SIZE (tensorflow/63058eff77e11aa15bf531df5dd34395ec3017c8.zip) = 16646 -SHA256 (tensorflow/dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz) = 3e91127af59a6b07fea7901c80a7b8b9234eced42b0f14abbad5f9f7674dba69 -SIZE (tensorflow/dc275fd03254d67d29cc70a5a0569acf24d2280d.tar.gz) = 182909064 +SHA256 (tensorflow/909041e4802c4b9a2223ca04099f35bf1dbbd460.tar.gz) = 3f986184ee126677dbd77edb16d6b82c057ec869fefd7a9871979941e52e837a +SIZE (tensorflow/909041e4802c4b9a2223ca04099f35bf1dbbd460.tar.gz) = 259501486 SHA256 (tensorflow/6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz) = 249d83abc5d50bf372c35c49d77f900bff022b2c21eb73aa8da1458b6ac401fc SIZE (tensorflow/6b3fdcea8bc5398be4e7e9930c693f0ea09316a0.tar.gz) = 6091152 -SHA256 (tensorflow/v23.1.21.tar.gz) = d84cb25686514348e615163b458ae0767001b24b42325f426fd56406fd384238 -SIZE (tensorflow/v23.1.21.tar.gz) = 2181861 +SHA256 (tensorflow/v25.9.23.tar.gz) = 9102253214dea6ae10c2ac966ea1ed2155d22202390b532d1dea64935c518ada +SIZE (tensorflow/v25.9.23.tar.gz) = 2336210 SHA256 (tensorflow/a15b489e1222b2087007546b4912e21293ea86ff.tar.gz) = 019fbc7ec25860070a1d90e12686fc160cfb33e22aa063c80f52b363f1361e9d SIZE (tensorflow/a15b489e1222b2087007546b4912e21293ea86ff.tar.gz) = 103972 -SHA256 (tensorflow/tensorflow-tensorflow-v2.13.1_GH0.tar.gz) = 89c07aebd4f41fbe0d08cc88aef00305542134f2f16d3b62918dc3c1182f33e2 -SIZE (tensorflow/tensorflow-tensorflow-v2.13.1_GH0.tar.gz) = 70663056 -SHA256 (tensorflow/ba7501696cc.patch) = d06dda3f889d7ffcd9dcec16f7f96e8ac24ffd5f999307fe0ceb623e57c7fa9f -SIZE (tensorflow/ba7501696cc.patch) = 740 -SHA256 (tensorflow/667cf3ed2d7.patch) = dc3cc6c8b9bd6f4978904c1a28df61ab00634cb6cab461690a83c58fde55a0d9 -SIZE (tensorflow/667cf3ed2d7.patch) = 960 +SHA256 (tensorflow/v2.11.0.tar.gz) = 62ba05e5f720c76c510d6ab2a77f8ccc17a76c5cea951bea47355a7dfa460449 +SIZE (tensorflow/v2.11.0.tar.gz) = 938321 +SHA256 (tensorflow/v1.1.tar.gz) = 2e3b94b55825c240cc58e6721e15b449978cbae21a2a4caa23058b0157ee2fb3 +SIZE (tensorflow/v1.1.tar.gz) = 198915 +SHA256 (tensorflow/d38452e1ee03523a208362186fd42248ff2609f6.tar.gz) = d1abe9da2003e6cbbd7619b0ced3e52047422f4f4ac6c66a9bef5d2e99fea837 +SIZE (tensorflow/d38452e1ee03523a208362186fd42248ff2609f6.tar.gz) = 2236099 +SHA256 (tensorflow/11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz) = 20b240eba17a36be4b0b22635aca63053913d5c1ee36e16be36499d167a2f533 +SIZE (tensorflow/11bf7c25e666dd7ddacbcd4d4c4a9de7a25175f8.tar.gz) = 14304 +SHA256 (tensorflow/63205aa90afa6803d8f58bc3081b69288e9f1906.zip) = 5e922c9afb7a0c881fc4359b58488f3faa840e8435de1a2207a6525935ed83c2 +SIZE (tensorflow/63205aa90afa6803d8f58bc3081b69288e9f1906.zip) = 2859671 +SHA256 (tensorflow/v3.10.5.tar.gz) = 5daca6ca216495edf89d167f808d1d03c4a4d929cef7da5e10f135ae1540c7e4 +SIZE (tensorflow/v3.10.5.tar.gz) = 7021996 +SHA256 (tensorflow/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz) = 61d0417abd60e65ed589c9deee7c124fe76a4106831f6ad39464e1525cef1454 +SIZE (tensorflow/9effcbcb27f0a665f9f345030188c0b291e32482.tar.gz) = 324650 +SHA256 (tensorflow/a37c3dbdd5d2a15113d363c7a7c41c30453e482f.zip) = 590ec559107fc7082e1a7d70e9c9bfb8624c79dabca0a05fe1bcba1d7a591ec8 +SIZE (tensorflow/a37c3dbdd5d2a15113d363c7a7c41c30453e482f.zip) = 1247370 +SHA256 (tensorflow/v1.5.7.zip) = 7897bc5d620580d9b7cd3539c44b59d78f3657d33663fe97a145e07b4ebd69a4 +SIZE (tensorflow/v1.5.7.zip) = 2753402 +SHA256 (tensorflow/rules_go-v0.34.0.zip) = 16e9fca53ed6bd4ff4ad76facc9b7b651a89db1689a2877d6fd7b82aa824e366 +SIZE (tensorflow/rules_go-v0.34.0.zip) = 1210403 +SHA256 (tensorflow/rules_python-1.6.0.tar.gz) = fa7dd2c6b7d63b3585028dd8a90a6cf9db83c33b250959c2ee7b583a6c130e12 +SIZE (tensorflow/rules_python-1.6.0.tar.gz) = 927982 +SHA256 (tensorflow/0.1.0.tar.gz) = 4b12149a041ddfb8306a8fd0e904e39d673552ce82e4296e96fac9cbf0780e59 +SIZE (tensorflow/0.1.0.tar.gz) = 168117 +SHA256 (tensorflow/v6.31.1.zip) = 6e09bbc950ba60c3a7b30280210cd285af8d7d8ed5e0a6ed101c72aff22e8d88 +SIZE (tensorflow/v6.31.1.zip) = 11437914 +SHA256 (tensorflow/tensorflow-tensorflow-v2.21.0_GH0.tar.gz) = ef3568bb4865d6c1b2564fb5689c19b6b9a5311572cd1f2ff9198636a8520921 +SIZE (tensorflow/tensorflow-tensorflow-v2.21.0_GH0.tar.gz) = 90831199 +SHA256 (tensorflow/v2.1.0.tar.gz) = 8a3d0830e4eb4f66c4fa907c06edf6ce1c719ced811a12e26d9d3162f8471758 +SIZE (tensorflow/v2.1.0.tar.gz) = 235261 +SHA256 (tensorflow/ducc-aa46a4c21e440b3d416c16eca3c96df19c74f316.tar.gz) = 077cf4bd0bd7eddaa6649a024285fff96e2662c5e6f2fb6ed5c5771f9de093f3 +SIZE (tensorflow/ducc-aa46a4c21e440b3d416c16eca3c96df19c74f316.tar.gz) = 423799 +SHA256 (tensorflow/ml_dtypes-00d98cd92ade342fef589c0470379abb27baebe9.tar.gz) = f6e5880666661351e6cd084ac4178ddc4dabcde7e9a73722981c0d1500cf5937 +SIZE (tensorflow/ml_dtypes-00d98cd92ade342fef589c0470379abb27baebe9.tar.gz) = 87114 +SHA256 (tensorflow/v1.2.0.tar.gz) = 816c96e8e8f193b40151dad7e8ff37b1221d019dbcb9c35cd3fadbfe6477dfec +SIZE (tensorflow/v1.2.0.tar.gz) = 646315 +SHA256 (tensorflow/v0.11.1.tar.gz) = 1492dfef8dd6c3036446ac3b340005d92ab92f7d48ee3271b5dac1d36945d3d9 +SIZE (tensorflow/v0.11.1.tar.gz) = 1876134 +SHA256 (tensorflow/c695e43eba127a74a67263775ab611bded7fba34.zip) = d27bcd502a0843e463fc4eb7d3532d0d720ddd6af6e39942846f1aa769352625 +SIZE (tensorflow/c695e43eba127a74a67263775ab611bded7fba34.zip) = 11177761 +SHA256 (tensorflow/1.3.0.tar.gz) = 07b3c1ba2c1096878a85a31a5b9b3757427af963b1141ca904db2f9f4afe0bc2 +SIZE (tensorflow/1.3.0.tar.gz) = 3634890 +SHA256 (tensorflow/2025_09_16.tar.gz) = 08c45dff8ede1b56a6e7d1e9fdaf113dd91ab28ddcbcf696229b683e5e9af45a +SIZE (tensorflow/2025_09_16.tar.gz) = 10061309 +SHA256 (tensorflow/v1.4.0.tar.gz) = 12af50c45530f0a292d39a88d952637e43fb2d4ab1883c44ae729840f7273381 +SIZE (tensorflow/v1.4.0.tar.gz) = 3800514 +SHA256 (tensorflow/2afe84b39f0d097ecd70fc44a9e0e39782cee6a3.zip) = 4c0b19e58706c44336c573a0ba9fdf0e412b23670cac6a3df95525a0909a0360 +SIZE (tensorflow/2afe84b39f0d097ecd70fc44a9e0e39782cee6a3.zip) = 381528 +SHA256 (tensorflow/v1.3.0.tar.gz) = a8424ad3b0affd4c57ed26f0f3d8a29604f0e1f2ef2089f497f614b1c94c7236 +SIZE (tensorflow/v1.3.0.tar.gz) = 70562 +SHA256 (tensorflow/3ea912eb05a4ce1bf598834eb67dbd74e426b882.zip) = bfdd113080d6da700b9bc3f15458069a88818a65ebf2a476fe281f084e1b6783 +SIZE (tensorflow/3ea912eb05a4ce1bf598834eb67dbd74e426b882.zip) = 3352636 +SHA256 (tensorflow/nvshmem_src_3.1.7-1.txz) = 2146ff231d9aadd2b11f324c142582f89e3804775877735dc507b4dfd70c788b +SIZE (tensorflow/nvshmem_src_3.1.7-1.txz) = 3686400 +SHA256 (tensorflow/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz) = 54ec30358afcc9fb8aa74307db3046f5187f9fb89fb37064cdde906e062ebf36 +SIZE (tensorflow/clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz) = 1044930068 +SHA256 (tensorflow/x86_64_ubuntu18_gcc8.4-0.2.1.tar.xz) = 9a06397f9dc4fe2237d126f964f1a3c942ce0036ba51976ea0d7fce0bc3e2fb7 +SIZE (tensorflow/x86_64_ubuntu18_gcc8.4-0.2.1.tar.xz) = 47419824 +SHA256 (tensorflow/cpython-3.11.13+20250808-x86_64-unknown-linux-gnu-install_only.tar.gz) = 3ad988c702cbb017fef1208d47dea4138a2e85fd0f7f01ec5e1e335e597131b9 +SIZE (tensorflow/cpython-3.11.13+20250808-x86_64-unknown-linux-gnu-install_only.tar.gz) = 46107448 +SHA256 (tensorflow/libtinfo.so.5) = 12cffc7274190ca1693a52ccd8303e719407e707c8557ddfb7eef81f208efaab +SIZE (tensorflow/libtinfo.so.5) = 170784 +SHA256 (tensorflow/libtinfo5-copyright.txt) = 5e8ee902c8906ddb7779fd36dc9979cb08b51fbebf7c0b1a9aeb78af382af590 +SIZE (tensorflow/libtinfo5-copyright.txt) = 6366 diff --git a/science/py-tensorflow/files/bazel/fix-protobuf-java.patch b/science/py-tensorflow/files/bazel/fix-protobuf-java.patch new file mode 100644 index 000000000000..12b4537b2aac --- /dev/null +++ b/science/py-tensorflow/files/bazel/fix-protobuf-java.patch @@ -0,0 +1,35 @@ +--- a/bazel/private/java_proto_support.bzl ++++ b/bazel/private/java_proto_support.bzl +@@ -6,8 +6,13 @@ + # https://developers.google.com/open-source/licenses/bsd + """Support for compiling protoc generated Java code.""" + +-load("@rules_java//java/private:proto_support.bzl", "compile", "merge") # buildifier: disable=bzl-visibility ++# Inline stubs for rules_java 7.x compatibility (proto_support.bzl added in rules_java 8.x) ++def compile(**kwargs): ++ return java_common.compile(**kwargs) + ++def merge(providers, **kwargs): ++ return java_common.merge(providers, **kwargs) ++ + # The provider is used to collect source and runtime jars in the `proto_library` dependency graph. + JavaProtoAspectInfo = provider("JavaProtoAspectInfo", fields = ["jars"]) + +--- a/bazel/private/java_lite_proto_library.bzl ++++ b/bazel/private/java_lite_proto_library.bzl +@@ -8,12 +8,14 @@ + + load("@rules_java//java/common:java_common.bzl", "java_common") + load("@rules_java//java/common:java_info.bzl", "JavaInfo") +-load("@rules_java//java/common:proguard_spec_info.bzl", "ProguardSpecInfo") + load("//bazel/common:proto_common.bzl", "proto_common") + load("//bazel/common:proto_info.bzl", "ProtoInfo") + load("//bazel/private:java_proto_support.bzl", "JavaProtoAspectInfo", "java_compile_for_protos", "java_info_merge_for_protos") + load("//bazel/private:toolchain_helpers.bzl", "toolchains") ++# Inline ProguardSpecInfo stub for rules_java 7.x compatibility ++ProguardSpecInfo = provider("ProguardSpecInfo", fields = ["specs"]) + ++ + _PROTO_TOOLCHAIN_ATTR = "_aspect_proto_toolchain_for_javalite" + + _JAVA_LITE_PROTO_TOOLCHAIN = Label("//bazel/private:javalite_toolchain_type") diff --git a/science/py-tensorflow/files/bazel/fix-pybind11_protobuf.patch b/science/py-tensorflow/files/bazel/fix-pybind11_protobuf.patch index 80d30bf25333..ac3760842143 100644 --- a/science/py-tensorflow/files/bazel/fix-pybind11_protobuf.patch +++ b/science/py-tensorflow/files/bazel/fix-pybind11_protobuf.patch @@ -1,116 +1,79 @@ -diff --git a/pybind11_protobuf/BUILD b/pybind11_protobuf/BUILD -index b62eb91..1856ad3 100644 --- a/pybind11_protobuf/BUILD +++ b/pybind11_protobuf/BUILD -@@ -61,9 +61,11 @@ pybind_library( - "@com_google_absl//absl/container:flat_hash_map", +@@ -46,7 +46,6 @@ "@com_google_absl//absl/strings", "@com_google_absl//absl/types:optional", -- "@com_google_protobuf//:proto_api", "@com_google_protobuf//:protobuf", -- ], -+ ] + select({ -+ ":enable_pyproto_api_setting": ["@com_google_protobuf//:proto_api"], -+ "//conditions:default": [], -+ }), +- "@com_google_protobuf//python:proto_api", + ], ) - pybind_library( -diff --git a/pybind11_protobuf/proto_cast_util.cc b/pybind11_protobuf/proto_cast_util.cc -index 52c57c9..771e688 100644 ---- a/pybind11_protobuf/proto_cast_util.cc -+++ b/pybind11_protobuf/proto_cast_util.cc -@@ -14,9 +14,12 @@ +@@ -75,7 +74,6 @@ + "@com_google_absl//absl/synchronization", + "@com_google_absl//absl/types:optional", + "@com_google_protobuf//:protobuf", +- "@com_google_protobuf//python:proto_api", + ], + ) - #include "google/protobuf/descriptor.pb.h" - #include "google/protobuf/descriptor.h" -+#include "google/protobuf/descriptor_database.h" - #include "google/protobuf/dynamic_message.h" +--- a/pybind11_protobuf/check_unknown_fields.h ++++ b/pybind11_protobuf/check_unknown_fields.h +@@ -6,7 +6,11 @@ + #include "absl/strings/string_view.h" + #include "absl/types/optional.h" #include "google/protobuf/message.h" -+#if defined(PYBIND11_PROTOBUF_ENABLE_PYPROTO_API) ++#if __has_include("python/google/protobuf/proto_api.h") #include "python/google/protobuf/proto_api.h" -+#endif - #include "absl/container/flat_hash_map.h" - #include "absl/strings/numbers.h" - #include "absl/strings/str_replace.h" -@@ -35,8 +38,12 @@ using ::google::protobuf::FileDescriptor; - using ::google::protobuf::FileDescriptorProto; - using ::google::protobuf::Message; - using ::google::protobuf::MessageFactory; -+#if defined(PYBIND11_PROTOBUF_ENABLE_PYPROTO_API) - using ::google::protobuf::python::PyProto_API; - using ::google::protobuf::python::PyProtoAPICapsuleName; +#else -+struct PyProto_API; ++namespace google::protobuf::python { struct PyProto_API; } +#endif - namespace pybind11_protobuf { - namespace { -@@ -321,6 +328,7 @@ py::object GlobalState::PyMessageInstance(const Descriptor* descriptor) { - module_name + "?"); - } + namespace pybind11_protobuf::check_unknown_fields { -+#if defined(PYBIND11_PROTOBUF_ENABLE_PYPROTO_API) - std::pair GlobalState::PyFastCppProtoMessageInstance( - const Descriptor* descriptor) { - assert(descriptor != nullptr); -@@ -361,6 +369,7 @@ std::pair GlobalState::PyFastCppProtoMessageInstance( - } - return {std::move(result), message}; - } -+#endif - - // Create C++ DescriptorPools based on Python DescriptorPools. - // The Python pool will provide message definitions when they are needed. -@@ -500,6 +509,7 @@ class PythonDescriptorPoolWrapper { - private: - bool CopyToFileDescriptorProto(py::handle py_file_descriptor, - FileDescriptorProto* output) { -+#if defined(PYBIND11_PROTOBUF_ENABLE_PYPROTO_API) - if (GlobalState::instance()->py_proto_api()) { - try { - py::object c_proto = py::reinterpret_steal( -@@ -518,6 +528,7 @@ class PythonDescriptorPoolWrapper { - PyErr_Print(); - } - } +--- a/pybind11_protobuf/check_unknown_fields.cc ++++ b/pybind11_protobuf/check_unknown_fields.cc +@@ -15,7 +15,9 @@ + #include "google/protobuf/descriptor.h" + #include "google/protobuf/message.h" + #include "google/protobuf/unknown_field_set.h" ++#if __has_include("python/google/protobuf/proto_api.h") + #include "python/google/protobuf/proto_api.h" +#endif - py::object wire = py_file_descriptor.attr("serialized_pb"); - const char* bytes = PYBIND11_BYTES_AS_STRING(wire.ptr()); -@@ -561,6 +572,9 @@ void ImportProtoDescriptorModule(const Descriptor* descriptor) { + namespace pybind11_protobuf::check_unknown_fields { + namespace { +@@ -103,11 +105,16 @@ + unknown_field_number = unknown_field_set.field(0).number(); - const Message* PyProtoGetCppMessagePointer(py::handle src) { - assert(PyGILState_Check()); -+#ifndef PYBIND11_PROTOBUF_ENABLE_PYPROTO_API -+ return nullptr; + // Stop only if the extension is known by Python. ++#if __has_include("python/google/protobuf/proto_api.h") + if (py_proto_api->GetDefaultDescriptorPool()->FindExtensionByNumber( + unknown_field_parent_descriptor, unknown_field_number)) { + field_fqn_parts.resize(depth); + return true; + } +#else - if (!GlobalState::instance()->py_proto_api()) return nullptr; - auto* ptr = - GlobalState::instance()->py_proto_api()->GetMessagePointer(src.ptr()); -@@ -571,6 +585,7 @@ const Message* PyProtoGetCppMessagePointer(py::handle src) { - return nullptr; - } - return ptr; ++ field_fqn_parts.resize(depth); ++ return true; +#endif - } - - absl::optional PyProtoDescriptorName(py::handle py_proto) { -@@ -732,6 +747,9 @@ py::handle GenericPyProtoCast(Message* src, py::return_value_policy policy, + } - py::handle GenericFastCppProtoCast(Message* src, py::return_value_policy policy, - py::handle parent, bool is_const) { -+#ifndef PYBIND11_PROTOBUF_ENABLE_PYPROTO_API -+ throw std::logic_error("Not implemented"); + // If this message does not include submessages which allow extensions, +@@ -184,6 +191,9 @@ + absl::optional CheckRecursively( + const ::google::protobuf::python::PyProto_API* py_proto_api, + const ::google::protobuf::Message* message) { ++#if !__has_include("python/google/protobuf/proto_api.h") ++ return absl::nullopt; +#else - assert(policy != pybind11::return_value_policy::automatic); - assert(policy != pybind11::return_value_policy::automatic_reference); - assert(src != nullptr); -@@ -802,6 +820,7 @@ py::handle GenericFastCppProtoCast(Message* src, py::return_value_policy policy, - std::string message("pybind11_protobuf unhandled return_value_policy::"); - throw py::cast_error(message + ReturnValuePolicyName(policy)); + const auto* root_descriptor = message->GetDescriptor(); + HasUnknownFields search{py_proto_api, root_descriptor}; + if (!search.FindUnknownFieldsRecursive(message, 0u)) { +@@ -194,6 +204,7 @@ + return absl::nullopt; } + return search.BuildErrorMessage(); +#endif } - py::handle GenericProtoCast(Message* src, py::return_value_policy policy, + } // namespace pybind11_protobuf::check_unknown_fields diff --git a/science/py-tensorflow/files/bazel/fix-xnnpack.patch b/science/py-tensorflow/files/bazel/fix-xnnpack.patch index 7a995bbff74d..3042c71ecbb0 100644 --- a/science/py-tensorflow/files/bazel/fix-xnnpack.patch +++ b/science/py-tensorflow/files/bazel/fix-xnnpack.patch @@ -1,52 +1,31 @@ diff --git a/build_defs.bzl b/build_defs.bzl -index 01b436eb7..ca4abd54d 100644 --- a/build_defs.bzl +++ b/build_defs.bzl -@@ -146,7 +146,7 @@ def xnnpack_cc_library( - ":emscripten_wasm": wasm_srcs, - ":emscripten_wasmsimd": wasmsimd_srcs, - ":emscripten_wasmrelaxedsimd": wasmrelaxedsimd_srcs, +@@ -345,7 +345,7 @@ def xnnpack_cc_library( + "//build_config:emscripten_wasm": wasm_srcs, + "//build_config:emscripten_wasmsimd": wasmsimd_srcs, + "//build_config:emscripten_wasmrelaxedsimd": wasmrelaxedsimd_srcs, - "//conditions:default": [], + "//conditions:default": x86_srcs, }), - copts = [ - "-Iinclude", -@@ -179,7 +179,7 @@ def xnnpack_cc_library( - ":emscripten_wasm": wasm_copts, - ":emscripten_wasmsimd": wasmsimd_copts, - ":emscripten_wasmrelaxedsimd": wasmrelaxedsimd_copts, + copts = copts + select({ + "//build_config:linux_k8": gcc_x86_copts, +@@ -378,7 +378,7 @@ def xnnpack_cc_library( + "//build_config:emscripten_wasm": wasm_copts, + "//build_config:emscripten_wasmsimd": wasmsimd_copts, + "//build_config:emscripten_wasmrelaxedsimd": wasmrelaxedsimd_copts, - "//conditions:default": [], + "//conditions:default": [opt for opt in gcc_x86_copts], }) + select({ - ":windows_x86_64_clang": ["/clang:" + opt for opt in gcc_copts], - ":windows_x86_64_mingw": gcc_copts, -@@ -202,7 +202,7 @@ def xnnpack_cc_library( - ":linux_armv7a": ["-lpthread"], - ":linux_arm64": ["-lpthread"], - ":android": ["-lm"], + "//build_config:windows_x86_64_clangcl": ["/clang:" + opt for opt in gcc_copts], + "//build_config:windows_x86_64_clang": gcc_copts, +@@ -402,7 +402,7 @@ def xnnpack_cc_library( + "//build_config:linux_armhf": ["-lpthread"], + "//build_config:linux_armv7a": ["-lpthread"], + "//build_config:linux_arm64": ["-lpthread"], + "//build_config:android": ["-lm"], - "//conditions:default": [], + "//conditions:default": ["-lpthread"], }), - textual_hdrs = hdrs, + hdrs = hdrs, visibility = visibility, -@@ -249,6 +249,7 @@ def xnnpack_aggregate_library( - ":emscripten_wasmsimd": wasmsimd_deps, - ":emscripten_wasmrelaxedsimd": wasmrelaxedsimd_deps, - ":riscv": riscv_deps, -+ "//conditions:default": x86_deps, - }), - defines = defines, - compatible_with = compatible_with, -diff --git a/src/runtime.c b/src/runtime.c -index 0c4649017..29e74a85b 100644 ---- a/src/runtime.c -+++ b/src/runtime.c -@@ -4,7 +4,7 @@ - // LICENSE file in the root directory of this source tree. - - #ifndef __MACH__ --#define _POSIX_C_SOURCE 199309L -+#define _POSIX_C_SOURCE 199506L - #endif - - #include diff --git a/science/py-tensorflow/files/bazel/pthreadpool-alloca.patch b/science/py-tensorflow/files/bazel/pthreadpool-alloca.patch new file mode 100644 index 000000000000..d409c3ce736d --- /dev/null +++ b/science/py-tensorflow/files/bazel/pthreadpool-alloca.patch @@ -0,0 +1,10 @@ +--- a/src/pthreads.c ++++ b/src/pthreads.c +@@ -79,6 +79,6 @@ + #define alloca _alloca + #elif !defined(alloca) && defined(__GNUC__) + #define alloca(s) __builtin_alloca(s) +-#else ++#elif !defined(alloca) + #include + #endif diff --git a/science/py-tensorflow/files/bazel/riegeli-xopen-source.patch b/science/py-tensorflow/files/bazel/riegeli-xopen-source.patch new file mode 100644 index 000000000000..780c9df5dbf8 --- /dev/null +++ b/science/py-tensorflow/files/bazel/riegeli-xopen-source.patch @@ -0,0 +1,160 @@ +--- a/riegeli/bytes/cfile_handle.cc ++++ b/riegeli/bytes/cfile_handle.cc +@@ -13,10 +13,12 @@ + // limitations under the License. + + // Make `O_CLOEXEC` available on Darwin. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 700 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 700 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 700 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 700 ++#endif ++#endif /* !__FreeBSD__ */ + + #include "riegeli/bytes/cfile_handle.h" + + +--- a/riegeli/bytes/cfile_reader.cc ++++ b/riegeli/bytes/cfile_reader.cc +@@ -15,10 +15,12 @@ + #ifndef _WIN32 + + // Make `fseeko()` and `ftello()` available. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 500 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 500 ++#endif ++#endif /* !__FreeBSD__ */ + + // Make `off_t` 64-bit even on 32-bit systems. + #undef _FILE_OFFSET_BITS + +--- a/riegeli/bytes/cfile_writer.cc ++++ b/riegeli/bytes/cfile_writer.cc +@@ -15,10 +15,12 @@ + #ifndef _WIN32 + + // Make `fseeko()` and `ftello()` available. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 500 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 500 ++#endif ++#endif /* !__FreeBSD__ */ + + // Make `off_t` 64-bit even on 32-bit systems. + #undef _FILE_OFFSET_BITS + +--- a/riegeli/bytes/fd_handle.cc ++++ b/riegeli/bytes/fd_handle.cc +@@ -13,10 +13,12 @@ + // limitations under the License. + + // Make `openat()` available. +-#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809 +-#undef _POSIX_C_SOURCE +-#define _POSIX_C_SOURCE 200809 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_POSIX_C_SOURCE) || _POSIX_C_SOURCE < 200809 ++#undef _POSIX_C_SOURCE ++#define _POSIX_C_SOURCE 200809 ++#endif ++#endif /* !__FreeBSD__ */ + + #include "riegeli/bytes/fd_handle.h" + + +--- a/riegeli/bytes/fd_internal.cc ++++ b/riegeli/bytes/fd_internal.cc +@@ -15,10 +15,12 @@ + #ifndef _WIN32 + + // Make `readlink()` available, and make `O_CLOEXEC` available on Darwin. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 700 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 700 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 700 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 700 ++#endif ++#endif /* !__FreeBSD__ */ + + #endif + + +--- a/riegeli/bytes/fd_mmap_reader.cc ++++ b/riegeli/bytes/fd_mmap_reader.cc +@@ -15,10 +15,12 @@ + #ifndef _WIN32 + + // Make `posix_fadvise()` available. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 600 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 600 ++#endif ++#endif /* !__FreeBSD__ */ + + // Make `off_t` 64-bit even on 32-bit systems. + #undef _FILE_OFFSET_BITS + +--- a/riegeli/bytes/fd_reader.cc ++++ b/riegeli/bytes/fd_reader.cc +@@ -15,10 +15,12 @@ + #ifndef _WIN32 + + // Make `pread()` and `posix_fadvise()` available. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 600 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 600 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 600 ++#endif ++#endif /* !__FreeBSD__ */ + + // Make `off_t` 64-bit even on 32-bit systems. + #undef _FILE_OFFSET_BITS + +--- a/riegeli/bytes/fd_writer.cc ++++ b/riegeli/bytes/fd_writer.cc +@@ -15,10 +15,12 @@ + #ifndef _WIN32 + + // Make `pwrite()` and `ftruncate()` available. +-#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 +-#undef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 500 +-#endif ++#if !defined(__FreeBSD__) ++#if !defined(_XOPEN_SOURCE) || _XOPEN_SOURCE < 500 ++#undef _XOPEN_SOURCE ++#define _XOPEN_SOURCE 500 ++#endif ++#endif /* !__FreeBSD__ */ + + // Make `off_t` 64-bit even on 32-bit systems. + #undef _FILE_OFFSET_BITS + diff --git a/science/py-tensorflow/files/bazel/rules_python_freebsd.patch b/science/py-tensorflow/files/bazel/rules_python_freebsd.patch new file mode 100644 index 000000000000..c7c84e7e17e7 --- /dev/null +++ b/science/py-tensorflow/files/bazel/rules_python_freebsd.patch @@ -0,0 +1,27 @@ +diff --git a/python/private/toolchains_repo.bzl b/python/private/toolchains_repo.bzl +--- a/python/private/toolchains_repo.bzl ++++ b/python/private/toolchains_repo.bzl +@@ -313,6 +313,23 @@ + rctx.file("BUILD.bazel", _HOST_TOOLCHAIN_BUILD_CONTENT) + + os_name = repo_utils.get_platforms_os_name(rctx) ++ ++ # FreeBSD and other unsupported platforms: fall back to system Python. ++ if os_name not in ["linux", "windows", "osx"]: ++ result = rctx.execute(["which", "python3"]) ++ if result.return_code != 0: ++ fail("rules_python: Cannot find system python3 for host OS '{}'. Install python3 in PATH.".format(os_name)) ++ python_path = result.stdout.strip() ++ rctx.symlink(rctx.path(python_path), "python") ++ ++ # Symlink lib so PYTHONHOME points to a usable prefix. ++ prefix_result = rctx.execute([python_path, "-c", "import sys; print(sys.prefix)"]) ++ if prefix_result.return_code == 0: ++ prefix = prefix_result.stdout.strip() ++ rctx.symlink(rctx.path(prefix + "/lib"), "lib") ++ ++ return ++ + impl_repo_name = _get_host_impl_repo_name( + rctx = rctx, + logger = repo_utils.logger(rctx), diff --git a/science/py-tensorflow/files/bazel/xnnpack-freebsd-x86.patch b/science/py-tensorflow/files/bazel/xnnpack-freebsd-x86.patch new file mode 100644 index 000000000000..c740d62ce0a2 --- /dev/null +++ b/science/py-tensorflow/files/bazel/xnnpack-freebsd-x86.patch @@ -0,0 +1,30 @@ +--- a/build_config/BUILD.bazel ++++ b/build_config/BUILD.bazel +@@ -43,6 +43,11 @@ config_setting( + values = {"cpu": "k8"}, + ) + ++config_setting( ++ name = "freebsd_x86_64", ++ values = {"cpu": "freebsd"}, ++) ++ + config_setting( + name = "linux_arm", + values = {"cpu": "arm"}, +@@ -357,6 +362,7 @@ selects.config_setting_group( + match_any = [ + ":android_x86", + ":android_x86_64", ++ ":freebsd_x86_64", + ":ios_x86_64", + ":linux_k8", + ":macos_x86_64", +@@ -372,6 +378,7 @@ selects.config_setting_group( + name = "x86_64", + match_any = [ + ":android_x86_64", ++ ":freebsd_x86_64", + ":ios_x86_64", + ":linux_k8", + ":macos_x86_64", diff --git a/science/py-tensorflow/files/bazel/xnnpack-posix-c-source.patch b/science/py-tensorflow/files/bazel/xnnpack-posix-c-source.patch new file mode 100644 index 000000000000..1190d7bb10bd --- /dev/null +++ b/science/py-tensorflow/files/bazel/xnnpack-posix-c-source.patch @@ -0,0 +1,16 @@ +--- a/build_defs.bzl ++++ b/build_defs.bzl +@@ -188,6 +188,12 @@ def xnnpack_std_c_defines(): + We need this for things like `struct timespec` that are not in c99, but + are part of POSIX 1003.1b-1993.""" + +- return ["_DARWIN_C_SOURCE=1", "_POSIX_C_SOURCE=199309L"] ++ # On FreeBSD the default visibility already exposes all needed symbols; ++ # setting _POSIX_C_SOURCE hides __BSD_VISIBLE and breaks MAP_ANONYMOUS, ++ # lrintf, FP_NAN and other C99/BSD extensions. ++ return ["_DARWIN_C_SOURCE=1"] + select({ ++ "@platforms//os:freebsd": [], ++ "//conditions:default": ["_POSIX_C_SOURCE=199309L"], ++ }) + + def xnnpack_test_deps_for_library(): diff --git a/science/py-tensorflow/files/bazelrc b/science/py-tensorflow/files/bazelrc index d6488176d91b..f63c64a60da6 100644 --- a/science/py-tensorflow/files/bazelrc +++ b/science/py-tensorflow/files/bazelrc @@ -1,34 +1,66 @@ startup --batch build --verbose_failures --noshow_loading_progress test --verbose_test_summary --verbose_failures --noshow_loading_progress build --spawn_strategy=local --genrule_strategy=local test --spawn_strategy=local --genrule_strategy=local +# tensorflow/BUILD:install_headers genrule creates a directory output (outs=["include"]). +# Bazel 7 enables --incompatible_disallow_unsound_directory_outputs by default, which +# rejects this old-style pattern. Disable it to allow the legacy genrule to run. +build --noincompatible_disallow_unsound_directory_outputs + # make bazel only fetch distfiles from the cache fetch --repository_cache="%%BAZEL_DIR%%/bazel-cache/" --distdir="%%BAZEL_DIST%%/bazel-dist/" build --repository_cache="%%BAZEL_DIR%%/bazel-cache/" --distdir="%%BAZEL_DIST%%/bazel-dist/" build --define=PREFIX=%%LOCALBASE%% build --define=LIBDIR=%%LOCALBASE%%/lib build --define=INCLUDEDIR=%%LOCALBASE%%/include build --define=PROTOBUF_INCLUDE_PATH=%%LOCALBASE%%/include -build --config=noaws --config=nohdfs +build --config=nogcp --config=nonccl build --define tensorflow_mkldnn_contraction_kernel=0 build --action_env=BAZEL_CXXOPTS="-std=c++17" -build --incompatible_enable_cc_toolchain_resolution build --extra_toolchains=//freebsd:cc-toolchain-freebsd build --linkopt="-lexecinfo" --toolchain_resolution_debug=//freebsd:freebsd_clang +# backtrace() is in libexecinfo on FreeBSD; needed for both target and exec builds. +build --host_linkopt=-L%%LOCALBASE%%/lib +build --host_linkopt=-lexecinfo +build --host_linkopt=-lhwloc + +# System and Python headers for both target and host (tool) builds. +# copts in cc_library don't propagate to dependents so we set these globally. +build --host_copt=-isystem%%LOCALBASE%%/include +build --host_copt=-isystem%%PYTHON_INCLUDEDIR%% +build --host_copt=-isystem%%NUMPY_INCLUDEDIR%% +build --copt=-isystem%%LOCALBASE%%/include +build --copt=-isystem%%PYTHON_INCLUDEDIR%% +build --copt=-isystem%%NUMPY_INCLUDEDIR%% + +# Bazel's local_execution_config_platform wrongly reports the exec platform as +# Linux on FreeBSD, so LLVM's config.bzl selects linux_defines for [for tool] +# builds, adding Linux-only macros that do not exist on FreeBSD. Undefine them +# here so the compiler falls back to the portable POSIX paths in LLVM source. +build --host_copt=-UHAVE_GETAUXVAL +build --host_copt=-UHAVE_MALLINFO +build --host_copt=-UHAVE_SBRK # for python build --action_env=PATH=%%PATH%% build --host_action_env=PATH=%%PATH%% build --action_env=KERAS_HOME="%%BAZEL_DIST%%/.keras" build --host_action_env=KERAS_HOME="%%BAZEL_DIST%%/.keras" +build --repo_env=JAVA_HOME=%%JAVA_HOME%% +build --action_env=JAVA_HOME=%%JAVA_HOME%% + build --config=freebsd + +# Limit parallel actions to avoid OOM on large files like LLVMDialect.cpp +build --local_ram_resources=HOST_RAM*.7 +build --local_cpu_resources=HOST_CPUS-4 diff --git a/science/py-tensorflow/files/fix-llvm-config.py b/science/py-tensorflow/files/fix-llvm-config.py new file mode 100644 index 000000000000..6b3757662c9d --- /dev/null +++ b/science/py-tensorflow/files/fix-llvm-config.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python3 +"""Patch LLVM config.bzl to use @platforms//os:freebsd condition.""" +import os +import sys + +f = sys.argv[1] +r = os.path.realpath(f) +c = open(r).read() +c = c.replace( + '"@bazel_tools//src/conditions:freebsd": posix_defines,', + '"@platforms//os:freebsd": posix_defines,') +c = c.replace( + '"//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"),', + '"@platforms//os:freebsd": native_arch_defines("X86", "x86_64-unknown-freebsd14-elf"),\n' + ' "//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"),') +os.chmod(r, 0o644) +open(r, 'w').write(c) diff --git a/science/py-tensorflow/files/freebsd/cc_toolchain_config.bzl b/science/py-tensorflow/files/freebsd/cc_toolchain_config.bzl index 719a537f3f29..f4cf8ca8cfb8 100644 --- a/science/py-tensorflow/files/freebsd/cc_toolchain_config.bzl +++ b/science/py-tensorflow/files/freebsd/cc_toolchain_config.bzl @@ -1,288 +1,288 @@ # Copyright 2019 The Bazel Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """A Starlark cc_toolchain configuration rule for FreeBSD and OpenBSD.""" load( "@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "action_config", "feature", "flag_group", "flag_set", "tool", "tool_path", "with_feature_set", ) load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES") all_compile_actions = [ ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.assemble, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match, ACTION_NAMES.lto_backend, ] all_cpp_compile_actions = [ ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match, ] all_link_actions = [ ACTION_NAMES.cpp_link_executable, ACTION_NAMES.cpp_link_dynamic_library, ACTION_NAMES.cpp_link_nodeps_dynamic_library, ] def _impl(ctx): cpu = ctx.attr.cpu is_bsd = cpu == "k8" or cpu == "freebsd" or cpu == "openbsd" compiler = "compiler" toolchain_identifier = "local_freebsd" host_system_name = "local" if is_bsd else "armeabi-v7a" target_system_name = "local" if is_bsd else "armeabi-v7a" target_libc = "local" if is_bsd else "armeabi-v7a" abi_version = "local" if is_bsd else "armeabi-v7a" abi_libc_version = "local" if is_bsd else "armeabi-v7a" objcopy_embed_data_action = action_config( action_name = "objcopy_embed_data", enabled = True, tools = [tool(path = "/usr/bin/objcopy")], ) action_configs = [objcopy_embed_data_action] if is_bsd else [] default_link_flags_feature = feature( name = "default_link_flags", enabled = True, flag_sets = [ flag_set( actions = all_link_actions, flag_groups = [ flag_group( flags = [ "-Wl,-undefined,dynamic_lookup", "-Wl,--undefined-version", "-lc++", "-Wl,-z,relro,-z,now", "-no-canonical-prefixes", "-L%%LOCALBASE%%/lib", ], ), ], ), flag_set( actions = all_link_actions, flag_groups = [flag_group(flags = ["-Wl,--gc-sections"])], with_features = [with_feature_set(features = ["opt"])], ), ], ) unfiltered_compile_flags_feature = feature( name = "unfiltered_compile_flags", enabled = True, flag_sets = [ flag_set( actions = all_compile_actions, flag_groups = [ flag_group( flags = [ "-no-canonical-prefixes", "-Wno-builtin-macro-redefined", "-D__DATE__=\"redacted\"", "-D__TIMESTAMP__=\"redacted\"", "-D__TIME__=\"redacted\"", ], ), ], ), ], ) supports_pic_feature = feature(name = "supports_pic", enabled = True) default_compile_flags_feature = feature( name = "default_compile_flags", enabled = True, flag_sets = [ flag_set( actions = all_compile_actions, flag_groups = [ flag_group( flags = [ "-U_FORTIFY_SOURCE", "-D_FORTIFY_SOURCE=1", "-fstack-protector", "-Wall", "-fno-omit-frame-pointer", ], ), ], ), flag_set( actions = all_compile_actions, flag_groups = [flag_group(flags = ["-g"])], with_features = [with_feature_set(features = ["dbg"])], ), flag_set( actions = all_compile_actions, flag_groups = [ flag_group( flags = [ "-g0", "-O2", "-DNDEBUG", "-ffunction-sections", "-fdata-sections", ], ), ], with_features = [with_feature_set(features = ["opt"])], ), flag_set( actions = all_cpp_compile_actions + [ACTION_NAMES.lto_backend], flag_groups = [flag_group(flags = ["-std=c++17"])], ), ], ) opt_feature = feature(name = "opt") supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True) objcopy_embed_flags_feature = feature( name = "objcopy_embed_flags", enabled = True, flag_sets = [ flag_set( actions = ["objcopy_embed_data"], flag_groups = [flag_group(flags = ["-I", "binary"])], ), ], ) dbg_feature = feature(name = "dbg") user_compile_flags_feature = feature( name = "user_compile_flags", enabled = True, flag_sets = [ flag_set( actions = all_compile_actions, flag_groups = [ flag_group( flags = ["%{user_compile_flags}"], iterate_over = "user_compile_flags", expand_if_available = "user_compile_flags", ), ], ), ], ) sysroot_feature = feature( name = "sysroot", enabled = True, flag_sets = [ flag_set( actions = [ ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile, ACTION_NAMES.linkstamp_compile, ACTION_NAMES.preprocess_assemble, ACTION_NAMES.cpp_header_parsing, ACTION_NAMES.cpp_module_compile, ACTION_NAMES.cpp_module_codegen, ACTION_NAMES.clif_match, ACTION_NAMES.lto_backend, ] + all_link_actions, flag_groups = [ flag_group( flags = ["--sysroot=%{sysroot}"], expand_if_available = "sysroot", ), ], ), ], ) if is_bsd: features = [ default_compile_flags_feature, default_link_flags_feature, supports_dynamic_linker_feature, supports_pic_feature, objcopy_embed_flags_feature, opt_feature, dbg_feature, user_compile_flags_feature, sysroot_feature, unfiltered_compile_flags_feature, ] else: features = [supports_dynamic_linker_feature, supports_pic_feature] if (is_bsd): - cxx_builtin_include_directories = ["/usr/lib/clang", "/usr/include/c++/v1", "/usr/local/include", "/usr/include"] + cxx_builtin_include_directories = ["/usr/lib/clang", "/usr/include/c++/v1", "/usr/local/include", "/usr/include", "%%NUMPY_INCLUDEDIR%%"] else: cxx_builtin_include_directories = [] if is_bsd: tool_paths = [ tool_path(name = "ar", path = "/usr/bin/ar"), tool_path(name = "cpp", path = "/usr/bin/cpp"), tool_path(name = "dwp", path = "/usr/bin/dwp"), tool_path(name = "gcc", path = "/usr/bin/clang"), tool_path(name = "gcov", path = "/usr/bin/gcov"), tool_path(name = "ld", path = "/usr/bin/ld"), tool_path(name = "nm", path = "/usr/bin/nm"), tool_path(name = "objcopy", path = "/usr/bin/objcopy"), tool_path(name = "objdump", path = "/usr/bin/objdump"), tool_path(name = "strip", path = "/usr/bin/strip"), ] else: tool_paths = [ tool_path(name = "ar", path = "/bin/false"), tool_path(name = "cpp", path = "/bin/false"), tool_path(name = "dwp", path = "/bin/false"), tool_path(name = "gcc", path = "/bin/false"), tool_path(name = "gcov", path = "/bin/false"), tool_path(name = "ld", path = "/bin/false"), tool_path(name = "nm", path = "/bin/false"), tool_path(name = "objcopy", path = "/bin/false"), tool_path(name = "objdump", path = "/bin/false"), tool_path(name = "strip", path = "/bin/false"), ] out = ctx.actions.declare_file(ctx.label.name) ctx.actions.write(out, "Fake executable") return [ cc_common.create_cc_toolchain_config_info( ctx = ctx, features = features, action_configs = action_configs, cxx_builtin_include_directories = cxx_builtin_include_directories, toolchain_identifier = toolchain_identifier, host_system_name = host_system_name, target_system_name = target_system_name, target_cpu = cpu, target_libc = target_libc, compiler = compiler, abi_version = abi_version, abi_libc_version = abi_libc_version, tool_paths = tool_paths, ), DefaultInfo( executable = out, ), ] cc_toolchain_config = rule( implementation = _impl, attrs = { "cpu": attr.string(mandatory = True), }, provides = [CcToolchainConfigInfo], executable = True, ) diff --git a/science/py-tensorflow/files/grpc.bazel.BUILD b/science/py-tensorflow/files/grpc.bazel.BUILD new file mode 100644 index 000000000000..d847b94c3e71 --- /dev/null +++ b/science/py-tensorflow/files/grpc.bazel.BUILD @@ -0,0 +1 @@ +licenses(["notice"]) # Apache v2 diff --git a/science/py-tensorflow/files/grpc.bazel.cc_grpc_library.bzl b/science/py-tensorflow/files/grpc.bazel.cc_grpc_library.bzl new file mode 100644 index 000000000000..865eacefdd54 --- /dev/null +++ b/science/py-tensorflow/files/grpc.bazel.cc_grpc_library.bzl @@ -0,0 +1,107 @@ +"""Generates and compiles C++ grpc stubs from proto_library rules.""" + +load("@com_github_grpc_grpc//bazel:generate_cc.bzl", "generate_cc") +load("@com_github_grpc_grpc//bazel:protobuf.bzl", "well_known_proto_libs") +load("@rules_cc//cc:cc_library.bzl", "cc_library") + +def cc_grpc_library( + name, + srcs, + deps, + proto_only = False, + well_known_protos = False, + generate_mocks = False, + use_external = False, + grpc_only = False, + plugin_flags = [], + **kwargs): + """Generates C++ grpc classes for services defined in a proto file. + + If grpc_only is True, this rule is compatible with proto_library and + cc_proto_library native rules such that it expects proto_library target + as srcs argument and generates only grpc library classes, expecting + protobuf messages classes library (cc_proto_library target) to be passed in + deps argument. By default grpc_only is False which makes this rule to behave + in a backwards-compatible mode (trying to generate both proto and grpc + classes). + + Assumes the generated classes will be used in cc_api_version = 2. + + Args: + name (str): Name of rule. + srcs (list): A single .proto file which contains services definitions, + or if grpc_only parameter is True, a single proto_library which + contains services descriptors. + deps (list): A list of C++ proto_library (or cc_proto_library) which + provides the compiled code of any message that the services depend on. + proto_only (bool): If True, create only C++ proto classes library, + avoid creating C++ grpc classes library (expect it in deps). + Deprecated, use native cc_proto_library instead. False by default. + well_known_protos (bool): Should this library additionally depend on + well known protos. Deprecated, the well known protos should be + specified as explicit dependencies of the proto_library target + (passed in srcs parameter) instead. False by default. + generate_mocks (bool): when True, Google Mock code for client stub is + generated. False by default. + use_external (bool): Not used. + grpc_only (bool): if True, generate only grpc library, expecting + protobuf messages library (cc_proto_library target) to be passed as + deps. False by default (will become True by default eventually). + **kwargs: rest of arguments, e.g., compatible_with and visibility + """ + if len(srcs) > 1: + fail("Only one srcs value supported", "srcs") + if grpc_only and proto_only: + fail("A mutualy exclusive configuration is specified: grpc_only = True and proto_only = True") + + extra_deps = [] + proto_targets = [] + + if not grpc_only: + proto_target = "_" + name + "_only" + cc_proto_target = name if proto_only else "_" + name + "_cc_proto" + + proto_deps = ["_" + dep + "_only" for dep in deps if dep.find(":") == -1] + proto_deps += [dep.split(":")[0] + ":" + "_" + dep.split(":")[1] + "_only" for dep in deps if dep.find(":") != -1] + if well_known_protos: + proto_deps += well_known_proto_libs() + + native.proto_library( + name = proto_target, + srcs = srcs, + deps = proto_deps, + **kwargs + ) + + native.cc_proto_library( + name = cc_proto_target, + deps = [":" + proto_target], + **kwargs + ) + extra_deps.append(":" + cc_proto_target) + proto_targets.append(proto_target) + else: + if not srcs: + fail("srcs cannot be empty", "srcs") + proto_targets += srcs + + if not proto_only: + codegen_grpc_target = "_" + name + "_grpc_codegen" + generate_cc( + name = codegen_grpc_target, + srcs = proto_targets, + plugin = "@com_github_grpc_grpc//:grpc_cpp_plugin", + well_known_protos = well_known_protos, + generate_mocks = generate_mocks, + flags = plugin_flags, + **kwargs + ) + cc_library( + name = name, + srcs = [":" + codegen_grpc_target], + hdrs = [":" + codegen_grpc_target], + deps = deps + + extra_deps + + ["@com_github_grpc_grpc//:grpc++_codegen_proto"], + **kwargs + ) diff --git a/science/py-tensorflow/files/grpc.bazel.python_rules.bzl b/science/py-tensorflow/files/grpc.bazel.python_rules.bzl new file mode 100644 index 000000000000..fed329f51f11 --- /dev/null +++ b/science/py-tensorflow/files/grpc.bazel.python_rules.bzl @@ -0,0 +1,21 @@ +"""Stub py_grpc_library for system gRPC.""" + +def py_grpc_library(name, srcs = [], deps = [], **kwargs): + # Generate a minimal stub .py file so this target can appear in both + # srcs and deps of the wrapper py_library created by tf_proto_library. + # Actual gRPC Python stubs are not needed for the wheel build. + gen_name = name + "_stub_gen" + native.genrule( + name = gen_name, + outs = [name + "_grpc_pb2.py"], + cmd = "echo '# gRPC stub placeholder' > $@", + testonly = kwargs.get("testonly", False), + compatible_with = kwargs.get("compatible_with"), + ) + native.py_library( + name = name, + srcs = [":" + gen_name], + testonly = kwargs.get("testonly", False), + visibility = kwargs.get("visibility"), + compatible_with = kwargs.get("compatible_with"), + ) diff --git a/science/py-tensorflow/files/llvm_freebsd.patch b/science/py-tensorflow/files/llvm_freebsd.patch new file mode 100644 index 000000000000..edba031c0b0e --- /dev/null +++ b/science/py-tensorflow/files/llvm_freebsd.patch @@ -0,0 +1,20 @@ +diff --git a/llvm/config.bzl b/llvm/config.bzl +--- a/llvm/config.bzl ++++ b/llvm/config.bzl +@@ -85,7 +85,7 @@ + os_defines = select({ + "@bazel_tools//src/conditions:windows": win32_defines, + "@bazel_tools//src/conditions:darwin": macos_defines, +- "@bazel_tools//src/conditions:freebsd": posix_defines, ++ "@platforms//os:freebsd": posix_defines, + "//conditions:default": linux_defines, + }) + +@@ -108,6 +108,7 @@ + "@bazel_tools//src/conditions:linux_ppc64le": native_arch_defines("PowerPC", "powerpc64le-unknown-linux-gnu"), + "@bazel_tools//src/conditions:linux_riscv64": native_arch_defines("RISCV", "riscv64-unknown-linux-gnu"), + "@bazel_tools//src/conditions:linux_s390x": native_arch_defines("SystemZ", "systemz-unknown-linux_gnu"), ++ "@platforms//os:freebsd": native_arch_defines("X86", "x86_64-unknown-freebsd14-elf"), + "//conditions:default": native_arch_defines("X86", "x86_64-unknown-linux-gnu"), + }) + [ + "LLVM_VERSION_MAJOR={}".format(LLVM_VERSION_MAJOR), diff --git a/science/py-tensorflow/files/patch-.bazelrc b/science/py-tensorflow/files/patch-.bazelrc index fe656d032236..591a60488da1 100644 --- a/science/py-tensorflow/files/patch-.bazelrc +++ b/science/py-tensorflow/files/patch-.bazelrc @@ -1,22 +1,23 @@ ---- .bazelrc.orig 2023-09-12 16:46:28 UTC +--- .bazelrc.orig2025-01-01 00:00:00 UTC +++ .bazelrc -@@ -166,6 +166,19 @@ build:libc++ --linkopt -fuse-ld=lld - build:libc++ --define force_libcpp=enabled - build:libc++ --linkopt -fuse-ld=lld +@@ -178,6 +178,20 @@ common:clang_local --repo_env USE_HERMETIC_CC_TOOLCHAIN=0 + # Print a stacktrace when a test is killed + test --test_env="GTEST_INSTALL_FAILURE_SIGNAL_HANDLER=1" +# Use our custom-configured c++ toolchain. +# Use --cpu as a differentiator. +build:freebsd --cpu=freebsd + +# Use the default Bazel C++ toolchain to build the tools used during the +# build. +build:freebsd --crosstool_top=//freebsd:freebsd_clang +build:freebsd --linkopt=-L%%LOCALBASE%%/lib + +build:freebsd --define build_with_onednn_v2=true +build:freebsd --define force_libcpp=enabled +build:freebsd --action_env=CXXFLAGS=-stdlib=libc++ ++build:freebsd --noincompatible_enable_cc_toolchain_resolution + - # Android configs. Bazel needs to have --cpu and --fat_apk_cpu both set to the - # target CPU to build transient dependencies correctly. See - # https://docs.bazel.build/versions/master/user-manual.html#flag--fat_apk_cpu + + # Default options should come above this line. + diff --git a/science/py-tensorflow/files/patch-WORKSPACE b/science/py-tensorflow/files/patch-WORKSPACE new file mode 100644 index 000000000000..b3990a3ca56b --- /dev/null +++ b/science/py-tensorflow/files/patch-WORKSPACE @@ -0,0 +1,125 @@ +--- WORKSPACE.orig ++++ WORKSPACE +@@ -95,6 +95,122 @@ + install_deps() + # End hermetic Python initialization + ++# FreeBSD: Register the rules_python runtime_env py_cc_toolchain so that ++# @@rules_python//python/cc:current_py_cc_headers can be built. ++# This toolchain uses empty headers/libs (system Python) and satisfies ++# the PY_CC_TOOLCHAIN_TYPE requirement without hermetic Python. ++register_toolchains("@rules_python//python/runtime_env_toolchains:runtime_env_py_cc_toolchain") ++ ++# FreeBSD: Register protobuf Python toolchain needed for py_proto_library. ++register_toolchains("@com_google_protobuf//bazel/private/toolchains:python_source_toolchain") ++ ++# FreeBSD: Register runtime_env_toolchain as fallback for @rules_python//python:toolchain_type. ++# On FreeBSD the exec platform is detected as "freebsd" (not "linux"), so none of the ++# hermetic python_3_11_toolchains match. This toolchain uses a shell script to locate ++# python3 at action-runtime via PATH, which resolves to /usr/local/bin/python3.11 in ++# both local and poudriere-jail builds. It is registered after python_init_toolchains() ++# so it only applies when no platform-specific toolchain matches. ++register_toolchains("@rules_python//python/runtime_env_toolchains:runtime_env_toolchain") ++ ++# FreeBSD: stub repositories for old-style @pypi_* deps ++# (these are not created by pip_parse on FreeBSD due to missing platform wheels) ++new_local_repository( ++ name = "pypi_keras", ++ path = "bazel_pypi_hub/keras", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++new_local_repository( ++ name = "pypi_setuptools", ++ path = "bazel_pypi_hub/setuptools", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++new_local_repository( ++ name = "pypi_wheel", ++ path = "bazel_pypi_hub/wheel", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++new_local_repository( ++ name = "pypi_packaging", ++ path = "bazel_pypi_hub/packaging", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++new_local_repository( ++ name = "pypi_absl_py", ++ path = "bazel_pypi_hub/absl_py", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++new_local_repository( ++ name = "pypi_protobuf", ++ path = "bazel_pypi_hub/protobuf", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++new_local_repository( ++ name = "pypi_numpy", ++ path = "bazel_pypi_hub/numpy", ++ build_file_content = """package(default_visibility=["//visibility:public"]) ++py_library(name="pkg",srcs=[]) ++""", ++) ++ ++# FreeBSD: Define @system_python for protobuf's proto_api target. ++# The bundled protobuf 6.31.1 uses @system_python//:python_headers in its ++# proto_api cc_library. We provide real Python 3.11 headers here. ++new_local_repository( ++ name = "system_python", ++ path = "%%LOCALBASE%%", ++ build_file_content = ++"""package(default_visibility = ["//visibility:public"]) ++ ++load("@bazel_skylib//rules:common_settings.bzl", "string_flag") ++ ++cc_library( ++ name = "python_headers", ++ includes = ["include/python%%PYTHON_VER%%"], ++ textual_hdrs = [], ++) ++ ++string_flag( ++ name = "internal_python_support", ++ build_setting_default = "Supported", ++ values = ["None", "Supported", "Unsupported"], ++) ++ ++config_setting( ++ name = "none", ++ flag_values = {":internal_python_support": "None"}, ++) ++ ++config_setting( ++ name = "supported", ++ flag_values = {":internal_python_support": "Supported"}, ++) ++ ++config_setting( ++ name = "unsupported", ++ flag_values = {":internal_python_support": "Unsupported"}, ++) ++""", ++) ++ ++ + load("@//tensorflow:workspace2.bzl", "tf_workspace2") + + tf_workspace2() diff --git a/science/py-tensorflow/files/patch-tensorflow_BUILD b/science/py-tensorflow/files/patch-tensorflow_BUILD index f45dad0e6ce2..66575814d677 100644 --- a/science/py-tensorflow/files/patch-tensorflow_BUILD +++ b/science/py-tensorflow/files/patch-tensorflow_BUILD @@ -1,12 +1,25 @@ ---- tensorflow/BUILD.orig 2023-09-12 16:46:28 UTC +--- tensorflow/BUILD.orig 2025-01-01 00:00:00 UTC +++ tensorflow/BUILD -@@ -1290,7 +1290,8 @@ tf_cc_shared_library( - ], - "//tensorflow:windows": [], +@@ -1260,8 +1260,11 @@ + # "-Wl,--version-script,$(location //tensorflow/c:version_script.lds)", + # ], + # copybara:uncomment_end ++ "//tensorflow:freebsd": [ ++ "-Wl,--version-script,$(location //tensorflow/c:version_script.lds)", ++ ], "//conditions:default": [ - "-z defs", + "-Wl,-z,defs", -+ "-lnsync_cpp", - "-Wl,--version-script,$(location //tensorflow:tf_version_script.lds)", + "-Wl,--version-script,$(location //tensorflow/c:version_script.lds)", ], }), +@@ -1311,6 +1314,9 @@ + "-Wl,-exported_symbols_list,$(location //tensorflow:tf_exported_symbols.lds)", + ], + "//tensorflow:windows": [], ++ "//tensorflow:freebsd": [ ++ "-Wl,--version-script,$(location //tensorflow:tf_version_script.lds)", ++ ], + "//conditions:default": [ + "-Wl,-z,defs", + "-Wl,--version-script,$(location //tensorflow:tf_version_script.lds)", diff --git a/science/py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_python_jax__to__tfl__flatbuffer.cc b/science/py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_python_jax__to__tfl__flatbuffer.cc deleted file mode 100644 index 149f60042f0d..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_compiler_mlir_lite_python_jax__to__tfl__flatbuffer.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc -@@ -60,7 +60,7 @@ class NoOpErrorCollector : public tensorflow::protobuf - // Error collector that simply ignores errors reported. - class NoOpErrorCollector : public tensorflow::protobuf::io::ErrorCollector { - public: -- void AddError(int line, int column, const string& message) override {} -+ void RecordError(int line, int column, absl::string_view message) override {} - }; - - bool LoadHloProto(const std::string& contents, xla::HloProto* hlo_proto) { diff --git a/science/py-tensorflow/files/patch-tensorflow_compiler_mlir_tensorflow_utils_parse__text__proto.cc b/science/py-tensorflow/files/patch-tensorflow_compiler_mlir_tensorflow_utils_parse__text__proto.cc deleted file mode 100644 index 9e9b3aadad0b..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_compiler_mlir_tensorflow_utils_parse__text__proto.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/compiler/mlir/tensorflow/utils/parse_text_proto.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/compiler/mlir/tensorflow/utils/parse_text_proto.cc -@@ -28,7 +28,7 @@ class NoOpErrorCollector : public protobuf::io::ErrorC - // Error collector that simply ignores errors reported. - class NoOpErrorCollector : public protobuf::io::ErrorCollector { - public: -- void AddError(int line, int column, const std::string& message) override {} -+ void RecordError(int line, int column, absl::string_view message) override {} - }; - } // namespace - diff --git a/science/py-tensorflow/files/patch-tensorflow_compiler_xla_stream__executor_host_BUILD b/science/py-tensorflow/files/patch-tensorflow_compiler_xla_stream__executor_host_BUILD deleted file mode 100644 index 3e73733f8e2d..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_compiler_xla_stream__executor_host_BUILD +++ /dev/null @@ -1,10 +0,0 @@ ---- tensorflow/compiler/xla/stream_executor/host/BUILD.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/compiler/xla/stream_executor/host/BUILD -@@ -95,6 +95,7 @@ cc_library( - hdrs = [ - "host_gpu_executor.h", - ], -+ linkopts = ["-labsl_tracing_internal"], - deps = [ - ":host_platform_id", - ":host_stream", diff --git a/science/py-tensorflow/files/patch-tensorflow_core_debug_debug__io__utils.cc b/science/py-tensorflow/files/patch-tensorflow_core_debug_debug__io__utils.cc deleted file mode 100644 index 6e492427b425..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_debug_debug__io__utils.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/core/debug/debug_io_utils.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/debug/debug_io_utils.cc -@@ -94,7 +94,7 @@ Event PrepareChunkEventProto(const DebugNodeKey& debug - // Encode the data in JSON. - string json_output; - tensorflow::protobuf::util::JsonPrintOptions json_options; -- json_options.always_print_primitive_fields = true; -+ json_options.always_print_fields_with_no_presence = true; - auto status = tensorflow::protobuf::util::MessageToJsonString( - metadata, &json_output, json_options); - if (status.ok()) { diff --git a/science/py-tensorflow/files/patch-tensorflow_core_ir_importexport_parse__text__proto.cc b/science/py-tensorflow/files/patch-tensorflow_core_ir_importexport_parse__text__proto.cc deleted file mode 100644 index cb19475b9689..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_ir_importexport_parse__text__proto.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/core/ir/importexport/parse_text_proto.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/ir/importexport/parse_text_proto.cc -@@ -33,7 +33,7 @@ class NoOpErrorCollector : public tensorflow::protobuf - // Error collector that simply ignores errors reported. - class NoOpErrorCollector : public tensorflow::protobuf::io::ErrorCollector { - public: -- void AddError(int line, int column, const std::string& message) override {} -+ void RecordError(int line, int column, absl::string_view message) override {} - }; - } // namespace - diff --git a/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_hlo__to__tools__data.cc b/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_hlo__to__tools__data.cc deleted file mode 100644 index ad9c4d7d7886..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_hlo__to__tools__data.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/core/profiler/convert/hlo_to_tools_data.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/profiler/convert/hlo_to_tools_data.cc -@@ -51,7 +51,7 @@ StatusOr ConvertHloProtoToMemoryViewer( - - std::string json_output; - tensorflow::protobuf::util::JsonPrintOptions options; -- options.always_print_primitive_fields = true; -+ options.always_print_fields_with_no_presence = true; - auto encoded_status = tensorflow::protobuf::util::MessageToJsonString( - result_or.value(), &json_output, options); - if (!encoded_status.ok()) { diff --git a/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_xplane__to__memory__profile.cc b/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_xplane__to__memory__profile.cc deleted file mode 100644 index 8dc4e9453872..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_xplane__to__memory__profile.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/core/profiler/convert/xplane_to_memory_profile.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/profiler/convert/xplane_to_memory_profile.cc -@@ -529,7 +529,7 @@ Status ConvertProtoToJson(const Proto& proto_output, s - template - Status ConvertProtoToJson(const Proto& proto_output, std::string* json_output) { - protobuf::util::JsonPrintOptions json_options; -- json_options.always_print_primitive_fields = true; -+ json_options.always_print_fields_with_no_presence = true; - auto status = protobuf::util::MessageToJsonString(proto_output, json_output, - json_options); - if (!status.ok()) { diff --git a/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_xplane__to__tools__data.cc b/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_xplane__to__tools__data.cc deleted file mode 100644 index 985be6cab23c..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_profiler_convert_xplane__to__tools__data.cc +++ /dev/null @@ -1,20 +0,0 @@ ---- tensorflow/core/profiler/convert/xplane_to_tools_data.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/profiler/convert/xplane_to_tools_data.cc -@@ -147,7 +147,7 @@ StatusOr ConvertMultiXSpacesToPodViewer( - - std::string json_output; - protobuf::util::JsonPrintOptions opts; -- opts.always_print_primitive_fields = true; -+ opts.always_print_fields_with_no_presence = true; - auto encode_status = protobuf::util::MessageToJsonString( - ConvertOpStatsToPodViewer(combined_op_stats), &json_output, opts); - if (!encode_status.ok()) { -@@ -201,7 +201,7 @@ StatusOr ConvertMultiXSpacesToOpProfileVi - profile); - std::string json_output; - protobuf::util::JsonPrintOptions opts; -- opts.always_print_primitive_fields = true; -+ opts.always_print_fields_with_no_presence = true; - - auto encode_status = - protobuf::util::MessageToJsonString(profile, &json_output, opts); diff --git a/science/py-tensorflow/files/patch-tensorflow_core_util_proto_proto__utils.cc b/science/py-tensorflow/files/patch-tensorflow_core_util_proto_proto__utils.cc deleted file mode 100644 index d2977a24c290..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_util_proto_proto__utils.cc +++ /dev/null @@ -1,25 +0,0 @@ ---- tensorflow/core/util/proto/proto_utils.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/util/proto/proto_utils.cc -@@ -101,17 +101,17 @@ StringErrorCollector::StringErrorCollector(string* err - } - } - --void StringErrorCollector::AddError(int line, int column, -- const string& message) { -+void StringErrorCollector::RecordError(int line, int column, -+ absl::string_view message) { - if (error_text_ != nullptr) { - absl::SubstituteAndAppend(error_text_, "$0($1): $2\n", line + index_offset_, - column + index_offset_, message); - } - } - --void StringErrorCollector::AddWarning(int line, int column, -- const string& message) { -- AddError(line, column, message); -+void StringErrorCollector::RecordWarning(int line, int column, -+ absl::string_view message) { -+ RecordError(line, column, message); - } - - } // namespace proto_utils diff --git a/science/py-tensorflow/files/patch-tensorflow_core_util_proto_proto__utils.h b/science/py-tensorflow/files/patch-tensorflow_core_util_proto_proto__utils.h deleted file mode 100644 index 049dd023f7fc..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_core_util_proto_proto__utils.h +++ /dev/null @@ -1,18 +0,0 @@ ---- tensorflow/core/util/proto/proto_utils.h.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/core/util/proto/proto_utils.h -@@ -52,11 +52,11 @@ class StringErrorCollector : public protobuf::io::Erro - StringErrorCollector(const StringErrorCollector&) = delete; - StringErrorCollector& operator=(const StringErrorCollector&) = delete; - -- // Implementation of protobuf::io::ErrorCollector::AddError. -- void AddError(int line, int column, const string& message) override; -+ // Implementation of protobuf::io::ErrorCollector::RecordError. -+ void RecordError(int line, int column, absl::string_view message) override; - -- // Implementation of protobuf::io::ErrorCollector::AddWarning. -- void AddWarning(int line, int column, const string& message) override; -+ // Implementation of protobuf::io::ErrorCollector::RecordWarning. -+ void RecordWarning(int line, int column, absl::string_view message) override; - - private: - string* const error_text_; diff --git a/science/py-tensorflow/files/patch-tensorflow_lite_kernels_elementwise.cc b/science/py-tensorflow/files/patch-tensorflow_lite_kernels_elementwise.cc deleted file mode 100644 index 7fad158af10a..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_lite_kernels_elementwise.cc +++ /dev/null @@ -1,22 +0,0 @@ ---- tensorflow/lite/kernels/elementwise.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/lite/kernels/elementwise.cc -@@ -242,7 +242,8 @@ TfLiteStatus AbsEval(TfLiteContext* context, TfLiteNod - const TfLiteType type = input->type; - switch (type) { - case kTfLiteFloat32: -- return EvalImpl(context, node, std::abs, type); -+ return EvalImpl( -+ context, node, [](float f) { return std::abs(f); }, type); - case kTfLiteInt8: - return AbsEvalQuantized(context, node, type); - case kTfLiteInt16: -@@ -250,7 +251,8 @@ TfLiteStatus AbsEval(TfLiteContext* context, TfLiteNod - ? AbsInt16EvalImpl(context, node, type) - : AbsEvalQuantized(context, node, type); - case kTfLiteInt32: -- return EvalImpl(context, node, std::abs, type); -+ return EvalImpl( -+ context, node, [](int32_t i) { return std::abs(i); }, type); - default: - TF_LITE_KERNEL_LOG(context, "Current data type %s is not supported.", - TfLiteTypeGetName(type)); diff --git a/science/py-tensorflow/files/patch-tensorflow_python_BUILD b/science/py-tensorflow/files/patch-tensorflow_python_BUILD deleted file mode 100644 index 571aaeb6f5ee..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_python_BUILD +++ /dev/null @@ -1,10 +0,0 @@ ---- tensorflow/python/BUILD.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/python/BUILD -@@ -5043,7 +5043,6 @@ tf_python_pybind_extension( - features = ["-layering_check"], - deps = [ - ":pywrap_densor_device_headers", -- "//tensorflow/dtensor/proto:layout_proto_cc", - "//tensorflow/python/lib/core:pybind11_lib", - "//tensorflow/python/lib/core:pybind11_status_headers", - "//third_party/python_runtime:headers", # buildcleaner: keep diff --git a/science/py-tensorflow/files/patch-tensorflow_python__BUILD b/science/py-tensorflow/files/patch-tensorflow_python__BUILD new file mode 100644 index 000000000000..00a1005c4971 --- /dev/null +++ b/science/py-tensorflow/files/patch-tensorflow_python__BUILD @@ -0,0 +1,26 @@ +--- tensorflow/python/BUILD.orig 2025-01-01 00:00:00 UTC ++++ tensorflow/python/BUILD +@@ -1573,6 +1573,11 @@ + "tensorflow/tensorflow_framework": select({ + "//tensorflow:windows": [], + "//tensorflow:macos": [ ++ "-lpthread", ++ "-ldl", ++ "-lm", ++ ], ++ "//tensorflow:freebsd": [ + "-lpthread", + "-ldl", + "-lm", +@@ -1597,6 +1602,11 @@ + "-ldl", + "-lm", + ], ++ "//tensorflow:freebsd": [ ++ "-lpthread", ++ "-ldl", ++ "-lm", ++ ], + "//conditions:default": [ + "-z defs", + "-lpthread", diff --git a/science/py-tensorflow/files/patch-tensorflow_python_framework_BUILD b/science/py-tensorflow/files/patch-tensorflow_python_framework_BUILD deleted file mode 100644 index 6333ffbb7fe6..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_python_framework_BUILD +++ /dev/null @@ -1,23 +0,0 @@ ---- tensorflow/python/framework/BUILD.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/python/framework/BUILD -@@ -421,11 +421,11 @@ py_library( - "//tensorflow/core:protos_all_py", - "//tensorflow/core/function/trace_type", - "//tensorflow/python:pywrap_tensorflow", -- "//tensorflow/python/lib/core:_pywrap_bfloat16", - "//tensorflow/python/lib/core:_pywrap_custom_casts", - "//tensorflow/python/lib/core:_pywrap_float8", - "//tensorflow/python/types:doc_typealias", - "//tensorflow/python/util:tf_export", -+ "//tensorflow/tsl/python/lib/core:pywrap_bfloat16", - ], - ) - -@@ -942,6 +942,7 @@ tf_python_pybind_extension( - "//tensorflow/python/util:function_parameter_canonicalizer_hdrs", - "//third_party/python_runtime:headers", # buildcleaner: keep - "@com_google_absl//absl/container:flat_hash_map", -+ "@com_google_absl//absl/strings", - "@pybind11", - ], - ) diff --git a/science/py-tensorflow/files/patch-tensorflow_python_framework_python__api__dispatcher__wrapper.cc b/science/py-tensorflow/files/patch-tensorflow_python_framework_python__api__dispatcher__wrapper.cc deleted file mode 100644 index 7f87215ca928..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_python_framework_python__api__dispatcher__wrapper.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- tensorflow/python/framework/python_api_dispatcher_wrapper.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/python/framework/python_api_dispatcher_wrapper.cc -@@ -14,6 +14,7 @@ limitations under the License. - ==============================================================================*/ - // Python bindings for tensorflow/python/framework/python_api_dispatcher.h. - -+#include "absl/strings/str_cat.h" - #include "pybind11/pybind11.h" // from @pybind11 - #include "pybind11/pytypes.h" // from @pybind11 - #include "pybind11/stl.h" // from @pybind11 diff --git a/science/py-tensorflow/files/patch-tensorflow_python_util_BUILD b/science/py-tensorflow/files/patch-tensorflow_python_util_BUILD deleted file mode 100644 index 9c99182fba88..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_python_util_BUILD +++ /dev/null @@ -1,10 +0,0 @@ ---- tensorflow/python/util/BUILD.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/python/util/BUILD -@@ -442,6 +442,7 @@ cc_library( - "//tensorflow/python/lib/core:safe_pyobject_ptr", - "//third_party/python_runtime:headers", # buildcleaner: keep - "@com_google_absl//absl/container:flat_hash_set", -+ "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:span", - ], - ) diff --git a/science/py-tensorflow/files/patch-tensorflow_python_util_function__parameter__canonicalizer.cc b/science/py-tensorflow/files/patch-tensorflow_python_util_function__parameter__canonicalizer.cc deleted file mode 100644 index decd6b668369..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_python_util_function__parameter__canonicalizer.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- tensorflow/python/util/function_parameter_canonicalizer.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/python/util/function_parameter_canonicalizer.cc -@@ -16,6 +16,7 @@ limitations under the License. - #include "tensorflow/python/util/function_parameter_canonicalizer.h" - - #include "absl/container/flat_hash_set.h" -+#include "absl/strings/str_cat.h" - #include "tensorflow/core/platform/logging.h" - #include "tensorflow/core/platform/macros.h" - #include "tensorflow/python/lib/core/py_util.h" diff --git a/science/py-tensorflow/files/patch-tensorflow_tf__framework__version__script.lds b/science/py-tensorflow/files/patch-tensorflow_tf__framework__version__script.lds deleted file mode 100644 index e20aa6bda712..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tf__framework__version__script.lds +++ /dev/null @@ -1,12 +0,0 @@ ---- tensorflow/tf_framework_version_script.lds.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tf_framework_version_script.lds -@@ -3,9 +3,6 @@ VERS_1.0 { - local: - jpeg_*; - jinit_*; -- jdiv_round_up; -- jround_up; -- jzero_far; - jcopy_*; - jsimd_*; - hwloc_*; diff --git a/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_BUILD b/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_BUILD new file mode 100644 index 000000000000..f9ffad3a0162 --- /dev/null +++ b/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_BUILD @@ -0,0 +1,17 @@ +--- tensorflow/tools/pip_package/BUILD.orig 2026-03-22 23:01:32.877130000 -0700 ++++ tensorflow/tools/pip_package/BUILD 2026-03-22 23:01:32.877162000 -0700 +@@ -323,12 +323,14 @@ + "@platforms//os:macos": "macosx", + "@platforms//os:windows": "win", + "@platforms//os:linux": "linux", ++ "//conditions:default": "linux", + }), + platform_tag = select({ + "@platforms//cpu:aarch64": "arm64", + "@platforms//cpu:arm64": "arm64", + "@platforms//cpu:x86_64": "x86_64", + "@platforms//cpu:ppc": "ppc64le", ++ "//conditions:default": "x86_64", + }), + source_files = [ + "MANIFEST.in", diff --git a/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build__pip__package.py b/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build__pip__package.py new file mode 100644 index 000000000000..b2253989dfec --- /dev/null +++ b/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build__pip__package.py @@ -0,0 +1,28 @@ +--- tensorflow/tools/pip_package/build_pip_package.py.orig 2025-01-01 00:00:00 UTC ++++ tensorflow/tools/pip_package/build_pip_package.py +@@ -397,6 +397,12 @@ + numpy_include_dir = "external/pypi_numpy/site-packages/numpy/_core/include" + if not os.path.exists(numpy_include_dir): + numpy_include_dir = "external/pypi_numpy/site-packages/numpy/core/include" ++ if not os.path.exists(numpy_include_dir): ++ _pylib = os.environ.get("PYTHON_LIB_PATH", "") ++ if _pylib: ++ numpy_include_dir = os.path.join(_pylib, "numpy", "_core", "include") ++ if not os.path.exists(numpy_include_dir): ++ numpy_include_dir = os.path.join(_pylib, "numpy", "core", "include") + shutil.copytree( + numpy_include_dir, + os.path.join(dst_dir, "numpy_include"), +@@ -404,5 +410,10 @@ + if is_windows(): + path = "external/python_*/include" + else: + path = "external/python_*/include/python*" +- shutil.copytree(glob.glob(path)[0], os.path.join(dst_dir, "python_include")) ++ _python_includes = glob.glob(path) ++ if not _python_includes: ++ import sysconfig ++ _inc = sysconfig.get_path('include') ++ if _inc and os.path.exists(_inc): ++ _python_includes = [_inc] ++ shutil.copytree(_python_includes[0], os.path.join(dst_dir, "python_include")) diff --git a/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build__pip__package.sh b/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build__pip__package.sh deleted file mode 100644 index 643344bac97f..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tools_pip__package_build__pip__package.sh +++ /dev/null @@ -1,32 +0,0 @@ ---- tensorflow/tools/pip_package/build_pip_package.sh.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tools/pip_package/build_pip_package.sh -@@ -183,9 +183,9 @@ function prepare_src() { - bazel-bin/tensorflow/tools/pip_package/build_pip_package.runfiles/org_tensorflow \ - "${XLA_AOT_RUNTIME_SOURCES}" - # Copy MKL libs over so they can be loaded at runtime -- # TODO(b/271299337): shared libraries that depend on libbfloat16.so.so have -+ # TODO(b/271299337): shared libraries that depend on libbfloat16.so have - # their NEEDED and RUNPATH set corresponding to a dependency on -- # RUNFILES/_solib_local/libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so.so, -+ # RUNFILES/_solib_local/libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so, - # which is a symlink to tensorflow/tsl/python/lib/core/libbfloat16.so in - # the Bazel build tree. We do not export the file in _solib_local (nor - # symlinks in general, I think Python wheels have poor support for them?) -@@ -193,13 +193,13 @@ function prepare_src() { - if is_macos; then - chmod +rw ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so - chmod +rw ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so -- install_name_tool -change "@loader_path/../../../../../${so_lib_dir}//libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so.so" "@loader_path/libbfloat16.so.so" ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so -- install_name_tool -change "@loader_path/../../${so_lib_dir}//libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so.so" "@loader_path/../tsl/python/lib/core/libbfloat16.so.so" ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so -+ install_name_tool -change "@loader_path/../../../../../${so_lib_dir}//libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so" "@loader_path/libbfloat16.so" ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so -+ install_name_tool -change "@loader_path/../../${so_lib_dir}//libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so" "@loader_path/../tsl/python/lib/core/libbfloat16.so" ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so - else - chmod +rw ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so - chmod +rw ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so -- patchelf --replace-needed libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so.so libbfloat16.so.so ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so -- patchelf --replace-needed libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so.so libbfloat16.so.so ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so -+ patchelf --replace-needed libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so libbfloat16.so ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so -+ patchelf --replace-needed libtensorflow_Stsl_Spython_Slib_Score_Slibbfloat16.so libbfloat16.so ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so - patchelf --set-rpath $(patchelf --print-rpath ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so):\$ORIGIN ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so - patchelf --set-rpath $(patchelf --print-rpath ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so):\$ORIGIN/../tsl/python/lib/core ${TMPDIR}/tensorflow/python/_pywrap_tensorflow_internal.so - patchelf --shrink-rpath ${TMPDIR}/tensorflow/tsl/python/lib/core/pywrap_bfloat16.so diff --git a/science/py-tensorflow/files/patch-tensorflow_tools_proto__text_gen__proto__text__functions.cc b/science/py-tensorflow/files/patch-tensorflow_tools_proto__text_gen__proto__text__functions.cc deleted file mode 100644 index ee04155163a4..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tools_proto__text_gen__proto__text__functions.cc +++ /dev/null @@ -1,13 +0,0 @@ ---- tensorflow/tools/proto_text/gen_proto_text_functions.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tools/proto_text/gen_proto_text_functions.cc -@@ -31,8 +31,8 @@ class CrashOnErrorCollector - public: - ~CrashOnErrorCollector() override {} - -- void AddError(const string& filename, int line, int column, -- const string& message) override { -+ void RecordError(absl::string_view filename, int line, int column, -+ absl::string_view message) override { - LOG(FATAL) << "Unexpected error at " << filename << "@" << line << ":" - << column << " - " << message; - } diff --git a/science/py-tensorflow/files/patch-tensorflow_tsl_framework_type__traits.h b/science/py-tensorflow/files/patch-tensorflow_tsl_framework_type__traits.h deleted file mode 100644 index 8b2cfe43ee49..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tsl_framework_type__traits.h +++ /dev/null @@ -1,21 +0,0 @@ ---- tensorflow/tsl/framework/type_traits.h.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tsl/framework/type_traits.h -@@ -91,18 +91,6 @@ class numeric_limits : public numeric_lim - template <> - class numeric_limits : public numeric_limits {}; - --// Specialize is_signed for quantized types. --template <> --struct is_signed : public is_signed {}; --template <> --struct is_signed : public is_signed {}; --template <> --struct is_signed : public is_signed {}; --template <> --struct is_signed : public is_signed {}; --template <> --struct is_signed : public is_signed {}; -- - } // namespace std - - #endif // TENSORFLOW_TSL_FRAMEWORK_TYPE_TRAITS_H_ diff --git a/science/py-tensorflow/files/patch-tensorflow_tsl_platform_default_build__config.bzl b/science/py-tensorflow/files/patch-tensorflow_tsl_platform_default_build__config.bzl deleted file mode 100644 index 2df204c53eae..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tsl_platform_default_build__config.bzl +++ /dev/null @@ -1,25 +0,0 @@ ---- tensorflow/tsl/platform/default/build_config.bzl.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tsl/platform/default/build_config.bzl -@@ -401,13 +401,6 @@ def py_proto_library( - # is not explicitly listed in py_libs. Instead, host system is assumed to - # have grpc installed. - -- genproto_deps = [] -- for dep in deps: -- if dep != "@com_google_protobuf//:protobuf_python": -- genproto_deps.append(dep + "_genproto") -- else: -- genproto_deps.append("@com_google_protobuf//:well_known_types_py_pb2_genproto") -- - proto_gen( - name = name + "_genproto", - srcs = srcs, -@@ -418,7 +411,7 @@ def py_proto_library( - plugin_language = "grpc", - protoc = protoc, - visibility = ["//visibility:public"], -- deps = genproto_deps, -+ deps = [s + "_genproto" for s in deps], - ) - - if default_runtime and not default_runtime in py_libs + deps: diff --git a/science/py-tensorflow/files/patch-tensorflow_tsl_platform_default_human__readable__json.cc b/science/py-tensorflow/files/patch-tensorflow_tsl_platform_default_human__readable__json.cc deleted file mode 100644 index b25b238f479a..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tsl_platform_default_human__readable__json.cc +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/tsl/platform/default/human_readable_json.cc.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tsl/platform/default/human_readable_json.cc -@@ -27,7 +27,7 @@ Status ProtoToHumanReadableJson(const protobuf::Messag - - protobuf::util::JsonPrintOptions json_options; - json_options.preserve_proto_field_names = true; -- json_options.always_print_primitive_fields = true; -+ json_options.always_print_fields_with_no_presence = true; - auto status = - protobuf::util::MessageToJsonString(proto, result, json_options); - if (!status.ok()) { diff --git a/science/py-tensorflow/files/patch-tensorflow_tsl_python_lib_core_BUILD b/science/py-tensorflow/files/patch-tensorflow_tsl_python_lib_core_BUILD deleted file mode 100644 index 4d6d8c57b038..000000000000 --- a/science/py-tensorflow/files/patch-tensorflow_tsl_python_lib_core_BUILD +++ /dev/null @@ -1,11 +0,0 @@ ---- tensorflow/tsl/python/lib/core/BUILD.orig 2023-09-12 16:46:28 UTC -+++ tensorflow/tsl/python/lib/core/BUILD -@@ -50,7 +50,7 @@ cc_shared_library( - roots = [":bfloat16_lib"], - # TODO(tlongeri): If this is not explicitly specified, dependent DLLs will expect "bfloat16.so" - # and we will generate "bfloat16.so.dll", for some reason -- shared_lib_name = if_windows("bfloat16.so", None), -+ shared_lib_name = if_windows("bfloat16.so", "libbfloat16.so"), - static_deps = [ - # TODO(ddunleavy): If cc_shared_library is ever not a noop in g3, change - # this to be more specific. diff --git a/science/py-tensorflow/files/patch-tensorflow_workspace0.bzl b/science/py-tensorflow/files/patch-tensorflow_workspace0.bzl new file mode 100644 index 000000000000..c9404737b914 --- /dev/null +++ b/science/py-tensorflow/files/patch-tensorflow_workspace0.bzl @@ -0,0 +1,18 @@ +--- tensorflow/workspace0.bzl.orig ++++ tensorflow/workspace0.bzl +@@ -5,7 +5,6 @@ + load("@build_bazel_apple_support//lib:repositories.bzl", "apple_support_dependencies") + load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies") + load("@build_bazel_rules_swift//swift:repositories.bzl", "swift_rules_dependencies") +-load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") + load("@local_config_android//:android.bzl", "android_workspace") + load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") + load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") +@@ -100,7 +99,6 @@ + # at the end of the WORKSPACE file. + _tf_bind() + +- grpc_extra_deps() + rules_foreign_cc_dependencies() + config_googleapis() + diff --git a/science/py-tensorflow/files/patch-tensorflow_workspace1.bzl b/science/py-tensorflow/files/patch-tensorflow_workspace1.bzl new file mode 100644 index 000000000000..cae90a63d448 --- /dev/null +++ b/science/py-tensorflow/files/patch-tensorflow_workspace1.bzl @@ -0,0 +1,17 @@ +--- tensorflow/workspace1.bzl.orig ++++ tensorflow/workspace1.bzl +@@ -1,6 +1,5 @@ + """TensorFlow workspace initialization. Consult the WORKSPACE on how to use it.""" + +-load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") + load("@com_google_benchmark//:bazel/benchmark_deps.bzl", "benchmark_deps") + load("@io_bazel_rules_closure//closure:defs.bzl", "closure_repositories") + load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") +@@ -33,7 +32,6 @@ def workspace(with_rules_cc = True): + + android_configure(name = "local_config_android") + +- grpc_deps() + benchmark_deps() + + # Alias so it can be loaded without assigning to a different symbol to prevent diff --git a/science/py-tensorflow/files/patch-tensorflow_workspace2.bzl b/science/py-tensorflow/files/patch-tensorflow_workspace2.bzl index 91723987576b..c6b25a0370bf 100644 --- a/science/py-tensorflow/files/patch-tensorflow_workspace2.bzl +++ b/science/py-tensorflow/files/patch-tensorflow_workspace2.bzl @@ -1,32 +1,55 @@ ---- tensorflow/workspace2.bzl.orig 2023-09-12 16:46:28 UTC +--- tensorflow/workspace2.bzl.orig +++ tensorflow/workspace2.bzl -@@ -145,6 +145,7 @@ def _tf_repositories(): +@@ -178,6 +178,7 @@ name = "XNNPACK", - sha256 = "c979b62e8b77af60dfd7567f22ade20d5a9d4d0888f8a2d60d155fc0d31b22ab", - strip_prefix = "XNNPACK-b9d4073a6913891ce9cbd8965c8d506075d2a45a", -+ patch_file=["//third_party:fix-xnnpack.patch"], - urls = tf_mirror_urls("https://github.com/google/XNNPACK/archive/b9d4073a6913891ce9cbd8965c8d506075d2a45a.zip"), + sha256 = "44bf8a258cfd0d7b500b6058a2bb5c7387c8cebba295cfca985a68d16513f7c8", + strip_prefix = "XNNPACK-25b42dfddb0ee22170d73ff0d4b333ea1e6edfeb", ++ patch_file = ["//third_party:fix-xnnpack.patch", "//third_party:xnnpack-posix-c-source.patch", "//third_party:xnnpack-freebsd-x86.patch"], + urls = tf_mirror_urls("https://github.com/google/XNNPACK/archive/25b42dfddb0ee22170d73ff0d4b333ea1e6edfeb.zip"), ) # LINT.ThenChange(//tensorflow/lite/tools/cmake/modules/xnnpack.cmake) -@@ -165,9 +166,9 @@ def _tf_repositories(): - +@@ -200,7 +201,8 @@ + # LINT.IfChange(pthreadpool) tf_http_archive( - name = "cpuinfo", -- strip_prefix = "cpuinfo-3dc310302210c1891ffcfb12ae67b11a3ad3a150", -- sha256 = "ba668f9f8ea5b4890309b7db1ed2e152aaaf98af6f9a8a63dbe1b75c04e52cb9", -- urls = tf_mirror_urls("https://github.com/pytorch/cpuinfo/archive/3dc310302210c1891ffcfb12ae67b11a3ad3a150.zip"), -+ strip_prefix = "cpuinfo-fa1c679da8d19e1d87f20175ae1ec10995cd3dd3", -+ sha256 = "2bf2b62eb86e2d2eaf862d0b9683a6c467a4d69fb2f7f1dc47c799809148608f", -+ urls = tf_mirror_urls("https://github.com/pytorch/cpuinfo/archive/fa1c679da8d19e1d87f20175ae1ec10995cd3dd3.zip"), + name = "pthreadpool", + sha256 = "f602ab141bdc5d5872a79d6551e9063b5bfa7ad6ad60cceaa641de5c45c86d70", + strip_prefix = "pthreadpool-0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e", ++ patch_file = ["//third_party:pthreadpool-alloca.patch"], + urls = tf_mirror_urls("https://github.com/google/pthreadpool/archive/0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e.zip"), ) - - tf_http_archive( -@@ -875,7 +876,7 @@ def _tf_repositories(): - urls = tf_mirror_urls("https://github.com/pybind/pybind11_protobuf/archive/80f3440cd8fee124e077e2e47a8a17b78b451363.zip"), - sha256 = "c7ab64b1ccf9a678694a89035a8c865a693e4e872803778f91f0965c2f281d78", - strip_prefix = "pybind11_protobuf-80f3440cd8fee124e077e2e47a8a17b78b451363", -- patch_file = ["//third_party/pybind11_protobuf:remove_license.patch"], -+ patch_file = ["//third_party/pybind11_protobuf:remove_license.patch","//third_party:fix-pybind11_protobuf.patch"], +@@ -407,7 +409,10 @@ + maybe( + tf_http_archive, + name = "com_google_protobuf", +- patch_file = ["@xla//third_party/protobuf:protobuf.patch"], ++ patch_file = [ ++ "@xla//third_party/protobuf:protobuf.patch", ++ "//third_party:fix-protobuf-java.patch", ++ ], + sha256 = "6e09bbc950ba60c3a7b30280210cd285af8d7d8ed5e0a6ed101c72aff22e8d88", + strip_prefix = "protobuf-6.31.1", + urls = tf_mirror_urls("https://github.com/protocolbuffers/protobuf/archive/refs/tags/v6.31.1.zip"), +@@ -471,6 +476,15 @@ + sha256 = "dd6a2fa311ba8441bbefd2764c55b99136ff10f7ea42954be96006a2723d33fc", + strip_prefix = "grpc-1.74.0", + system_build_file = "//third_party/systemlibs:grpc.BUILD", ++ system_link_files = { ++ "//third_party/systemlibs:grpc.bazel.BUILD": "bazel/BUILD.bazel", ++ "//third_party/systemlibs:grpc.bazel.cc_grpc_library.bzl": "bazel/cc_grpc_library.bzl", ++ "//third_party/systemlibs:grpc.bazel.generate_cc.bzl": "bazel/generate_cc.bzl", ++ "//third_party/systemlibs:grpc.bazel.grpc_deps.bzl": "bazel/grpc_deps.bzl", ++ "//third_party/systemlibs:grpc.bazel.grpc_extra_deps.bzl": "bazel/grpc_extra_deps.bzl", ++ "//third_party/systemlibs:grpc.bazel.protobuf.bzl": "bazel/protobuf.bzl", ++ "//third_party/systemlibs:grpc.bazel.python_rules.bzl": "bazel/python_rules.bzl", ++ }, + patch_file = [ + "@xla//third_party/grpc:grpc.patch", + ], +@@ -895,6 +909,7 @@ + name = "riegeli", + sha256 = "590ec559107fc7082e1a7d70e9c9bfb8624c79dabca0a05fe1bcba1d7a591ec8", + strip_prefix = "riegeli-a37c3dbdd5d2a15113d363c7a7c41c30453e482f", ++ patch_file = ["//third_party:riegeli-xopen-source.patch"], + urls = tf_mirror_urls("https://github.com/google/riegeli/archive/a37c3dbdd5d2a15113d363c7a7c41c30453e482f.zip"), ) - tf_http_archive( diff --git a/science/py-tensorflow/files/patch-tensorflow_workspace3.bzl b/science/py-tensorflow/files/patch-tensorflow_workspace3.bzl new file mode 100644 index 000000000000..45d937ec482b --- /dev/null +++ b/science/py-tensorflow/files/patch-tensorflow_workspace3.bzl @@ -0,0 +1,19 @@ +--- tensorflow/workspace3.bzl.orig 2026-03-22 22:50:53.707183000 -0700 ++++ tensorflow/workspace3.bzl 2026-03-22 22:50:32.286898000 -0700 +@@ -51,7 +51,16 @@ + "https://github.com/bazel-contrib/bazel_features/releases/download/v1.25.0/bazel_features-v1.25.0.tar.gz", + ), + ) ++ tf_http_archive( ++ name = "proto_bazel_features", ++ sha256 = "4fd9922d464686820ffd8fcefa28ccffa147f7cdc6b6ac0d8b07fde565c65d66", ++ strip_prefix = "bazel_features-1.25.0", ++ urls = tf_mirror_urls( ++ "https://github.com/bazel-contrib/bazel_features/releases/download/v1.25.0/bazel_features-v1.25.0.tar.gz", ++ ), ++ ) + ++ + # Maven dependencies. + RULES_JVM_EXTERNAL_TAG = "4.3" + tf_http_archive( diff --git a/science/py-tensorflow/files/patch-third__party_absl_system.absl.functional.BUILD b/science/py-tensorflow/files/patch-third__party_absl_system.absl.functional.BUILD deleted file mode 100644 index 2946aa0a5e86..000000000000 --- a/science/py-tensorflow/files/patch-third__party_absl_system.absl.functional.BUILD +++ /dev/null @@ -1,13 +0,0 @@ ---- third_party/absl/system.absl.functional.BUILD.orig 2023-09-12 16:46:28 UTC -+++ third_party/absl/system.absl.functional.BUILD -@@ -3,6 +3,10 @@ cc_library( - package(default_visibility = ["//visibility:public"]) - - cc_library( -+ name = "any_invocable", -+) -+ -+cc_library( - name = "bind_front", - ) - diff --git a/science/py-tensorflow/files/patch-third__party_absl_system.absl.log.BUILD b/science/py-tensorflow/files/patch-third__party_absl_system.absl.log.BUILD deleted file mode 100644 index b148e8424213..000000000000 --- a/science/py-tensorflow/files/patch-third__party_absl_system.absl.log.BUILD +++ /dev/null @@ -1,13 +0,0 @@ ---- third_party/absl/system.absl.log.BUILD.orig 2024-06-26 12:02:28 UTC -+++ third_party/absl/system.absl.log.BUILD -@@ -0,0 +1,10 @@ -+load("@rules_cc//cc:defs.bzl", "cc_library") -+ -+package(default_visibility = ["//visibility:public"]) -+ -+[cc_library( -+ name = n, -+) for n in [ -+ "log", -+ "check", -+]] diff --git a/science/py-tensorflow/files/patch-third__party_absl_workspace.bzl b/science/py-tensorflow/files/patch-third__party_absl_workspace.bzl deleted file mode 100644 index 199a88686264..000000000000 --- a/science/py-tensorflow/files/patch-third__party_absl_workspace.bzl +++ /dev/null @@ -1,10 +0,0 @@ ---- third_party/absl/workspace.bzl.orig 2023-09-12 16:46:28 UTC -+++ third_party/absl/workspace.bzl -@@ -20,6 +20,7 @@ def repo(): - "flags", - "functional", - "hash", -+ "log", - "memory", - "meta", - "numeric", diff --git a/science/py-tensorflow/files/patch-third__party_flatbuffers_BUILD.system b/science/py-tensorflow/files/patch-third__party_flatbuffers_BUILD.system new file mode 100644 index 000000000000..3b435a5cac6d --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_flatbuffers_BUILD.system @@ -0,0 +1,14 @@ +--- third_party/flatbuffers/BUILD.system.orig 2025-01-01 00:00:00 UTC ++++ third_party/flatbuffers/BUILD.system +@@ -4,6 +4,11 @@ filegroup( + name = "LICENSE.txt", + visibility = ["//visibility:public"], + ) ++ ++filegroup( ++ name = "LICENSE", ++ visibility = ["//visibility:public"], ++) + + # Public flatc library to compile flatbuffer files at runtime. + cc_library( diff --git a/science/py-tensorflow/files/patch-third__party_llvm_workspace.bzl b/science/py-tensorflow/files/patch-third__party_llvm_workspace.bzl deleted file mode 100644 index 418755c58645..000000000000 --- a/science/py-tensorflow/files/patch-third__party_llvm_workspace.bzl +++ /dev/null @@ -1,10 +0,0 @@ ---- third_party/llvm/workspace.bzl.orig 2023-09-12 16:46:28 UTC -+++ third_party/llvm/workspace.bzl -@@ -21,6 +21,7 @@ def repo(name): - "//third_party/llvm:build.patch", - "//third_party/llvm:mathextras.patch", - "//third_party/llvm:zstd.patch", -+ "//third_party:fix-environ.patch" - ], - link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"}, - ) diff --git a/science/py-tensorflow/files/patch-third__party_py_python__init__pip.bzl b/science/py-tensorflow/files/patch-third__party_py_python__init__pip.bzl new file mode 100644 index 000000000000..fa21f1b4052d --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_py_python__init__pip.bzl @@ -0,0 +1,55 @@ +--- third_party/py/python_init_pip.bzl.orig ++++ third_party/py/python_init_pip.bzl +@@ -1,46 +1,9 @@ + """Hermetic Python initialization. Consult the WORKSPACE on how to use it.""" + +-load("@python_version_repo//:py_version.bzl", "REQUIREMENTS_WITH_LOCAL_WHEELS") +-load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse") +-load( +- "//third_party/py:python_init_toolchains.bzl", +- "get_toolchain_name_per_python_version", +-) +- + def python_init_pip(): +- numpy_annotations = { +- "numpy": package_annotation( +- additive_build_content = """\ +-cc_library( +- name = "numpy_headers_2", +- hdrs = glob(["site-packages/numpy/_core/include/**/*.h"]), +- strip_include_prefix="site-packages/numpy/_core/include/", +-) +-cc_library( +- name = "numpy_headers_1", +- hdrs = glob(["site-packages/numpy/core/include/**/*.h"]), +- strip_include_prefix="site-packages/numpy/core/include/", +-) +-cc_library( +- name = "numpy_headers", +- deps = [":numpy_headers_2", ":numpy_headers_1"], +- # For the layering check to work we need to re-export the headers from the +- # dependencies. +- hdrs = glob(["site-packages/numpy/_core/include/**/*.h"]) + +- glob(["site-packages/numpy/core/include/**/*.h"]), +-) +-""", +- ), +- } +- +- pip_parse( +- name = "pypi", +- annotations = numpy_annotations, +- python_interpreter_target = "@{}_host//:python".format( +- get_toolchain_name_per_python_version("python"), +- ), +- extra_hub_aliases = { +- "numpy": ["numpy_headers"], +- }, +- requirements_lock = REQUIREMENTS_WITH_LOCAL_WHEELS, +- ) ++ # FreeBSD: use a local stub repository instead of pip_parse ++ # (no platform wheels available for FreeBSD in requirements_lock) ++ native.local_repository( ++ name = "pypi", ++ path = "bazel_pypi_hub", ++ ) diff --git a/science/py-tensorflow/files/patch-third__party_remote__config_remote__platform__configure.bzl b/science/py-tensorflow/files/patch-third__party_remote__config_remote__platform__configure.bzl deleted file mode 100644 index 78ed4f5a6061..000000000000 --- a/science/py-tensorflow/files/patch-third__party_remote__config_remote__platform__configure.bzl +++ /dev/null @@ -1,19 +0,0 @@ ---- third_party/remote_config/remote_platform_configure.bzl.orig 2022-08-28 06:50:48 UTC -+++ third_party/remote_config/remote_platform_configure.bzl -@@ -8,6 +8,8 @@ def _remote_platform_configure_impl(repository_ctx): - platform = "windows" - elif os.startswith("mac os"): - platform = "osx" -+ elif os.startswith("freebsd"): -+ platform = "freebsd" - else: - platform = "linux" - -@@ -50,6 +52,6 @@ remote_platform_configure = repository_rule( - implementation = _remote_platform_configure_impl, - attrs = { - "platform_exec_properties": attr.string_dict(mandatory = True), -- "platform": attr.string(default = "linux", values = ["linux", "windows", "local"]), -+ "platform": attr.string(default = "linux", values = ["linux", "windows", "freebsd", "local"]), - }, - ) diff --git a/science/py-tensorflow/files/patch-third__party_systemlibs_pybind11.BUILD b/science/py-tensorflow/files/patch-third__party_systemlibs_pybind11.BUILD new file mode 100644 index 000000000000..a5b04f4c819b --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_systemlibs_pybind11.BUILD @@ -0,0 +1,18 @@ +--- third_party/systemlibs/pybind11.BUILD.orig ++++ third_party/systemlibs/pybind11.BUILD +@@ -2,7 +2,12 @@ + + cc_library( + name = "pybind11", +- deps = [ +- "@xla@xla//third_party/python_runtime:headers", +- ], + ) ++ ++config_setting( ++ name = "msvc_compiler", ++ flag_values = { ++ "@bazel_tools//tools/cpp:compiler": "msvc-cl", ++ }, ++ visibility = ["//visibility:public"], ++) diff --git a/science/py-tensorflow/files/patch-third__party_absl_system.absl.base.BUILD b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.base.BUILD similarity index 72% rename from science/py-tensorflow/files/patch-third__party_absl_system.absl.base.BUILD rename to science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.base.BUILD index c92f6c708ed8..5d0d0df6776f 100644 --- a/science/py-tensorflow/files/patch-third__party_absl_system.absl.base.BUILD +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.base.BUILD @@ -1,18 +1,18 @@ ---- third_party/absl/system.absl.base.BUILD.orig 2023-09-12 16:46:28 UTC -+++ third_party/absl/system.absl.base.BUILD +--- third_party/xla/third_party/absl/system.absl.base.BUILD.orig 2023-09-12 16:46:28 UTC ++++ third_party/xla/third_party/absl/system.absl.base.BUILD @@ -17,7 +17,14 @@ cc_library( cc_library( name = "log_severity", - linkopts = ["-labsl_log_severity"], + linkopts = [ + "-labsl_log_severity", + "-labsl_log_internal_check_op", + "-labsl_log_internal_conditions", + "-labsl_log_internal_message", + "-labsl_log_internal_nullguard", + "-labsl_vlog_config_internal", + ], ) cc_library( diff --git a/science/py-tensorflow/files/patch-third__party_absl_system.absl.flags.BUILD b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.flags.BUILD similarity index 51% rename from science/py-tensorflow/files/patch-third__party_absl_system.absl.flags.BUILD rename to science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.flags.BUILD index 1376191228ef..94a268494c52 100644 --- a/science/py-tensorflow/files/patch-third__party_absl_system.absl.flags.BUILD +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.flags.BUILD @@ -1,10 +1,10 @@ ---- third_party/absl/system.absl.flags.BUILD.orig 2023-09-12 16:46:28 UTC -+++ third_party/absl/system.absl.flags.BUILD +--- third_party/xla/third_party/absl/system.absl.flags.BUILD.orig 2023-09-12 16:46:28 UTC ++++ third_party/xla/third_party/absl/system.absl.flags.BUILD @@ -97,7 +97,6 @@ cc_library( cc_library( name = "flag", - linkopts = ["-labsl_flags"], deps = [ ":config", ":flag_internal", diff --git a/science/py-tensorflow/files/patch-third__party_absl_system.absl.strings.BUILD b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.strings.BUILD similarity index 65% rename from science/py-tensorflow/files/patch-third__party_absl_system.absl.strings.BUILD rename to science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.strings.BUILD index dca3d2c50183..0bdd2f0b2dc1 100644 --- a/science/py-tensorflow/files/patch-third__party_absl_system.absl.strings.BUILD +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.strings.BUILD @@ -1,15 +1,15 @@ ---- third_party/absl/system.absl.strings.BUILD.orig 2023-09-12 16:46:28 UTC -+++ third_party/absl/system.absl.strings.BUILD +--- third_party/xla/third_party/absl/system.absl.strings.BUILD.orig 2023-09-12 16:46:28 UTC ++++ third_party/xla/third_party/absl/system.absl.strings.BUILD @@ -26,7 +26,11 @@ cc_library( cc_library( name = "cord", - linkopts = ["-labsl_cord"], + linkopts = [ + "-labsl_cord", + "-labsl_cord_internal", + "-labsl_cordz_info" + ], deps = [ ":str_format", "//absl/container:compressed_tuple", diff --git a/science/py-tensorflow/files/patch-third__party_absl_system.absl.synchronization.BUILD b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.synchronization.BUILD similarity index 79% rename from science/py-tensorflow/files/patch-third__party_absl_system.absl.synchronization.BUILD rename to science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.synchronization.BUILD index fbd76f00be15..cac07dbbf60c 100644 --- a/science/py-tensorflow/files/patch-third__party_absl_system.absl.synchronization.BUILD +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_absl_system.absl.synchronization.BUILD @@ -1,31 +1,31 @@ ---- third_party/absl/system.absl.synchronization.BUILD.orig 2023-09-12 16:46:28 UTC -+++ third_party/absl/system.absl.synchronization.BUILD +--- third_party/xla/third_party/absl/system.absl.synchronization.BUILD.orig 2023-09-12 16:46:28 UTC ++++ third_party/xla/third_party/absl/system.absl.synchronization.BUILD @@ -17,13 +17,28 @@ cc_library( ) cc_library( + name = "kernel_timeout_internal", + visibility = [ + ], + deps = [ + "//absl/base", + "//absl/base:config", + "//absl/base:core_headers", + "//absl/base:raw_logging_internal", + "//absl/time", + ], +) + +cc_library( name = "synchronization", linkopts = [ "-labsl_synchronization", + "-labsl_kernel_timeout_internal", "-pthread", ], deps = [ ":graphcycles_internal", + ":kernel_timeout_internal", "//absl/base", "//absl/base:atomic_hook", "//absl/base:dynamic_annotations", diff --git a/science/py-tensorflow/files/patch-third__party_xla_third__party_llvm_workspace.bzl b/science/py-tensorflow/files/patch-third__party_xla_third__party_llvm_workspace.bzl new file mode 100644 index 000000000000..7d193aa7385b --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_llvm_workspace.bzl @@ -0,0 +1,10 @@ +--- third_party/xla/third_party/llvm/workspace.bzl.orig2025-01-01 00:00:00 UTC ++++ third_party/xla/third_party/llvm/workspace.bzl +@@ -24,6 +24,7 @@ def repo(name): + "//third_party/llvm:toolchains.patch", + "//third_party/llvm:zstd.patch", + "//third_party/llvm:lit_test.patch", ++ "//third_party:fix-environ.patch", + ], + link_files = {"//third_party/llvm:run_lit.sh": "mlir/run_lit.sh"}, + ) diff --git a/science/py-tensorflow/files/patch-third__party_xla_third__party_pthreadpool_workspace.bzl b/science/py-tensorflow/files/patch-third__party_xla_third__party_pthreadpool_workspace.bzl new file mode 100644 index 000000000000..6ea141d47fcc --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_pthreadpool_workspace.bzl @@ -0,0 +1,8 @@ +--- third_party/xla/third_party/pthreadpool/workspace.bzl.orig2025-01-01 00:00:00 UTC ++++ third_party/xla/third_party/pthreadpool/workspace.bzl +@@ -9,4 +9,5 @@ def repo(): + sha256 = "f602ab141bdc5d5872a79d6551e9063b5bfa7ad6ad60cceaa641de5c45c86d70", + strip_prefix = "pthreadpool-0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e", + urls = tf_mirror_urls("https://github.com/google/pthreadpool/archive/0e6ca13779b57d397a5ba6bfdcaa8a275bc8ea2e.zip"), ++ patch_file = ["//third_party:pthreadpool-alloca.patch"], + ) diff --git a/science/py-tensorflow/files/patch-third__party_xla_third__party_py_python__init__pip.bzl b/science/py-tensorflow/files/patch-third__party_xla_third__party_py_python__init__pip.bzl new file mode 100644 index 000000000000..b8c296206280 --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_py_python__init__pip.bzl @@ -0,0 +1,55 @@ +--- third_party/xla/third_party/py/python_init_pip.bzl.orig ++++ third_party/xla/third_party/py/python_init_pip.bzl +@@ -1,46 +1,9 @@ + """Hermetic Python initialization. Consult the WORKSPACE on how to use it.""" + +-load("@python_version_repo//:py_version.bzl", "REQUIREMENTS_WITH_LOCAL_WHEELS") +-load("@rules_python//python:pip.bzl", "package_annotation", "pip_parse") +-load( +- "//third_party/py:python_init_toolchains.bzl", +- "get_toolchain_name_per_python_version", +-) +- + def python_init_pip(): +- numpy_annotations = { +- "numpy": package_annotation( +- additive_build_content = """\ +-cc_library( +- name = "numpy_headers_2", +- hdrs = glob(["site-packages/numpy/_core/include/**/*.h"]), +- strip_include_prefix="site-packages/numpy/_core/include/", +-) +-cc_library( +- name = "numpy_headers_1", +- hdrs = glob(["site-packages/numpy/core/include/**/*.h"]), +- strip_include_prefix="site-packages/numpy/core/include/", +-) +-cc_library( +- name = "numpy_headers", +- deps = [":numpy_headers_2", ":numpy_headers_1"], +- # For the layering check to work we need to re-export the headers from the +- # dependencies. +- hdrs = glob(["site-packages/numpy/_core/include/**/*.h"]) + +- glob(["site-packages/numpy/core/include/**/*.h"]), +-) +-""", +- ), +- } +- +- pip_parse( +- name = "pypi", +- annotations = numpy_annotations, +- python_interpreter_target = "@{}_host//:python".format( +- get_toolchain_name_per_python_version("python"), +- ), +- extra_hub_aliases = { +- "numpy": ["numpy_headers"], +- }, +- requirements_lock = REQUIREMENTS_WITH_LOCAL_WHEELS, +- ) ++ # FreeBSD: use a local stub repository instead of pip_parse ++ # (no platform wheels available for FreeBSD in requirements_lock) ++ native.local_repository( ++ name = "pypi", ++ path = "bazel_pypi_hub", ++ ) diff --git a/science/py-tensorflow/files/patch-third__party_xla_third__party_py_python__init__rules.bzl b/science/py-tensorflow/files/patch-third__party_xla_third__party_py_python__init__rules.bzl new file mode 100644 index 000000000000..68e18cfcf8ef --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_py_python__init__rules.bzl @@ -0,0 +1,9 @@ +--- third_party/xla/third_party/py/python_init_rules.bzl.orig ++++ third_party/xla/third_party/py/python_init_rules.bzl +@@ -41,5 +41,6 @@ + "@xla//third_party/py:rules_python_pip_version.patch", + "@xla//third_party/py:rules_python_freethreaded.patch", + "@xla//third_party/py:rules_python_versions.patch", ++ "@xla//third_party/py:rules_python_freebsd.patch", + ] + extra_patches, + ) diff --git a/science/py-tensorflow/files/patch-third__party_xla_third__party_python__runtime_BUILD.bazel b/science/py-tensorflow/files/patch-third__party_xla_third__party_python__runtime_BUILD.bazel new file mode 100644 index 000000000000..78d3f2b7b28f --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_python__runtime_BUILD.bazel @@ -0,0 +1,13 @@ +--- third_party/xla/third_party/python_runtime/BUILD.bazel.orig ++++ third_party/xla/third_party/python_runtime/BUILD.bazel +@@ -2,7 +2,8 @@ + + package(default_visibility = ["//visibility:public"]) + +-alias( ++# On FreeBSD, replace the rules_python CC toolchain alias with a direct ++# cc_library. Python headers are added globally via --copt=-isystem in bazelrc. ++cc_library( + name = "headers", +- actual = "@rules_python//python/cc:current_py_cc_headers", + ) diff --git a/science/py-tensorflow/files/patch-third__party_xla_third__party_riegeli_workspace.bzl b/science/py-tensorflow/files/patch-third__party_xla_third__party_riegeli_workspace.bzl new file mode 100644 index 000000000000..77e6a0f29b4e --- /dev/null +++ b/science/py-tensorflow/files/patch-third__party_xla_third__party_riegeli_workspace.bzl @@ -0,0 +1,8 @@ +--- third_party/xla/third_party/riegeli/workspace.bzl.orig2025-01-01 00:00:00 UTC ++++ third_party/xla/third_party/riegeli/workspace.bzl +@@ -8,4 +8,5 @@ def repo(): + sha256 = "f63337f63f794ba9dc7dd281b20af3d036dfe0c1a5a4b7b8dc20b39f7e323b97", + strip_prefix = "riegeli-9f2744dc23e81d84c02f6f51244e9e9bb9802d57", + urls = tf_mirror_urls("https://github.com/google/riegeli/archive/9f2744dc23e81d84c02f6f51244e9e9bb9802d57.tar.gz"), ++ patch_file = ["//third_party:riegeli-xopen-source.patch"], + ) diff --git a/science/py-tensorflow/files/patch-third_party_xla_third__party_remote__config_remote__platform__configure.bzl b/science/py-tensorflow/files/patch-third_party_xla_third__party_remote__config_remote__platform__configure.bzl new file mode 100644 index 000000000000..e72b7d3d2dcb --- /dev/null +++ b/science/py-tensorflow/files/patch-third_party_xla_third__party_remote__config_remote__platform__configure.bzl @@ -0,0 +1,11 @@ +--- third_party/xla/third_party/remote_config/remote_platform_configure.bzl.orig ++++ third_party/xla/third_party/remote_config/remote_platform_configure.bzl +@@ -7,6 +7,8 @@ def _remote_platform_configure_impl(repository_ctx): + if os.startswith("windows"): + platform = "windows" + elif os.startswith("mac os"): + platform = "osx" ++ elif os.startswith("freebsd"): ++ platform = "freebsd" + else: + platform = "linux" diff --git a/science/py-tensorflow/files/rules_java.java.common.proguard_spec_info.bzl b/science/py-tensorflow/files/rules_java.java.common.proguard_spec_info.bzl new file mode 100644 index 000000000000..8dfbb41387d9 --- /dev/null +++ b/science/py-tensorflow/files/rules_java.java.common.proguard_spec_info.bzl @@ -0,0 +1,3 @@ +# Compatibility stub for rules_java 7.x + protobuf 6.31.1 (which needs 8.x APIs). + +ProguardSpecInfo = provider("ProguardSpecInfo", fields = ["specs"]) diff --git a/science/py-tensorflow/files/rules_java.java.private.proto_support.bzl b/science/py-tensorflow/files/rules_java.java.private.proto_support.bzl new file mode 100644 index 000000000000..dc933d516318 --- /dev/null +++ b/science/py-tensorflow/files/rules_java.java.private.proto_support.bzl @@ -0,0 +1,7 @@ +# Compatibility stub for rules_java 7.x + protobuf 6.31.1 (which needs 8.x APIs). + +def compile(**kwargs): + return java_common.compile(**kwargs) + +def merge(providers, **kwargs): + return java_common.merge(providers, **kwargs) diff --git a/science/py-tensorflow/files/tensorflow.pc b/science/py-tensorflow/files/tensorflow.pc deleted file mode 100644 index bad6259a848b..000000000000 --- a/science/py-tensorflow/files/tensorflow.pc +++ /dev/null @@ -1,11 +0,0 @@ -prefix=%%LOCALBASE%% -exec_prefix=\${prefix} -libdir=\${exec_prefix}/lib -includedir=\${prefix}/include/tensorflow - -Name: TensorFlow -Version: %%VERSION%% -Description: Library for computation using data flow graphs for scalable machine learning -Requires: -Libs: -L\${libdir} -ltensorflow -ltensorflow_framework -Cflags: -I\${includedir} diff --git a/science/py-tensorflow/files/tensorflow_cc.pc b/science/py-tensorflow/files/tensorflow_cc.pc deleted file mode 100644 index a37142e182e0..000000000000 --- a/science/py-tensorflow/files/tensorflow_cc.pc +++ /dev/null @@ -1,11 +0,0 @@ -prefix=%%LOCALBASE%% -exec_prefix=\${prefix} -libdir=\${exec_prefix}/${LIBDIR} -includedir=\${prefix}/include/tensorflow - -Name: TensorFlow -Version: %%VERSION%% -Description: Library for computation using data flow graphs for scalable machine learning -Requires: -Libs: -L\${libdir} -ltensorflow_cc -ltensorflow_framework -Cflags: -I\${includedir} diff --git a/science/py-tensorflow/pkg-plist b/science/py-tensorflow/pkg-plist deleted file mode 100644 index d4ba73bc2b25..000000000000 --- a/science/py-tensorflow/pkg-plist +++ /dev/null @@ -1,1105 +0,0 @@ -include/tensorflow/c/c_api.h -include/tensorflow/c/c_api_experimental.h -include/tensorflow/c/c_api_macros.h -include/tensorflow/c/c_api_macros_internal.h -include/tensorflow/c/eager/c_api.h -include/tensorflow/c/eager/c_api_experimental.h -include/tensorflow/c/eager/dlpack.h -include/tensorflow/c/ops.h -include/tensorflow/c/tensor_interface.h -include/tensorflow/c/tf_attrtype.h -include/tensorflow/c/tf_buffer.h -include/tensorflow/c/tf_datatype.h -include/tensorflow/c/tf_file_statistics.h -include/tensorflow/c/tf_status.h -include/tensorflow/c/tf_status_helper.h -include/tensorflow/c/tf_status_internal.h -include/tensorflow/c/tf_tensor.h -include/tensorflow/c/tf_tensor_internal.h -include/tensorflow/c/tf_tstring.h -include/tensorflow/cc/client/client_session.h -include/tensorflow/cc/framework/grad_op_registry.h -include/tensorflow/cc/framework/gradient_checker.h -include/tensorflow/cc/framework/gradients.h -include/tensorflow/cc/framework/ops.h -include/tensorflow/cc/framework/scope.h -include/tensorflow/cc/framework/scope_internal.h -include/tensorflow/cc/framework/while_gradients.h -include/tensorflow/cc/ops/array_ops.h -include/tensorflow/cc/ops/array_ops_internal.h -include/tensorflow/cc/ops/audio_ops.h -include/tensorflow/cc/ops/audio_ops_internal.h -include/tensorflow/cc/ops/candidate_sampling_ops.h -include/tensorflow/cc/ops/candidate_sampling_ops_internal.h -include/tensorflow/cc/ops/const_op.h -include/tensorflow/cc/ops/control_flow_ops.h -include/tensorflow/cc/ops/control_flow_ops_internal.h -include/tensorflow/cc/ops/data_flow_ops.h -include/tensorflow/cc/ops/data_flow_ops_internal.h -include/tensorflow/cc/ops/dataset_ops.h -include/tensorflow/cc/ops/dataset_ops_internal.h -include/tensorflow/cc/ops/experimental_dataset_ops.h -include/tensorflow/cc/ops/experimental_dataset_ops_internal.h -include/tensorflow/cc/ops/image_ops.h -include/tensorflow/cc/ops/image_ops_internal.h -include/tensorflow/cc/ops/io_ops.h -include/tensorflow/cc/ops/io_ops_internal.h -include/tensorflow/cc/ops/linalg_ops.h -include/tensorflow/cc/ops/linalg_ops_internal.h -include/tensorflow/cc/ops/list_ops.h -include/tensorflow/cc/ops/list_ops_internal.h -include/tensorflow/cc/ops/logging_ops.h -include/tensorflow/cc/ops/logging_ops_internal.h -include/tensorflow/cc/ops/lookup_ops.h -include/tensorflow/cc/ops/lookup_ops_internal.h -include/tensorflow/cc/ops/manip_ops.h -include/tensorflow/cc/ops/manip_ops_internal.h -include/tensorflow/cc/ops/map_ops.h -include/tensorflow/cc/ops/map_ops_internal.h -include/tensorflow/cc/ops/math_ops.h -include/tensorflow/cc/ops/math_ops_internal.h -include/tensorflow/cc/ops/nn_ops.h -include/tensorflow/cc/ops/nn_ops_internal.h -include/tensorflow/cc/ops/no_op.h -include/tensorflow/cc/ops/no_op_internal.h -include/tensorflow/cc/ops/parsing_ops.h -include/tensorflow/cc/ops/parsing_ops_internal.h -include/tensorflow/cc/ops/random_ops.h -include/tensorflow/cc/ops/random_ops_internal.h -include/tensorflow/cc/ops/resource_variable_ops.h -include/tensorflow/cc/ops/sparse_ops.h -include/tensorflow/cc/ops/sparse_ops_internal.h -include/tensorflow/cc/ops/standard_ops.h -include/tensorflow/cc/ops/state_ops.h -include/tensorflow/cc/ops/state_ops_internal.h -include/tensorflow/cc/ops/string_ops.h -include/tensorflow/cc/ops/string_ops_internal.h -include/tensorflow/cc/ops/training_ops.h -include/tensorflow/cc/ops/training_ops_internal.h -include/tensorflow/cc/ops/user_ops.h -include/tensorflow/cc/ops/user_ops_internal.h -include/tensorflow/cc/ops/while_loop.h -include/tensorflow/cc/saved_model/constants.h -include/tensorflow/cc/saved_model/loader.h -include/tensorflow/cc/saved_model/metrics.h -include/tensorflow/cc/saved_model/reader.h -include/tensorflow/cc/saved_model/signature_constants.h -include/tensorflow/cc/saved_model/tag_constants.h -include/tensorflow/cc/saved_model/util.h -include/tensorflow/cc/tools/freeze_saved_model.h -include/tensorflow/cc/training/coordinator.h -include/tensorflow/cc/training/queue_runner.h -include/tensorflow/compiler/jit/defs.h -include/tensorflow/compiler/mlir/tensorflow/utils/error_util.h -include/tensorflow/compiler/xla/array.h -include/tensorflow/compiler/xla/array2d.h -include/tensorflow/compiler/xla/array3d.h -include/tensorflow/compiler/xla/array4d.h -include/tensorflow/compiler/xla/autotune_results.pb.h -include/tensorflow/compiler/xla/comparison_util.h -include/tensorflow/compiler/xla/debug_options_flags.h -include/tensorflow/compiler/xla/debug_options_parsers.h -include/tensorflow/compiler/xla/hlo/ir/dfs_hlo_visitor.h -include/tensorflow/compiler/xla/hlo/ir/dfs_hlo_visitor_with_default.h -include/tensorflow/compiler/xla/hlo/ir/dynamic_parameter_binding.h -include/tensorflow/compiler/xla/hlo/ir/hlo_casting_utils.h -include/tensorflow/compiler/xla/hlo/ir/hlo_clone_context.h -include/tensorflow/compiler/xla/hlo/ir/hlo_computation.h -include/tensorflow/compiler/xla/hlo/ir/hlo_domain_metadata.h -include/tensorflow/compiler/xla/hlo/ir/hlo_input_output_alias_config.h -include/tensorflow/compiler/xla/hlo/ir/hlo_instruction.h -include/tensorflow/compiler/xla/hlo/ir/hlo_instructions.h -include/tensorflow/compiler/xla/hlo/ir/hlo_module.h -include/tensorflow/compiler/xla/hlo/ir/hlo_module_metadata.h -include/tensorflow/compiler/xla/hlo/ir/hlo_op_metadata.h -include/tensorflow/compiler/xla/hlo/ir/hlo_opcode.h -include/tensorflow/compiler/xla/hlo/ir/hlo_schedule.h -include/tensorflow/compiler/xla/hlo/ir/hlo_sharding.h -include/tensorflow/compiler/xla/hlo/ir/hlo_sharding_metadata.h -include/tensorflow/compiler/xla/index_util.h -include/tensorflow/compiler/xla/iterator_util.h -include/tensorflow/compiler/xla/layout.h -include/tensorflow/compiler/xla/layout_util.h -include/tensorflow/compiler/xla/literal.h -include/tensorflow/compiler/xla/literal_util.h -include/tensorflow/compiler/xla/map_util.h -include/tensorflow/compiler/xla/mlir/utils/error_util.h -include/tensorflow/compiler/xla/overflow_util.h -include/tensorflow/compiler/xla/parse_flags_from_env.h -include/tensorflow/compiler/xla/permutation_util.h -include/tensorflow/compiler/xla/primitive_util.h -include/tensorflow/compiler/xla/printer.h -include/tensorflow/compiler/xla/protobuf_util.h -include/tensorflow/compiler/xla/service/compilation_environments.h -include/tensorflow/compiler/xla/service/computation_layout.h -include/tensorflow/compiler/xla/service/computation_placer.h -include/tensorflow/compiler/xla/service/global_device_id.h -include/tensorflow/compiler/xla/service/hlo.pb.h -include/tensorflow/compiler/xla/service/hlo_module_config.h -include/tensorflow/compiler/xla/service/mapped_ptr_container_sorter.h -include/tensorflow/compiler/xla/service/name_uniquer.h -include/tensorflow/compiler/xla/shape.h -include/tensorflow/compiler/xla/shape_layout.h -include/tensorflow/compiler/xla/shape_tree.h -include/tensorflow/compiler/xla/shape_util.h -include/tensorflow/compiler/xla/status.h -include/tensorflow/compiler/xla/status_macros.h -include/tensorflow/compiler/xla/statusor.h -include/tensorflow/compiler/xla/stream_executor/allocator_stats.h -include/tensorflow/compiler/xla/stream_executor/blas.h -include/tensorflow/compiler/xla/stream_executor/cuda/cuda_activation.h -include/tensorflow/compiler/xla/stream_executor/cuda/cuda_platform_id.h -include/tensorflow/compiler/xla/stream_executor/data_type.h -include/tensorflow/compiler/xla/stream_executor/device_description.h -include/tensorflow/compiler/xla/stream_executor/device_description.pb.h -include/tensorflow/compiler/xla/stream_executor/device_host_allocator.h -include/tensorflow/compiler/xla/stream_executor/device_id_utils.h -include/tensorflow/compiler/xla/stream_executor/device_mem_allocator.h -include/tensorflow/compiler/xla/stream_executor/device_memory.h -include/tensorflow/compiler/xla/stream_executor/device_memory_allocator.h -include/tensorflow/compiler/xla/stream_executor/device_options.h -include/tensorflow/compiler/xla/stream_executor/dnn.h -include/tensorflow/compiler/xla/stream_executor/dnn.pb.h -include/tensorflow/compiler/xla/stream_executor/event.h -include/tensorflow/compiler/xla/stream_executor/executor_cache.h -include/tensorflow/compiler/xla/stream_executor/fft.h -include/tensorflow/compiler/xla/stream_executor/gpu/gpu_activation.h -include/tensorflow/compiler/xla/stream_executor/gpu/gpu_init.h -include/tensorflow/compiler/xla/stream_executor/gpu_launch_dim.h -include/tensorflow/compiler/xla/stream_executor/host/host_platform_id.h -include/tensorflow/compiler/xla/stream_executor/host_or_device_scalar.h -include/tensorflow/compiler/xla/stream_executor/kernel.h -include/tensorflow/compiler/xla/stream_executor/kernel_cache_config.h -include/tensorflow/compiler/xla/stream_executor/kernel_spec.h -include/tensorflow/compiler/xla/stream_executor/launch_dim.h -include/tensorflow/compiler/xla/stream_executor/module_spec.h -include/tensorflow/compiler/xla/stream_executor/multi_platform_manager.h -include/tensorflow/compiler/xla/stream_executor/numeric_options.h -include/tensorflow/compiler/xla/stream_executor/platform.h -include/tensorflow/compiler/xla/stream_executor/platform/default/dso_loader.h -include/tensorflow/compiler/xla/stream_executor/platform/default/initialize.h -include/tensorflow/compiler/xla/stream_executor/platform/dso_loader.h -include/tensorflow/compiler/xla/stream_executor/platform/initialize.h -include/tensorflow/compiler/xla/stream_executor/platform/logging.h -include/tensorflow/compiler/xla/stream_executor/platform/platform.h -include/tensorflow/compiler/xla/stream_executor/platform/port.h -include/tensorflow/compiler/xla/stream_executor/plugin.h -include/tensorflow/compiler/xla/stream_executor/plugin_registry.h -include/tensorflow/compiler/xla/stream_executor/rng.h -include/tensorflow/compiler/xla/stream_executor/rocm/rocm_platform_id.h -include/tensorflow/compiler/xla/stream_executor/scratch_allocator.h -include/tensorflow/compiler/xla/stream_executor/stream.h -include/tensorflow/compiler/xla/stream_executor/stream_executor.h -include/tensorflow/compiler/xla/stream_executor/stream_executor_internal.h -include/tensorflow/compiler/xla/stream_executor/stream_executor_pimpl.h -include/tensorflow/compiler/xla/stream_executor/temporary_device_memory.h -include/tensorflow/compiler/xla/stream_executor/temporary_memory_manager.h -include/tensorflow/compiler/xla/stream_executor/timer.h -include/tensorflow/compiler/xla/stream_executor/trace_listener.h -include/tensorflow/compiler/xla/types.h -include/tensorflow/compiler/xla/util.h -include/tensorflow/compiler/xla/window_util.h -include/tensorflow/compiler/xla/xla.pb.h -include/tensorflow/compiler/xla/xla_data.pb.h -include/tensorflow/core/common_runtime/all_to_all.h -include/tensorflow/core/common_runtime/allocator_retry.h -include/tensorflow/core/common_runtime/arg_ret_placement.h -include/tensorflow/core/common_runtime/base_collective_executor.h -include/tensorflow/core/common_runtime/bfc_allocator.h -include/tensorflow/core/common_runtime/buf_rendezvous.h -include/tensorflow/core/common_runtime/build_graph_options.h -include/tensorflow/core/common_runtime/collective_executor_mgr.h -include/tensorflow/core/common_runtime/collective_param_resolver_local.h -include/tensorflow/core/common_runtime/collective_rma_local.h -include/tensorflow/core/common_runtime/collective_util.h -include/tensorflow/core/common_runtime/colocation_graph.h -include/tensorflow/core/common_runtime/composite_device.h -include/tensorflow/core/common_runtime/constant_folding.h -include/tensorflow/core/common_runtime/copy_tensor.h -include/tensorflow/core/common_runtime/costmodel_manager.h -include/tensorflow/core/common_runtime/debugger_state_interface.h -include/tensorflow/core/common_runtime/device.h -include/tensorflow/core/common_runtime/device/device_event_mgr.h -include/tensorflow/core/common_runtime/device/device_host_allocator.h -include/tensorflow/core/common_runtime/device/device_id.h -include/tensorflow/core/common_runtime/device/device_id_manager.h -include/tensorflow/core/common_runtime/device/device_mem_allocator.h -include/tensorflow/core/common_runtime/device_factory.h -include/tensorflow/core/common_runtime/device_mgr.h -include/tensorflow/core/common_runtime/device_resolver_local.h -include/tensorflow/core/common_runtime/device_set.h -include/tensorflow/core/common_runtime/dma_helper.h -include/tensorflow/core/common_runtime/eval_const_tensor.h -include/tensorflow/core/common_runtime/executor.h -include/tensorflow/core/common_runtime/executor_factory.h -include/tensorflow/core/common_runtime/function.h -include/tensorflow/core/common_runtime/function_body.h -include/tensorflow/core/common_runtime/function_def_utils.h -include/tensorflow/core/common_runtime/function_optimization_registry.h -include/tensorflow/core/common_runtime/function_utils.h -include/tensorflow/core/common_runtime/gpu/gpu_bfc_allocator.h -include/tensorflow/core/common_runtime/gpu/gpu_cudamalloc_allocator.h -include/tensorflow/core/common_runtime/gpu/gpu_debug_allocator.h -include/tensorflow/core/common_runtime/gpu/gpu_device.h -include/tensorflow/core/common_runtime/gpu/gpu_id.h -include/tensorflow/core/common_runtime/gpu/gpu_id_manager.h -include/tensorflow/core/common_runtime/gpu/gpu_managed_allocator.h -include/tensorflow/core/common_runtime/gpu/gpu_process_state.h -include/tensorflow/core/common_runtime/gpu/gpu_util.h -include/tensorflow/core/common_runtime/gpu/gpu_virtual_mem_allocator.h -include/tensorflow/core/common_runtime/gpu_device_context.h -include/tensorflow/core/common_runtime/gradients.h -include/tensorflow/core/common_runtime/graph_constructor.h -include/tensorflow/core/common_runtime/graph_def_builder_util.h -include/tensorflow/core/common_runtime/graph_execution_state.h -include/tensorflow/core/common_runtime/graph_optimizer.h -include/tensorflow/core/common_runtime/graph_runner.h -include/tensorflow/core/common_runtime/hierarchical_tree_broadcaster.h -include/tensorflow/core/common_runtime/inline_function_utils.h -include/tensorflow/core/common_runtime/input_colocation_exemption_registry.h -include/tensorflow/core/common_runtime/inspecting_placer.h -include/tensorflow/core/common_runtime/int32_fulltype.h -include/tensorflow/core/common_runtime/isolate_placer_inspection_required_ops_pass.h -include/tensorflow/core/common_runtime/local_device.h -include/tensorflow/core/common_runtime/local_executor_params.h -include/tensorflow/core/common_runtime/lower_case_op.h -include/tensorflow/core/common_runtime/lower_function_call_inline_policy.h -include/tensorflow/core/common_runtime/lower_function_call_op.h -include/tensorflow/core/common_runtime/lower_functional_ops.h -include/tensorflow/core/common_runtime/lower_if_op.h -include/tensorflow/core/common_runtime/lower_while_op.h -include/tensorflow/core/common_runtime/memory_types.h -include/tensorflow/core/common_runtime/mkl_cpu_allocator.h -include/tensorflow/core/common_runtime/mkl_layout_pass.h -include/tensorflow/core/common_runtime/node_file_writer.h -include/tensorflow/core/common_runtime/optimization_registry.h -include/tensorflow/core/common_runtime/optimized_function_graph_info.h -include/tensorflow/core/common_runtime/partitioning_utils.h -include/tensorflow/core/common_runtime/permuter.h -include/tensorflow/core/common_runtime/placer.h -include/tensorflow/core/common_runtime/placer_inspection_required_ops_utils.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_bfc_allocator.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_context.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_factory.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_init.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_process_state.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_simple_allocator.h -include/tensorflow/core/common_runtime/pluggable_device/pluggable_device_util.h -include/tensorflow/core/common_runtime/pool_allocator.h -include/tensorflow/core/common_runtime/process_function_library_runtime.h -include/tensorflow/core/common_runtime/process_state.h -include/tensorflow/core/common_runtime/process_util.h -include/tensorflow/core/common_runtime/profile_handler.h -include/tensorflow/core/common_runtime/quantize_training.h -include/tensorflow/core/common_runtime/renamed_device.h -include/tensorflow/core/common_runtime/rendezvous_mgr.h -include/tensorflow/core/common_runtime/rendezvous_util.h -include/tensorflow/core/common_runtime/replicate_per_replica_nodes.h -include/tensorflow/core/common_runtime/ring_alg.h -include/tensorflow/core/common_runtime/ring_gatherer.h -include/tensorflow/core/common_runtime/ring_reducer.h -include/tensorflow/core/common_runtime/scoped_allocator.h -include/tensorflow/core/common_runtime/scoped_allocator_mgr.h -include/tensorflow/core/common_runtime/session_factory.h -include/tensorflow/core/common_runtime/shape_refiner.h -include/tensorflow/core/common_runtime/shared_counter.h -include/tensorflow/core/common_runtime/single_threaded_cpu_device.h -include/tensorflow/core/common_runtime/stats_publisher_interface.h -include/tensorflow/core/common_runtime/step_stats_collector.h -include/tensorflow/core/common_runtime/threadpool_device.h -include/tensorflow/core/example/example.pb.h -include/tensorflow/core/example/example_parser_configuration.pb.h -include/tensorflow/core/example/feature.pb.h -include/tensorflow/core/example/feature_util.h -include/tensorflow/core/framework/allocation_description.pb.h -include/tensorflow/core/framework/allocator.h -include/tensorflow/core/framework/allocator_registry.h -include/tensorflow/core/framework/api_def.pb.h -include/tensorflow/core/framework/attr_value.pb.h -include/tensorflow/core/framework/attr_value_util.h -include/tensorflow/core/framework/bfloat16.h -include/tensorflow/core/framework/bounds_check.h -include/tensorflow/core/framework/cancellation.h -include/tensorflow/core/framework/collective.h -include/tensorflow/core/framework/common_shape_fns.h -include/tensorflow/core/framework/control_flow.h -include/tensorflow/core/framework/cost_graph.pb.h -include/tensorflow/core/framework/dataset.h -include/tensorflow/core/framework/dataset.pb.h -include/tensorflow/core/framework/dataset_metadata.pb.h -include/tensorflow/core/framework/dataset_options.pb.h -include/tensorflow/core/framework/dataset_stateful_op_allowlist.h -include/tensorflow/core/framework/device.h -include/tensorflow/core/framework/device_attributes.pb.h -include/tensorflow/core/framework/device_base.h -include/tensorflow/core/framework/device_factory.h -include/tensorflow/core/framework/full_type.pb.h -include/tensorflow/core/framework/full_type_inference_util.h -include/tensorflow/core/framework/full_type_util.h -include/tensorflow/core/framework/function.h -include/tensorflow/core/framework/function.pb.h -include/tensorflow/core/framework/function_handle_cache.h -include/tensorflow/core/framework/graph.pb.h -include/tensorflow/core/framework/graph_debug_info.pb.h -include/tensorflow/core/framework/graph_def_util.h -include/tensorflow/core/framework/graph_to_functiondef.h -include/tensorflow/core/framework/graph_transfer_info.pb.h -include/tensorflow/core/framework/kernel_def.pb.h -include/tensorflow/core/framework/kernel_def_builder.h -include/tensorflow/core/framework/kernel_def_util.h -include/tensorflow/core/framework/kernel_shape_util.h -include/tensorflow/core/framework/local_rendezvous.h -include/tensorflow/core/framework/log_memory.h -include/tensorflow/core/framework/log_memory.pb.h -include/tensorflow/core/framework/logging.h -include/tensorflow/core/framework/lookup_interface.h -include/tensorflow/core/framework/memory_types.h -include/tensorflow/core/framework/metrics.h -include/tensorflow/core/framework/model.h -include/tensorflow/core/framework/model.pb.h -include/tensorflow/core/framework/node_def.pb.h -include/tensorflow/core/framework/node_def_builder.h -include/tensorflow/core/framework/node_def_util.h -include/tensorflow/core/framework/node_properties.h -include/tensorflow/core/framework/numeric_op.h -include/tensorflow/core/framework/numeric_types.h -include/tensorflow/core/framework/op.h -include/tensorflow/core/framework/op_def.pb.h -include/tensorflow/core/framework/op_def_builder.h -include/tensorflow/core/framework/op_def_util.h -include/tensorflow/core/framework/op_kernel.h -include/tensorflow/core/framework/op_requires.h -include/tensorflow/core/framework/op_segment.h -include/tensorflow/core/framework/ops_util.h -include/tensorflow/core/framework/optimized_function_graph.pb.h -include/tensorflow/core/framework/partial_tensor_shape.h -include/tensorflow/core/framework/queue_interface.h -include/tensorflow/core/framework/reader_base.pb.h -include/tensorflow/core/framework/reader_interface.h -include/tensorflow/core/framework/reader_op_kernel.h -include/tensorflow/core/framework/ref_var.h -include/tensorflow/core/framework/register_types.h -include/tensorflow/core/framework/register_types_traits.h -include/tensorflow/core/framework/registration/options.h -include/tensorflow/core/framework/registration/registration.h -include/tensorflow/core/framework/rendezvous.h -include/tensorflow/core/framework/resource_base.h -include/tensorflow/core/framework/resource_handle.h -include/tensorflow/core/framework/resource_handle.pb.h -include/tensorflow/core/framework/resource_mgr.h -include/tensorflow/core/framework/resource_op_kernel.h -include/tensorflow/core/framework/resource_var.h -include/tensorflow/core/framework/rng_alg.h -include/tensorflow/core/framework/run_handler.h -include/tensorflow/core/framework/run_handler_util.h -include/tensorflow/core/framework/session_state.h -include/tensorflow/core/framework/shape_inference.h -include/tensorflow/core/framework/shared_ptr_variant.h -include/tensorflow/core/framework/stats_aggregator.h -include/tensorflow/core/framework/step_stats.pb.h -include/tensorflow/core/framework/summary.pb.h -include/tensorflow/core/framework/tensor.h -include/tensorflow/core/framework/tensor.pb.h -include/tensorflow/core/framework/tensor_description.pb.h -include/tensorflow/core/framework/tensor_key.h -include/tensorflow/core/framework/tensor_reference.h -include/tensorflow/core/framework/tensor_shape.h -include/tensorflow/core/framework/tensor_shape.pb.h -include/tensorflow/core/framework/tensor_slice.h -include/tensorflow/core/framework/tensor_slice.pb.h -include/tensorflow/core/framework/tensor_types.h -include/tensorflow/core/framework/tensor_util.h -include/tensorflow/core/framework/thread_factory.h -include/tensorflow/core/framework/tracking_allocator.h -include/tensorflow/core/framework/type_index.h -include/tensorflow/core/framework/type_traits.h -include/tensorflow/core/framework/typed_allocator.h -include/tensorflow/core/framework/types.h -include/tensorflow/core/framework/types.pb.h -include/tensorflow/core/framework/variable.pb.h -include/tensorflow/core/framework/variant.h -include/tensorflow/core/framework/variant_encode_decode.h -include/tensorflow/core/framework/variant_op_registry.h -include/tensorflow/core/framework/variant_tensor_data.h -include/tensorflow/core/framework/versions.h -include/tensorflow/core/framework/versions.pb.h -include/tensorflow/core/graph/algorithm.h -include/tensorflow/core/graph/collective_order.h -include/tensorflow/core/graph/colors.h -include/tensorflow/core/graph/control_flow.h -include/tensorflow/core/graph/costmodel.h -include/tensorflow/core/graph/default_device.h -include/tensorflow/core/graph/edgeset.h -include/tensorflow/core/graph/graph.h -include/tensorflow/core/graph/graph_def_builder.h -include/tensorflow/core/graph/graph_node_util.h -include/tensorflow/core/graph/graph_partition.h -include/tensorflow/core/graph/node_builder.h -include/tensorflow/core/graph/optimizer_cse.h -include/tensorflow/core/graph/subgraph.h -include/tensorflow/core/graph/tensor_id.h -include/tensorflow/core/graph/testlib.h -include/tensorflow/core/graph/types.h -include/tensorflow/core/graph/validate.h -include/tensorflow/core/graph/while_context.h -include/tensorflow/core/grappler/clusters/cluster.h -include/tensorflow/core/grappler/clusters/utils.h -include/tensorflow/core/grappler/clusters/virtual_cluster.h -include/tensorflow/core/grappler/costs/analytical_cost_estimator.h -include/tensorflow/core/grappler/costs/cost_estimator.h -include/tensorflow/core/grappler/costs/graph_memory.h -include/tensorflow/core/grappler/costs/graph_properties.h -include/tensorflow/core/grappler/costs/op_context.h -include/tensorflow/core/grappler/costs/op_level_cost_estimator.h -include/tensorflow/core/grappler/costs/op_performance_data.pb.h -include/tensorflow/core/grappler/costs/utils.h -include/tensorflow/core/grappler/costs/virtual_placer.h -include/tensorflow/core/grappler/costs/virtual_scheduler.h -include/tensorflow/core/grappler/devices.h -include/tensorflow/core/grappler/graph_topology_view.h -include/tensorflow/core/grappler/graph_view.h -include/tensorflow/core/grappler/grappler_item.h -include/tensorflow/core/grappler/mutable_graph_view.h -include/tensorflow/core/grappler/op_types.h -include/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h -include/tensorflow/core/grappler/optimizers/auto_mixed_precision.h -include/tensorflow/core/grappler/optimizers/auto_mixed_precision_lists.h -include/tensorflow/core/grappler/optimizers/auto_parallel.h -include/tensorflow/core/grappler/optimizers/common_subgraph_elimination.h -include/tensorflow/core/grappler/optimizers/constant_folding.h -include/tensorflow/core/grappler/optimizers/custom_graph_optimizer.h -include/tensorflow/core/grappler/optimizers/custom_graph_optimizer_registry.h -include/tensorflow/core/grappler/optimizers/debug_stripper.h -include/tensorflow/core/grappler/optimizers/dependency_optimizer.h -include/tensorflow/core/grappler/optimizers/evaluation_utils.h -include/tensorflow/core/grappler/optimizers/function_api_info.h -include/tensorflow/core/grappler/optimizers/function_optimizer.h -include/tensorflow/core/grappler/optimizers/generic_layout_optimizer.h -include/tensorflow/core/grappler/optimizers/generic_layout_optimizer_transposer.h -include/tensorflow/core/grappler/optimizers/generic_layout_optimizer_transposer_factory.h -include/tensorflow/core/grappler/optimizers/graph_optimizer.h -include/tensorflow/core/grappler/optimizers/graph_optimizer_stage.h -include/tensorflow/core/grappler/optimizers/implementation_selector.h -include/tensorflow/core/grappler/optimizers/loop_optimizer.h -include/tensorflow/core/grappler/optimizers/memory_optimizer.h -include/tensorflow/core/grappler/optimizers/meta_optimizer.h -include/tensorflow/core/grappler/optimizers/model_pruner.h -include/tensorflow/core/grappler/optimizers/pin_to_host_optimizer.h -include/tensorflow/core/grappler/optimizers/remapper.h -include/tensorflow/core/grappler/optimizers/scoped_allocator_optimizer.h -include/tensorflow/core/grappler/optimizers/shape_optimizer.h -include/tensorflow/core/grappler/optimizers/static_schedule.h -include/tensorflow/core/grappler/optimizers/tfg_optimizer_hook.h -include/tensorflow/core/grappler/optimizers/tfg_passes_builder.h -include/tensorflow/core/grappler/utils.h -include/tensorflow/core/grappler/utils/canonicalizer.h -include/tensorflow/core/grappler/utils/colocation.h -include/tensorflow/core/grappler/utils/frame.h -include/tensorflow/core/grappler/utils/functions.h -include/tensorflow/core/grappler/utils/graph_view.h -include/tensorflow/core/grappler/utils/graph_view_internal.h -include/tensorflow/core/grappler/utils/pattern_utils.h -include/tensorflow/core/grappler/utils/symbolic_shapes.h -include/tensorflow/core/grappler/utils/topological_sort.h -include/tensorflow/core/grappler/utils/tpu.h -include/tensorflow/core/grappler/utils/transitive_fanin.h -include/tensorflow/core/grappler/utils/traversal.h -include/tensorflow/core/grappler/verifiers/graph_verifier.h -include/tensorflow/core/grappler/verifiers/structure_verifier.h -include/tensorflow/core/ir/attributes.cc.inc -include/tensorflow/core/ir/attributes.h.inc -include/tensorflow/core/ir/dialect.cc.inc -include/tensorflow/core/ir/dialect.h -include/tensorflow/core/ir/dialect.h.inc -include/tensorflow/core/ir/importexport/convert_attributes.h -include/tensorflow/core/ir/importexport/convert_tensor.h -include/tensorflow/core/ir/importexport/convert_types.h -include/tensorflow/core/ir/importexport/functiondef_export.h -include/tensorflow/core/ir/importexport/functiondef_import.h -include/tensorflow/core/ir/importexport/graphdef_export.h -include/tensorflow/core/ir/importexport/graphdef_import.h -include/tensorflow/core/ir/importexport/mangling.h -include/tensorflow/core/ir/importexport/parse_text_proto.h -include/tensorflow/core/ir/interfaces.cc.inc -include/tensorflow/core/ir/interfaces.h -include/tensorflow/core/ir/interfaces.h.inc -include/tensorflow/core/ir/ops.cc.inc -include/tensorflow/core/ir/ops.h -include/tensorflow/core/ir/ops.h.inc -include/tensorflow/core/ir/tf_op_names.inc -include/tensorflow/core/ir/tf_op_registry.h -include/tensorflow/core/ir/tf_op_wrapper.h -include/tensorflow/core/ir/types/attributes.cc.inc -include/tensorflow/core/ir/types/attributes.h.inc -include/tensorflow/core/ir/types/attributes_enum.cc.inc -include/tensorflow/core/ir/types/attributes_enum.h.inc -include/tensorflow/core/ir/types/dialect.cpp.inc -include/tensorflow/core/ir/types/dialect.h -include/tensorflow/core/ir/types/dialect.h.inc -include/tensorflow/core/ir/types/types.cc.inc -include/tensorflow/core/ir/types/types.def -include/tensorflow/core/ir/types/types.h.inc -include/tensorflow/core/ir/utility.h -include/tensorflow/core/ir/utils/shape_inference_utils.h -include/tensorflow/core/kernels/ops_util.h -include/tensorflow/core/lib/bfloat16/bfloat16.h -include/tensorflow/core/lib/core/arena.h -include/tensorflow/core/lib/core/bitmap.h -include/tensorflow/core/lib/core/bits.h -include/tensorflow/core/lib/core/coding.h -include/tensorflow/core/lib/core/error_codes.pb.h -include/tensorflow/core/lib/core/errors.h -include/tensorflow/core/lib/core/notification.h -include/tensorflow/core/lib/core/raw_coding.h -include/tensorflow/core/lib/core/refcount.h -include/tensorflow/core/lib/core/status.h -include/tensorflow/core/lib/core/status_test_util.h -include/tensorflow/core/lib/core/stringpiece.h -include/tensorflow/core/lib/core/threadpool.h -include/tensorflow/core/lib/core/threadpool_interface.h -include/tensorflow/core/lib/core/threadpool_options.h -include/tensorflow/core/lib/gtl/array_slice.h -include/tensorflow/core/lib/gtl/cleanup.h -include/tensorflow/core/lib/gtl/compactptrset.h -include/tensorflow/core/lib/gtl/edit_distance.h -include/tensorflow/core/lib/gtl/flatmap.h -include/tensorflow/core/lib/gtl/flatrep.h -include/tensorflow/core/lib/gtl/flatset.h -include/tensorflow/core/lib/gtl/inlined_vector.h -include/tensorflow/core/lib/gtl/int_type.h -include/tensorflow/core/lib/gtl/iterator_range.h -include/tensorflow/core/lib/gtl/manual_constructor.h -include/tensorflow/core/lib/gtl/map_util.h -include/tensorflow/core/lib/gtl/optional.h -include/tensorflow/core/lib/gtl/priority_queue_util.h -include/tensorflow/core/lib/gtl/subtle/map_traits.h -include/tensorflow/core/lib/gtl/top_n.h -include/tensorflow/core/lib/hash/crc32c.h -include/tensorflow/core/lib/hash/hash.h -include/tensorflow/core/lib/histogram/histogram.h -include/tensorflow/core/lib/io/block.h -include/tensorflow/core/lib/io/block_builder.h -include/tensorflow/core/lib/io/buffered_inputstream.h -include/tensorflow/core/lib/io/cache.h -include/tensorflow/core/lib/io/compression.h -include/tensorflow/core/lib/io/format.h -include/tensorflow/core/lib/io/inputbuffer.h -include/tensorflow/core/lib/io/inputstream_interface.h -include/tensorflow/core/lib/io/iterator.h -include/tensorflow/core/lib/io/path.h -include/tensorflow/core/lib/io/proto_encode_helper.h -include/tensorflow/core/lib/io/random_inputstream.h -include/tensorflow/core/lib/io/record_reader.h -include/tensorflow/core/lib/io/record_writer.h -include/tensorflow/core/lib/io/table.h -include/tensorflow/core/lib/io/table_builder.h -include/tensorflow/core/lib/io/table_options.h -include/tensorflow/core/lib/io/two_level_iterator.h -include/tensorflow/core/lib/io/zlib_compression_options.h -include/tensorflow/core/lib/io/zlib_inputstream.h -include/tensorflow/core/lib/io/zlib_outputbuffer.h -include/tensorflow/core/lib/llvm_rtti/llvm_rtti.h -include/tensorflow/core/lib/math/math_util.h -include/tensorflow/core/lib/monitoring/cell_reader.h -include/tensorflow/core/lib/monitoring/collected_metrics.h -include/tensorflow/core/lib/monitoring/collection_registry.h -include/tensorflow/core/lib/monitoring/counter.h -include/tensorflow/core/lib/monitoring/gauge.h -include/tensorflow/core/lib/monitoring/metric_def.h -include/tensorflow/core/lib/monitoring/percentile_sampler.h -include/tensorflow/core/lib/monitoring/sampler.h -include/tensorflow/core/lib/monitoring/test_utils.h -include/tensorflow/core/lib/monitoring/timed.h -include/tensorflow/core/lib/monitoring/types.h -include/tensorflow/core/lib/random/distribution_sampler.h -include/tensorflow/core/lib/random/exact_uniform_int.h -include/tensorflow/core/lib/random/philox_random.h -include/tensorflow/core/lib/random/random.h -include/tensorflow/core/lib/random/random_distributions.h -include/tensorflow/core/lib/random/random_distributions_utils.h -include/tensorflow/core/lib/random/simple_philox.h -include/tensorflow/core/lib/random/weighted_picker.h -include/tensorflow/core/lib/strings/base64.h -include/tensorflow/core/lib/strings/numbers.h -include/tensorflow/core/lib/strings/ordered_code.h -include/tensorflow/core/lib/strings/proto_serialization.h -include/tensorflow/core/lib/strings/proto_text_util.h -include/tensorflow/core/lib/strings/scanner.h -include/tensorflow/core/lib/strings/str_util.h -include/tensorflow/core/lib/strings/strcat.h -include/tensorflow/core/lib/strings/stringprintf.h -include/tensorflow/core/lib/wav/wav_io.h -include/tensorflow/core/platform/abi.h -include/tensorflow/core/platform/base64.h -include/tensorflow/core/platform/bfloat16.h -include/tensorflow/core/platform/blocking_counter.h -include/tensorflow/core/platform/byte_order.h -include/tensorflow/core/platform/casts.h -include/tensorflow/core/platform/coding.h -include/tensorflow/core/platform/context.h -include/tensorflow/core/platform/cord.h -include/tensorflow/core/platform/cpu_feature_guard.h -include/tensorflow/core/platform/cpu_info.h -include/tensorflow/core/platform/crash_analysis.h -include/tensorflow/core/platform/ctstring.h -include/tensorflow/core/platform/ctstring_internal.h -include/tensorflow/core/platform/cuda.h -include/tensorflow/core/platform/demangle.h -include/tensorflow/core/platform/denormal.h -include/tensorflow/core/platform/dynamic_annotations.h -include/tensorflow/core/platform/enable_tf2_utils.h -include/tensorflow/core/platform/env.h -include/tensorflow/core/platform/env_time.h -include/tensorflow/core/platform/error_payloads.h -include/tensorflow/core/platform/errors.h -include/tensorflow/core/platform/file_statistics.h -include/tensorflow/core/platform/file_system.h -include/tensorflow/core/platform/file_system_helper.h -include/tensorflow/core/platform/fingerprint.h -include/tensorflow/core/platform/float8.h -include/tensorflow/core/platform/hash.h -include/tensorflow/core/platform/host_info.h -include/tensorflow/core/platform/human_readable_json.h -include/tensorflow/core/platform/init_main.h -include/tensorflow/core/platform/intrusive_ptr.h -include/tensorflow/core/platform/load_library.h -include/tensorflow/core/platform/logger.h -include/tensorflow/core/platform/logging.h -include/tensorflow/core/platform/macros.h -include/tensorflow/core/platform/mem.h -include/tensorflow/core/platform/mutex.h -include/tensorflow/core/platform/net.h -include/tensorflow/core/platform/notification.h -include/tensorflow/core/platform/null_file_system.h -include/tensorflow/core/platform/numa.h -include/tensorflow/core/platform/numbers.h -include/tensorflow/core/platform/path.h -include/tensorflow/core/platform/platform.h -include/tensorflow/core/platform/platform_strings.h -include/tensorflow/core/platform/platform_strings_computed.h -include/tensorflow/core/platform/prefetch.h -include/tensorflow/core/platform/profile_utils/android_armv7a_cpu_utils_helper.h -include/tensorflow/core/platform/profile_utils/clock_cycle_profiler.h -include/tensorflow/core/platform/profile_utils/cpu_utils.h -include/tensorflow/core/platform/profile_utils/i_cpu_utils_helper.h -include/tensorflow/core/platform/protobuf.h -include/tensorflow/core/platform/protobuf_internal.h -include/tensorflow/core/platform/ram_file_system.h -include/tensorflow/core/platform/random.h -include/tensorflow/core/platform/raw_coding.h -include/tensorflow/core/platform/refcount.h -include/tensorflow/core/platform/regexp.h -include/tensorflow/core/platform/resource.h -include/tensorflow/core/platform/resource_loader.h -include/tensorflow/core/platform/retrying_file_system.h -include/tensorflow/core/platform/retrying_utils.h -include/tensorflow/core/platform/rocm.h -include/tensorflow/core/platform/rocm_rocdl_path.h -include/tensorflow/core/platform/scanner.h -include/tensorflow/core/platform/setround.h -include/tensorflow/core/platform/snappy.h -include/tensorflow/core/platform/stack_frame.h -include/tensorflow/core/platform/stacktrace.h -include/tensorflow/core/platform/stacktrace_handler.h -include/tensorflow/core/platform/status.h -include/tensorflow/core/platform/status_matchers.h -include/tensorflow/core/platform/statusor.h -include/tensorflow/core/platform/str_util.h -include/tensorflow/core/platform/strcat.h -include/tensorflow/core/platform/stream_executor.h -include/tensorflow/core/platform/stream_executor_no_cuda.h -include/tensorflow/core/platform/stringpiece.h -include/tensorflow/core/platform/stringprintf.h -include/tensorflow/core/platform/strong_hash.h -include/tensorflow/core/platform/subprocess.h -include/tensorflow/core/platform/tensor_coding.h -include/tensorflow/core/platform/tensor_float_32_utils.h -include/tensorflow/core/platform/test.h -include/tensorflow/core/platform/test_benchmark.h -include/tensorflow/core/platform/thread_annotations.h -include/tensorflow/core/platform/threadpool.h -include/tensorflow/core/platform/threadpool_interface.h -include/tensorflow/core/platform/threadpool_options.h -include/tensorflow/core/platform/tracing.h -include/tensorflow/core/platform/tstring.h -include/tensorflow/core/platform/types.h -include/tensorflow/core/platform/unbounded_work_queue.h -include/tensorflow/core/profiler/profiler_options.pb.h -include/tensorflow/core/profiler/protobuf/xplane.pb.h -include/tensorflow/core/protobuf/bfc_memory_map.pb.h -include/tensorflow/core/protobuf/cluster.pb.h -include/tensorflow/core/protobuf/composite_tensor_variant.pb.h -include/tensorflow/core/protobuf/config.pb.h -include/tensorflow/core/protobuf/control_flow.pb.h -include/tensorflow/core/protobuf/core_platform_payloads.pb.h -include/tensorflow/core/protobuf/data_service.pb.h -include/tensorflow/core/protobuf/debug.pb.h -include/tensorflow/core/protobuf/debug_event.pb.h -include/tensorflow/core/protobuf/device_filters.pb.h -include/tensorflow/core/protobuf/device_properties.pb.h -include/tensorflow/core/protobuf/error_codes.pb.h -include/tensorflow/core/protobuf/fingerprint.pb.h -include/tensorflow/core/protobuf/meta_graph.pb.h -include/tensorflow/core/protobuf/named_tensor.pb.h -include/tensorflow/core/protobuf/queue_runner.pb.h -include/tensorflow/core/protobuf/remote_tensor_handle.pb.h -include/tensorflow/core/protobuf/rewriter_config.pb.h -include/tensorflow/core/protobuf/rpc_options.pb.h -include/tensorflow/core/protobuf/saved_model.pb.h -include/tensorflow/core/protobuf/saved_object_graph.pb.h -include/tensorflow/core/protobuf/saver.pb.h -include/tensorflow/core/protobuf/service_config.pb.h -include/tensorflow/core/protobuf/snapshot.pb.h -include/tensorflow/core/protobuf/status.pb.h -include/tensorflow/core/protobuf/struct.pb.h -include/tensorflow/core/protobuf/tensor_bundle.pb.h -include/tensorflow/core/protobuf/tensorflow_server.pb.h -include/tensorflow/core/protobuf/tpu/optimization_parameters.pb.h -include/tensorflow/core/protobuf/tpu/tpu_embedding_configuration.pb.h -include/tensorflow/core/protobuf/trackable_object_graph.pb.h -include/tensorflow/core/protobuf/transport_options.pb.h -include/tensorflow/core/protobuf/verifier_config.pb.h -include/tensorflow/core/public/session.h -include/tensorflow/core/public/session_options.h -include/tensorflow/core/public/version.h -include/tensorflow/core/tpu/ops/tpu_embedding_ops.h -include/tensorflow/core/tpu/ops/tpu_embedding_shape_util.h -include/tensorflow/core/tpu/tpu_embedding_optimization_parameters_utils.h -include/tensorflow/core/tpu/tpu_embedding_output_layout_utils.h -include/tensorflow/core/transforms/cf_sink/pass.h -include/tensorflow/core/transforms/consolidate_attrs/pass.h -include/tensorflow/core/transforms/const_dedupe_hoist/pass.h -include/tensorflow/core/transforms/constant_folding/pass.h -include/tensorflow/core/transforms/cse/pass.h -include/tensorflow/core/transforms/drop_unregistered_attribute/pass.h -include/tensorflow/core/transforms/eliminate_passthrough_iter_args/pass.h -include/tensorflow/core/transforms/func_to_graph/func_to_graph.h -include/tensorflow/core/transforms/func_to_graph/pass.h -include/tensorflow/core/transforms/functional_to_region/impl.h -include/tensorflow/core/transforms/functional_to_region/pass.h -include/tensorflow/core/transforms/graph_compactor/pass.h -include/tensorflow/core/transforms/graph_to_func/graph_to_func.h -include/tensorflow/core/transforms/graph_to_func/pass.h -include/tensorflow/core/transforms/legacy_call/pass.h -include/tensorflow/core/transforms/pass_registration.h -include/tensorflow/core/transforms/passes.h.inc -include/tensorflow/core/transforms/region_to_functional/impl.h -include/tensorflow/core/transforms/region_to_functional/pass.h -include/tensorflow/core/transforms/remapper/pass.h -include/tensorflow/core/transforms/remapper/pdll/MklPDLLPatterns.h.inc -include/tensorflow/core/transforms/remapper/remapping_helper.h -include/tensorflow/core/transforms/shape_inference/pass.h -include/tensorflow/core/transforms/toposort/pass.h -include/tensorflow/core/transforms/utils/eval_utils.h -include/tensorflow/core/transforms/utils/op_cat_helper.h -include/tensorflow/core/transforms/utils/pdll/PDLLUtils.h.inc -include/tensorflow/core/transforms/utils/pdll/utils.h -include/tensorflow/core/transforms/utils/utils.h -include/tensorflow/core/util/activation_mode.h -include/tensorflow/core/util/batch_util.h -include/tensorflow/core/util/bcast.h -include/tensorflow/core/util/command_line_flags.h -include/tensorflow/core/util/debug_data_dumper.h -include/tensorflow/core/util/debug_events_writer.h -include/tensorflow/core/util/determinism.h -include/tensorflow/core/util/device_name_utils.h -include/tensorflow/core/util/dump_graph.h -include/tensorflow/core/util/einsum_op_util.h -include/tensorflow/core/util/env_var.h -include/tensorflow/core/util/equal_graph_def.h -include/tensorflow/core/util/event.pb.h -include/tensorflow/core/util/events_writer.h -include/tensorflow/core/util/example_proto_fast_parsing.h -include/tensorflow/core/util/example_proto_helper.h -include/tensorflow/core/util/exec_on_stall.h -include/tensorflow/core/util/gpu_cuda_alias.h -include/tensorflow/core/util/gpu_device_functions.h -include/tensorflow/core/util/gpu_kernel_helper.h -include/tensorflow/core/util/gpu_launch_config.h -include/tensorflow/core/util/guarded_philox_random.h -include/tensorflow/core/util/managed_stack_trace.h -include/tensorflow/core/util/matmul_autotune.h -include/tensorflow/core/util/matmul_bcast.h -include/tensorflow/core/util/memmapped_file_system.h -include/tensorflow/core/util/memmapped_file_system.pb.h -include/tensorflow/core/util/memmapped_file_system_writer.h -include/tensorflow/core/util/mirror_pad_mode.h -include/tensorflow/core/util/mkl_threadpool.h -include/tensorflow/core/util/mkl_util.h -include/tensorflow/core/util/onednn_env_vars.h -include/tensorflow/core/util/overflow.h -include/tensorflow/core/util/padding.h -include/tensorflow/core/util/permutation_input_iterator.h -include/tensorflow/core/util/permutation_output_iterator.h -include/tensorflow/core/util/port.h -include/tensorflow/core/util/presized_cuckoo_map.h -include/tensorflow/core/util/quantization/uniform_quant_ops_attr.pb.h -include/tensorflow/core/util/quantization/uniform_quant_ops_params.h -include/tensorflow/core/util/ragged_to_dense_util.h -include/tensorflow/core/util/ragged_to_dense_util_common.h -include/tensorflow/core/util/reffed_status_callback.h -include/tensorflow/core/util/saved_tensor_slice.pb.h -include/tensorflow/core/util/saved_tensor_slice_util.h -include/tensorflow/core/util/sparse/dim_comparator.h -include/tensorflow/core/util/sparse/group_iterator.h -include/tensorflow/core/util/sparse/sparse_tensor.h -include/tensorflow/core/util/stat_summarizer.h -include/tensorflow/core/util/stat_summarizer_options.h -include/tensorflow/core/util/stats_calculator.h -include/tensorflow/core/util/stream_executor_util.h -include/tensorflow/core/util/strided_slice_op.h -include/tensorflow/core/util/tensor_bundle/byte_swap_array.h -include/tensorflow/core/util/tensor_bundle/byte_swap_tensor.h -include/tensorflow/core/util/tensor_format.h -include/tensorflow/core/util/tensor_ops_util.h -include/tensorflow/core/util/tensor_slice_reader.h -include/tensorflow/core/util/tensor_slice_reader_cache.h -include/tensorflow/core/util/tensor_slice_set.h -include/tensorflow/core/util/tensor_slice_util.h -include/tensorflow/core/util/tensor_slice_writer.h -include/tensorflow/core/util/test_log.pb.h -include/tensorflow/core/util/transform_output_iterator.h -include/tensorflow/core/util/use_cudnn.h -include/tensorflow/core/util/util.h -include/tensorflow/core/util/work_sharder.h -include/tensorflow/core/util/xla_config_registry.h -include/tensorflow/core/util/zen_util.h -include/tensorflow/lite/kernels/shim/op_kernel.h -include/tensorflow/lite/kernels/shim/shape.h -include/tensorflow/lite/kernels/shim/status_macros.h -include/tensorflow/lite/kernels/shim/tensor_view.h -include/tensorflow/lite/kernels/shim/tf_op_shim.h -include/tensorflow/lite/kernels/shim/tf_tensor_view.h -include/tensorflow/tsl/c/tsl_status.h -include/tensorflow/tsl/c/tsl_status_helper.h -include/tensorflow/tsl/c/tsl_status_internal.h -include/tensorflow/tsl/framework/allocator.h -include/tensorflow/tsl/framework/allocator_registry.h -include/tensorflow/tsl/framework/allocator_retry.h -include/tensorflow/tsl/framework/bfc_allocator.h -include/tensorflow/tsl/framework/cancellation.h -include/tensorflow/tsl/framework/device_id.h -include/tensorflow/tsl/framework/device_id_manager.h -include/tensorflow/tsl/framework/device_type.h -include/tensorflow/tsl/framework/fixedpoint_types.h -include/tensorflow/tsl/framework/numeric_types.h -include/tensorflow/tsl/framework/shared_counter.h -include/tensorflow/tsl/framework/tracking_allocator.h -include/tensorflow/tsl/framework/type_traits.h -include/tensorflow/tsl/lib/core/bitmap.h -include/tensorflow/tsl/lib/core/bits.h -include/tensorflow/tsl/lib/core/status_test_util.h -include/tensorflow/tsl/lib/gtl/compactptrset.h -include/tensorflow/tsl/lib/gtl/flatmap.h -include/tensorflow/tsl/lib/gtl/flatrep.h -include/tensorflow/tsl/lib/gtl/flatset.h -include/tensorflow/tsl/lib/gtl/inlined_vector.h -include/tensorflow/tsl/lib/gtl/int_type.h -include/tensorflow/tsl/lib/gtl/iterator_range.h -include/tensorflow/tsl/lib/gtl/map_util.h -include/tensorflow/tsl/lib/gtl/subtle/map_traits.h -include/tensorflow/tsl/lib/hash/crc32c.h -include/tensorflow/tsl/lib/histogram/histogram.h -include/tensorflow/tsl/lib/io/block.h -include/tensorflow/tsl/lib/io/block_builder.h -include/tensorflow/tsl/lib/io/buffered_inputstream.h -include/tensorflow/tsl/lib/io/cache.h -include/tensorflow/tsl/lib/io/compression.h -include/tensorflow/tsl/lib/io/format.h -include/tensorflow/tsl/lib/io/inputbuffer.h -include/tensorflow/tsl/lib/io/inputstream_interface.h -include/tensorflow/tsl/lib/io/iterator.h -include/tensorflow/tsl/lib/io/proto_encode_helper.h -include/tensorflow/tsl/lib/io/random_inputstream.h -include/tensorflow/tsl/lib/io/record_reader.h -include/tensorflow/tsl/lib/io/record_writer.h -include/tensorflow/tsl/lib/io/snappy/snappy_compression_options.h -include/tensorflow/tsl/lib/io/snappy/snappy_inputbuffer.h -include/tensorflow/tsl/lib/io/snappy/snappy_inputstream.h -include/tensorflow/tsl/lib/io/snappy/snappy_outputbuffer.h -include/tensorflow/tsl/lib/io/table.h -include/tensorflow/tsl/lib/io/table_builder.h -include/tensorflow/tsl/lib/io/table_options.h -include/tensorflow/tsl/lib/io/two_level_iterator.h -include/tensorflow/tsl/lib/io/zlib_compression_options.h -include/tensorflow/tsl/lib/io/zlib_inputstream.h -include/tensorflow/tsl/lib/io/zlib_outputbuffer.h -include/tensorflow/tsl/lib/math/math_util.h -include/tensorflow/tsl/lib/monitoring/cell_reader.h -include/tensorflow/tsl/lib/monitoring/collected_metrics.h -include/tensorflow/tsl/lib/monitoring/collection_registry.h -include/tensorflow/tsl/lib/monitoring/counter.h -include/tensorflow/tsl/lib/monitoring/gauge.h -include/tensorflow/tsl/lib/monitoring/metric_def.h -include/tensorflow/tsl/lib/monitoring/percentile_sampler.h -include/tensorflow/tsl/lib/monitoring/sampler.h -include/tensorflow/tsl/lib/monitoring/test_utils.h -include/tensorflow/tsl/lib/monitoring/timed.h -include/tensorflow/tsl/lib/monitoring/types.h -include/tensorflow/tsl/lib/random/distribution_sampler.h -include/tensorflow/tsl/lib/random/exact_uniform_int.h -include/tensorflow/tsl/lib/random/philox_random.h -include/tensorflow/tsl/lib/random/philox_random_test_utils.h -include/tensorflow/tsl/lib/random/random_distributions.h -include/tensorflow/tsl/lib/random/random_distributions_utils.h -include/tensorflow/tsl/lib/random/simple_philox.h -include/tensorflow/tsl/lib/random/weighted_picker.h -include/tensorflow/tsl/lib/strings/proto_serialization.h -include/tensorflow/tsl/platform/abi.h -include/tensorflow/tsl/platform/base64.h -include/tensorflow/tsl/platform/bfloat16.h -include/tensorflow/tsl/platform/blocking_counter.h -include/tensorflow/tsl/platform/byte_order.h -include/tensorflow/tsl/platform/casts.h -include/tensorflow/tsl/platform/cloud/auth_provider.h -include/tensorflow/tsl/platform/cloud/compute_engine_metadata_client.h -include/tensorflow/tsl/platform/cloud/compute_engine_zone_provider.h -include/tensorflow/tsl/platform/cloud/curl_http_request.h -include/tensorflow/tsl/platform/cloud/expiring_lru_cache.h -include/tensorflow/tsl/platform/cloud/file_block_cache.h -include/tensorflow/tsl/platform/cloud/gcs_dns_cache.h -include/tensorflow/tsl/platform/cloud/gcs_file_system.h -include/tensorflow/tsl/platform/cloud/gcs_throttle.h -include/tensorflow/tsl/platform/cloud/google_auth_provider.h -include/tensorflow/tsl/platform/cloud/http_request.h -include/tensorflow/tsl/platform/cloud/oauth_client.h -include/tensorflow/tsl/platform/cloud/ram_file_block_cache.h -include/tensorflow/tsl/platform/cloud/time_util.h -include/tensorflow/tsl/platform/cloud/zone_provider.h -include/tensorflow/tsl/platform/coding.h -include/tensorflow/tsl/platform/context.h -include/tensorflow/tsl/platform/cord.h -include/tensorflow/tsl/platform/cpu_info.h -include/tensorflow/tsl/platform/crash_analysis.h -include/tensorflow/tsl/platform/ctstring.h -include/tensorflow/tsl/platform/ctstring_internal.h -include/tensorflow/tsl/platform/cuda_libdevice_path.h -include/tensorflow/tsl/platform/default/casts.h -include/tensorflow/tsl/platform/default/context.h -include/tensorflow/tsl/platform/default/cord.h -include/tensorflow/tsl/platform/default/dso_loader.h -include/tensorflow/tsl/platform/default/dynamic_annotations.h -include/tensorflow/tsl/platform/default/integral_types.h -include/tensorflow/tsl/platform/default/logging.h -include/tensorflow/tsl/platform/default/mutex.h -include/tensorflow/tsl/platform/default/mutex_data.h -include/tensorflow/tsl/platform/default/notification.h -include/tensorflow/tsl/platform/default/posix_file_system.h -include/tensorflow/tsl/platform/default/stacktrace.h -include/tensorflow/tsl/platform/default/status.h -include/tensorflow/tsl/platform/default/subprocess.h -include/tensorflow/tsl/platform/default/tracing_impl.h -include/tensorflow/tsl/platform/default/unbounded_work_queue.h -include/tensorflow/tsl/platform/demangle.h -include/tensorflow/tsl/platform/denormal.h -include/tensorflow/tsl/platform/dso_loader.h -include/tensorflow/tsl/platform/dynamic_annotations.h -include/tensorflow/tsl/platform/env.h -include/tensorflow/tsl/platform/env_time.h -include/tensorflow/tsl/platform/errors.h -include/tensorflow/tsl/platform/file_statistics.h -include/tensorflow/tsl/platform/file_system.h -include/tensorflow/tsl/platform/file_system_helper.h -include/tensorflow/tsl/platform/fingerprint.h -include/tensorflow/tsl/platform/float8.h -include/tensorflow/tsl/platform/hash.h -include/tensorflow/tsl/platform/host_info.h -include/tensorflow/tsl/platform/human_readable_json.h -include/tensorflow/tsl/platform/init_main.h -include/tensorflow/tsl/platform/intrusive_ptr.h -include/tensorflow/tsl/platform/load_library.h -include/tensorflow/tsl/platform/logger.h -include/tensorflow/tsl/platform/logging.h -include/tensorflow/tsl/platform/macros.h -include/tensorflow/tsl/platform/mem.h -include/tensorflow/tsl/platform/mutex.h -include/tensorflow/tsl/platform/net.h -include/tensorflow/tsl/platform/notification.h -include/tensorflow/tsl/platform/null_file_system.h -include/tensorflow/tsl/platform/numa.h -include/tensorflow/tsl/platform/numbers.h -include/tensorflow/tsl/platform/path.h -include/tensorflow/tsl/platform/platform.h -include/tensorflow/tsl/platform/platform_strings_computed.h -include/tensorflow/tsl/platform/prefetch.h -include/tensorflow/tsl/platform/profile_utils/android_armv7a_cpu_utils_helper.h -include/tensorflow/tsl/platform/profile_utils/clock_cycle_profiler.h -include/tensorflow/tsl/platform/profile_utils/cpu_utils.h -include/tensorflow/tsl/platform/profile_utils/i_cpu_utils_helper.h -include/tensorflow/tsl/platform/protobuf.h -include/tensorflow/tsl/platform/protobuf_compiler.h -include/tensorflow/tsl/platform/ram_file_system.h -include/tensorflow/tsl/platform/random.h -include/tensorflow/tsl/platform/raw_coding.h -include/tensorflow/tsl/platform/refcount.h -include/tensorflow/tsl/platform/regexp.h -include/tensorflow/tsl/platform/resource.h -include/tensorflow/tsl/platform/resource_loader.h -include/tensorflow/tsl/platform/retrying_file_system.h -include/tensorflow/tsl/platform/retrying_utils.h -include/tensorflow/tsl/platform/rocm_rocdl_path.h -include/tensorflow/tsl/platform/scanner.h -include/tensorflow/tsl/platform/setround.h -include/tensorflow/tsl/platform/snappy.h -include/tensorflow/tsl/platform/stack_frame.h -include/tensorflow/tsl/platform/stacktrace.h -include/tensorflow/tsl/platform/stacktrace_handler.h -include/tensorflow/tsl/platform/static_threadlocal.h -include/tensorflow/tsl/platform/status.h -include/tensorflow/tsl/platform/status_matchers.h -include/tensorflow/tsl/platform/status_to_from_proto.h -include/tensorflow/tsl/platform/statusor.h -include/tensorflow/tsl/platform/statusor_internals.h -include/tensorflow/tsl/platform/str_util.h -include/tensorflow/tsl/platform/strcat.h -include/tensorflow/tsl/platform/stringpiece.h -include/tensorflow/tsl/platform/stringprintf.h -include/tensorflow/tsl/platform/subprocess.h -include/tensorflow/tsl/platform/tensor_float_32_utils.h -include/tensorflow/tsl/platform/test.h -include/tensorflow/tsl/platform/test_benchmark.h -include/tensorflow/tsl/platform/thread_annotations.h -include/tensorflow/tsl/platform/threadpool.h -include/tensorflow/tsl/platform/threadpool_interface.h -include/tensorflow/tsl/platform/threadpool_options.h -include/tensorflow/tsl/platform/tracing.h -include/tensorflow/tsl/platform/tstring.h -include/tensorflow/tsl/platform/types.h -include/tensorflow/tsl/platform/unbounded_work_queue.h -include/tensorflow/tsl/profiler/backends/cpu/traceme_recorder.h -include/tensorflow/tsl/profiler/lib/traceme.h -include/tensorflow/tsl/profiler/lib/traceme_encode.h -include/tensorflow/tsl/profiler/protobuf/profiler_options.pb.h -include/tensorflow/tsl/profiler/protobuf/xplane.pb.h -include/tensorflow/tsl/profiler/utils/math_utils.h -include/tensorflow/tsl/profiler/utils/time_utils.h -include/tensorflow/tsl/protobuf/autotuning.pb.h -include/tensorflow/tsl/protobuf/bfc_memory_map.pb.h -include/tensorflow/tsl/protobuf/coordination_config.pb.h -include/tensorflow/tsl/protobuf/distributed_runtime_payloads.pb.h -include/tensorflow/tsl/protobuf/dnn.pb.h -include/tensorflow/tsl/protobuf/error_codes.pb.h -include/tensorflow/tsl/protobuf/histogram.pb.h -include/tensorflow/tsl/protobuf/rpc_options.pb.h -include/tensorflow/tsl/protobuf/status.pb.h -include/tensorflow/tsl/protobuf/test_log.pb.h -include/tensorflow/tsl/util/byte_swap_array.h -include/tensorflow/tsl/util/command_line_flags.h -include/tensorflow/tsl/util/determinism.h -include/tensorflow/tsl/util/device_name_utils.h -include/tensorflow/tsl/util/env_var.h -include/tensorflow/tsl/util/stat_summarizer_options.h -include/tensorflow/tsl/util/stats_calculator.h -include/tensorflow/tsl/util/use_cudnn.h -lib/libtensorflow.so -lib/libtensorflow.so.2 -lib/libtensorflow.so.%%TF_PORT_VERSION%% -lib/libtensorflow_cc.so -lib/libtensorflow_cc.so.2 -lib/libtensorflow_cc.so.%%TF_PORT_VERSION%% -lib/libtensorflow_framework.so -lib/libtensorflow_framework.so.2 -lib/libtensorflow_framework.so.%%TF_PORT_VERSION%% -libdata/pkgconfig/tensorflow.pc -libdata/pkgconfig/tensorflow_cc.pc