Commit Graph

326 Commits

Author SHA1 Message Date
TensorFlower Gardener
1f9f7b4fc1 Merge pull request #53864 from itmo153277:windows-trt
PiperOrigin-RevId: 428533377
Change-Id: I2b29c3c9919edfb46cbbc5382fd29d7647e63a60
2022-02-14 09:41:50 -08:00
Mihai Maruseac
7131c47acb Update cuda version in configure.py.
This is not actually used but to prevent confusion let's bring it up to date

PiperOrigin-RevId: 427769347
Change-Id: I1ebc7797a337b98135ee038bb8c5840c8c7c7b3c
2022-02-10 09:35:48 -08:00
Ivanov Viktor
4a96445808 Enable TensorRT on Windows 2022-02-01 19:44:10 +09:00
A. Unique TensorFlower
8871926b0a Updates TensorFlow Bazel version to the newly released version 5.0.0.
`.bazelversion` specifies the Bazel version that TensorFlow uses. This changelist updates the Bazel version from 4.2.2 to 5.0.0. It also updates the CI environment.

PiperOrigin-RevId: 424897733
Change-Id: Idd427ee8b1fdc8212211fb22c25989cb47350ab4
2022-01-28 10:24:17 -08:00
Deven Desai
d60a2090fd Pass HIP_PLATFORM to bazel build
This PR is to address the TF build failure reported in JIRA ticket:
http://ontrack-internal.amd.com/browse/SWDEV-241967

The valid set of values for the env var HIP_PLATFORM is being updated, and as a consequence `hcc` will no longer a valid value (staring with ROCm 3.7).
For ROCm 3.7, we will need to change the configure.py script such that the env var HIP_PLATFORM=amd is explicitly when invoked with TF_NEED_ROCM=1.

In the meantime (i.e. until we switch to ROCm 3.7), we need to provide a way for passing HIP_PLATFORM to bazel (to help QA in testing ROCm 3.7). This change provides that way.
If the HIP_PLATFORM env var is set in the shell that invokes the "configure.py" script, it will pass it through to bazel.
2022-01-20 13:17:04 -06:00
rui
9cd04f0ce7 build: bump bazel to 4.2.2 2021-12-08 22:10:07 -05:00
A. Unique TensorFlower
18a1dc0ba8 Upgrading Bazel to 4.2.1
PiperOrigin-RevId: 413661728
Change-Id: I9d66a199cea6a0754d321924f51421054107e577
2021-12-02 06:41:31 -08:00
A. Unique TensorFlower
1f19aea323 Updates TensorFlow's Bazel version to 4.0.0.
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 413424007
Change-Id: Iab9246fd0985e27a255db9772d6c1a3c32b265b4
2021-12-01 08:37:52 -08:00
A. Unique TensorFlower
6fdb753000 Updates TensorFlow's Bazel version to 4.0.0.
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 413219594
Change-Id: I7529703ef09099040a48042c896f88a584dc1d32
2021-11-30 12:53:11 -08:00
Itai Zukerman
87462bfac7 Removed "from __future__ import *" lines from Python code.
These are a holdover from the transition from Python 2.* to Python 3.*.

PiperOrigin-RevId: 399530502
Change-Id: I1c8b893fd7f5eeb5eb51b2e2c38c3b73ec5b9903
2021-09-28 14:37:05 -07:00
Cheney-Wang
61cd92116a Update max version of bazel supported by tensorflow to 4.99.0 2021-08-01 20:01:57 -07:00
Cheney-Wang
6bc413a4e9 Update max version of bazel supported by tensorflow to 4.1.0 2021-07-30 01:28:07 -07:00
TensorFlower Gardener
311bd4de33 Merge pull request #50553 from PatriceVignola:fix-configure-bazelisk-windows
PiperOrigin-RevId: 384706651
Change-Id: I6c0f4cb25047a127648aa89e8bb82251054f9769
2021-07-14 08:56:54 -07:00
Patrice Vignola
0051442305
Satisfy pylint warning 2021-06-30 18:42:35 -07:00
Patrice Vignola
ce01058fde
Change bazel_command to bazel_executable 2021-06-30 18:25:59 -07:00
=
abd09806b5 Fix configure.py when using bazelisk on Windows 2021-06-30 17:45:44 -07:00
Reed Wanderman-Milne
2d45d27274 In configure.py, print info on --config=v1 instead of --config=v2.
Explicitly listing --config=v2 incorrectly implied that building for TF2 was not the default.

PiperOrigin-RevId: 381038392
Change-Id: I6400a8edf40a7941d3b5132388d44f7aae698ea5
2021-06-23 08:43:36 -07:00
TensorFlower Gardener
0fc369b1b9 Merge pull request #50297 from ROCmSoftwarePlatform:google_upstream_rocsolver_wrapper
PiperOrigin-RevId: 380234650
Change-Id: I710f59a0a70a7bfb0b775bc8fee54205479a42dd
2021-06-18 12:03:58 -07:00
Deven Desai
1a128d898a set ROCBLAS_TENSILE_LIBPATH when building with --config=rocm
With the integration of rocsolver in the XLA cusolver pass, we need to set the ROCBLAS_TENSILE_LIBPATH env var. This seems to be required by rocsolver (which presumably calls rocblas internally). Not doing so leads to the following error in some of the XLA unit tests

```
test : //tensorflow/compiler/tests:dense_layer_test_gpu                         FAILED in 3 out of 3 in 4.7s

rocBLAS warning: No paths matched /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/compiler/tests/dense_layer_test_gpu.runfiles/org_tensorflow/tensorflow/python/../../_solib_local/_U@local_Uconfig_Urocm_S_Srocm_Crocblas___Uexternal_Slocal_Uconfig_Urocm_Srocm_Srocm_Slib/library/*gfx900*co. Make sure that ROCBLAS_TENSILE_LIBPATH is set correctly.

rocBLAS error: Cannot read /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/compiler/tests/dense_layer_test_gpu.runfiles/org_tensorflow/tensorflow/python/../../_solib_local/_U@local_Uconfig_Urocm_S_Srocm_Crocblas___Uexternal_Slocal_Uconfig_Urocm_Srocm_Srocm_Slib/library/TensileLibrary.dat: No such file or directory

```
2021-06-16 16:44:24 +00:00
TensorFlower Gardener
ce227000bd Merge pull request #48522 from yongtang:no-aws-hdfs
PiperOrigin-RevId: 371807950
Change-Id: Id7e762945f0b5d965865220d213cb297bb565f3e
2021-05-03 17:03:56 -07:00
Yong Tang
12a9cb07c1 Remove AWS/HDFS related options and licenses
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-04-27 13:41:28 +00:00
YoungSeok Yoon
1a0b21e16b Update NDK version to r19c
PiperOrigin-RevId: 367340749
Change-Id: I770ad6efc9b7a4ec822ba7cafd36d73e31daaf8e
2021-04-07 18:54:45 -07:00
TensorFlower Gardener
9e26f3b56a Merge pull request #47775 from alenik01:aarch64_build_patch
PiperOrigin-RevId: 365049267
Change-Id: I839a9fb319ccc347b50defeaabb1c3f1ec3cfb5c
2021-03-25 09:03:00 -07:00
Aleksandr Nikolaev
1e15aa8c83
Merge branch 'master' into aarch64_build_patch 2021-03-19 19:45:25 +00:00
Christian Sigg
dd372ec5e1 Do not write TF_CONFIGURE_IOS to .bazelrc, only use it in ./configure.py.
PiperOrigin-RevId: 363484115
Change-Id: I5fd6186f19d1612ef9fe85a088aa7a72dc45d26d
2021-03-17 12:48:52 -07:00
Christian Sigg
3c58f664ee Enable XLA by default except on Android/iOS.
Previously, XLA was enabled by default with --config=rbe_linux and when running ./configure.

PiperOrigin-RevId: 363433913
Change-Id: I9afa53496a9da2ae29b71a9ef38fc63b90dfba02
2021-03-17 09:20:15 -07:00
Christian Sigg
2683829da9 Remove no longer needed CUDA 11.0 build configs from .bazelrc.
Use --config=avx_{linux,windows} instead of --config=opt in release builds. This is an NFC because release build scripts set build:opt to enable AVX.

PiperOrigin-RevId: 363193986
Change-Id: Ifb0788e29485873e35469d0936c1d33488315870
2021-03-16 09:03:56 -07:00
Aleksandr Nikolaev
06dd30ef98 Update of --config=mkl_aarch64 with Compute Library support
This PR introduces the support of Compute Library for the Arm
Architecture (ACL) as part of Bazel build.

Signed-off-by: Aleksandr Nikolaev <aleksandr.nikolaev@arm.com>
2021-03-12 19:29:51 -05:00
Christian Sigg
6236b83d80 Switch mlir-generated kernel trigger to starlark-defined flag.
Remove TF_ENABLE_MLIR_GENERATED_GPU_KERNELS env trigger in ./configure for ROCm path. It has already been removed for CUDA, and ROCm currently doesn't yet support kernel gen.

PiperOrigin-RevId: 361635637
Change-Id: Id30c7c45a7fe033410457db9c9b8d51e573482b6
2021-03-08 13:12:16 -08:00
Reed Wanderman-Milne
03bd8a34ed Make default PYTHON_LIB_PATH deterministic.
Before, the default PYTHON_LIB_PATH chosen was non-deterministically. This meant if ./configure was rerun and a different PYTHON_LIB_PATH was chosen, bazel would rebuild TF from scratch.

PiperOrigin-RevId: 356731041
Change-Id: Iefdebd0f6bb106a598f77e95cd36df87bb1c5d68
2021-02-10 07:46:50 -08:00
Austin Anderson
b1f946aed5 Shorten find_cuda_config finder
PiperOrigin-RevId: 353905388
Change-Id: Iaeed674c38bc9346d26e4701f413163212217c37
2021-01-26 11:25:32 -08:00
TensorFlower Gardener
f2e78b8b8a Merge pull request #46075 from machineko:master
PiperOrigin-RevId: 353762309
Change-Id: I49f619f914610a14fd189a0ca169f3cb728f118a
2021-01-25 17:11:17 -08:00
Mihai Maruseac
83ba6a37b2 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353139694
Change-Id: If2c4516b5d7fa59d032e9c74fb2a0716b2a4f618
2021-01-21 17:37:25 -08:00
Christian Sigg
0b47d35322 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353029642
Change-Id: I0a8650767f3a69428dcd37badf9a1b1c128d8baf
2021-01-21 09:15:40 -08:00
A. Unique TensorFlower
7e67fdc00c Pass cc_opt_flags to host_copt.
For GPU builds, the host compiler should get these compile flags as well.

PiperOrigin-RevId: 351470659
Change-Id: I8610ac871e370895f9234e3f047e7ee90557db86
2021-01-12 16:26:22 -08:00
Mihai Maruseac
e0a6a8c7e2 No longer compile with -march=native.
Should resolve issue reported in #45744, #45866, #44701 and #45991 as well as multiple other issues from other ecosystem places.

We will patch 2.4 soon and release proper patches.

PiperOrigin-RevId: 350243794
Change-Id: I0aa814dedb44ac3ec992a0a432f117122337023f
2021-01-05 16:37:24 -08:00
machineko
7eb0c7d051 fix path on windows and add better error message for not founding find_cuda_config in working direcotry 2021-01-03 17:14:28 +01:00
machineko
ba3d206884 fix static path for find_cuda_config.py script 2020-12-30 15:28:51 +01:00
Mihai Maruseac
3e9fccb0cb Bump TF's minimum Bazel version to 3.7.2.
Bug fixed: https://github.com/bazelbuild/bazel/issues/3828

We need this because we are working on integrating TF with a different project that should remove the breakages caused by LLVM integration

PiperOrigin-RevId: 348886284
Change-Id: Iad539321f1ba7590e4ee77b93d67eb5401d9fec8
2020-12-23 21:33:56 -08:00
TensorFlower Gardener
5b77c61531 Merge pull request #45456 from ROCmSoftwarePlatform:google_upstream_rocm_remove_rocm_root
PiperOrigin-RevId: 348623263
Change-Id: I62a0648c15584864cbd045a530972ec3158aec9c
2020-12-22 06:19:25 -08:00
Deven Desai
5ef3760234 Removing --action_env=ROCM_ROOT... when building with --config=rocm
When we switched to ROCm 3.3 (first ROCm release with "relocatable ROCm install" support), some parts of the ROCm toolchain relied upon the value of env var ROCM_ROOT to determine the location of the ROCm install dir. This has been fixed, and all of the ROCM toolchain now only uses the ROCM_PATH value.

This commit updates `configure.py` to no longer set ROCM_ROOT, when building with --config=rocm

Related JIRA ticket - http://ontrack-internal.amd.com/browse/SWDEV-226744
2020-12-07 17:44:46 +00:00
YoungSeok Yoon
5a063c275e Migrate TFLite iOS directories out of experimental
PiperOrigin-RevId: 343958075
Change-Id: I4c7736094f1babab288fb57455e29ab4c0c4fa3d
2020-11-23 17:19:01 -08:00
Austin Anderson
9983bb3dee Enable /d2ReducedOptimizeHugeFunctions on Windows by default
This flag was first made available in Visual Studio 16.4, (as of 2020-11-11,
VS is at version 16.8), and can now be considered generally available.

See also #38254

PiperOrigin-RevId: 342158585
Change-Id: Ice96be9a1392313357b314407262a005a2436a4d
2020-11-12 16:45:30 -08:00
TensorFlower Gardener
c2081e9c26 Merge pull request #42870 from Intel-tensorflow:remove-ngraph
PiperOrigin-RevId: 338788931
Change-Id: Ib754711835eb01c1ae928dde72e56cd3a45aa4e2
2020-10-23 20:30:08 -07:00
Abhishek Kulkarni
a772f35ae7 Remove nGraph build support
This PR removes now-deprecated direct integration of nGraph in TF. nGraph
integration is still available via the external ngraph-bridge at:
https://github.com/tensorflow/ngraph-bridge/

or via `pip install ngraph-tensorflow-bridge`.

Signed-off-by: Abhishek Kulkarni <abhishek.kulkarni@intel.com>
2020-10-21 16:34:37 -07:00
Alexander Grund
92214e9d2c
Introduce PROTOBUF_INCLUDE_PATH
This avoids having to install all dependencies into the same folder
Default set so existing behavior is not changed
2020-10-19 15:35:43 +02:00
cfRod
1bcd2dadc6 Add oneDNN-aarch64 reference build option
Adds build option and supporting macros for oneDNN-reference builds on Aarch64.
For now, oneDNN will link to GCC's libgomp.so. See, related issue: https://github.com/tensorflow/tensorflow/issues/42858

Signed-off-by: cfRod <crefeda.rodrigues@arm.com>
2020-10-08 17:23:11 +01:00
Sanjoy Das
3cbb507689 Delete SYCL support
See discussion here:
https://github.com/tensorflow/tensorflow/issues/41809#issuecomment-688021592

Fixes #41809.

PiperOrigin-RevId: 331808169
Change-Id: Ib0861cf250c92c20f0e8a22adce89a4dc4d3548a
2020-09-15 11:21:47 -07:00
TensorFlower Gardener
15bb15f7ca Merge pull request #41515 from ROCmSoftwarePlatform:google-upstream-rocm-mlir-integration-prototype
PiperOrigin-RevId: 329868219
Change-Id: I09132dcdaca4653924d7003b878eaca9f1f9971a
2020-09-03 00:43:12 -07:00
Deven Desai
4c0b4a8124 Update configure.py to provide a way to enable MLIR generated gpu kernels on the ROCm platform.
MLIR generated gpu kernels will continue to be disabled by default.

This commit provides a way to enable them, if conifugre.py is run with the env `TF_ENABLE_MLIR_GENERATED_GPU_KERNELS=1`
2020-08-26 13:50:01 +00:00