Commit Graph

394 Commits

Author SHA1 Message Date
TensorFlower Gardener
465d3aaf56 Merge pull request #58356 from Intel-tensorflow:bani/win_tf2.11_warn_onlycpu
PiperOrigin-RevId: 484832624
2022-10-30 00:45:48 -07:00
Banikumar Maiti (Intel)
ed3ba5632a Show warning for Windows GPU build 2022-10-28 10:33:15 -07:00
Maxiwell S. Garcia
704a7e70e4 ppc64le: set 'gold' linker in the configure.py to fix ppc build
The commit 3484416b49 removed the
'rules_cc_toolchains' call from the bazel configuration. After that,
the build process is calling 'lld' to link several binaries, causing
problems on ppc64le arch.

This patch set the 'gold' linker as default in the configure script.
2022-07-26 14:52:29 -05:00
Jinzhe Zeng
b3a8fdbcb7
resolve gcc_host_compiler_path in a symlink directory
Resolves a missing dependency declarations error, when gcc_host_compiler_path is in a symlink directory resolving to other directories.
2022-06-04 19:06:58 -04:00
TensorFlower Gardener
5547c09887 Merge pull request #55670 from maxiwell:eigen-enable-dynamic-dispatch
PiperOrigin-RevId: 451011359
2022-05-25 14:13:59 -07:00
Maxiwell S. Garcia
b3428b7e56 ppc64le: eigen: using the new flag to enable MMA dynamic dispatch if ld >= 2.35
Eigen removed the dynamic dispatch by default. Now, it's necessary to add
EIGEN_ALTIVEC_ENABLE_MMA_DYNAMIC_DISPATCH=1 to enable this feature if
the linker version is 2.35 or greater.

7b10795e39
591906477b
2022-05-19 13:27:18 -05:00
Mihai Maruseac
ed066a9c48 Delete unused set_host_c_compiler.
PiperOrigin-RevId: 448290346
2022-05-12 11:07:50 -07:00
Mihai Maruseac
9882ba6c93 Delete unused delete_host_cxx_compiler
PiperOrigin-RevId: 448113581
2022-05-11 16:49:19 -07:00
Mihai Maruseac
1d3055ba32 Delete unused is_cuda_compatible
PiperOrigin-RevId: 448107102
2022-05-11 16:13:19 -07:00
Mihai Maruseac
2105b3c93d Delete unused reformat_version_sequence.
PiperOrigin-RevId: 448082558
2022-05-11 14:19:02 -07:00
Mihai Maruseac
8161daae34 Remove unused sed_in_place.
PiperOrigin-RevId: 448048817
2022-05-11 11:54:40 -07:00
Mihai Maruseac
691aa14211 Remove unused function in configure.py
PiperOrigin-RevId: 448039384
2022-05-11 11:16:39 -07:00
Mihai Maruseac
4665c2b80f Remove min/max bounds on bazel version in configure.py.
These checks were useful when we used to set the bazel version in the CI scripts but now that we have `.bazelversion` synced in the repo any user using Bazelisk or a recent version of Bazel will automatically get the exact Bazel version that we are using. Hence, this step in `configure.py` is no longer needed.

Furthermore, we are working on completely removing the need to run `configure.py`, at least for the vast majority of users.

PiperOrigin-RevId: 448033791
2022-05-11 11:00:11 -07:00
Mihai Maruseac
c39f19c52a Use rolling release for Bazel.
Since TF is in the progress of migrating to `cc_shared_library`, we are stress testing Bazel and uncovering a large number of bugs. We are in the state where some TF builds are broken with cascading failures and there is a long wait until a new LTS Bazel release. So, we're switching to rolling releases in an attempt to fix the builds.

However, if this causes more failures than it resolves, we will need to return back to stable releases.

PiperOrigin-RevId: 445259819
2022-04-28 15:14:55 -07:00
Mihai Maruseac
94da9ab2f3
Update configure.py 2022-03-25 09:18:25 -07:00
gtiHibGele
b7224b48dc
Update configure.py
Co-authored-by: Mihai Maruseac <mihai.maruseac@gmail.com>
2022-03-25 12:16:54 -04:00
gtiHibGele
8f34926a78
Update configure.py 2022-03-17 14:05:31 -04:00
gtiHibGele
068c90d5ce
Update Configure.py @55218
Update Configure.py @55218, Last commit failed at CICD for seemly unrelated issue. This patch is just to re run the same CICD and validate
2022-03-17 12:28:23 -04:00
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
hedgehog91
668eaa2b12
change_exit_code_when_bazel_none 2020-06-24 21:36:46 +03:00
Jakob Buchgraber
d2b02580e6 Update TF bazel version requirements.
PiperOrigin-RevId: 315483879
Change-Id: I4be29ffa3c425f01c28dc8c95250209a2b0bada4
2020-06-09 08:04:07 -07:00
Amit Patankar
639d9373d3 Fix a typo in configure.
PiperOrigin-RevId: 313914447
Change-Id: Id55394dd29a51e96e448117c7435f057fe7b92ba
2020-05-30 01:13:30 -07:00
Amit Patankar
a5393e9046 Support the new CUDA compute capability options in configure.
sm_35,sm_50,sm_60,compute_70

PiperOrigin-RevId: 313660333
Change-Id: I08b6ccd62fac60645147c30c434055b4e608b190
2020-05-28 14:36:24 -07:00
George Karpenkov
07898e752c Provide a more informative error message when the bazel version check fails
Currently, if the version check fails, the error message is:

```
subprocess.CalledProcessError: Command '['bazel', '--batch', '--bazelrc=/dev/null', 'version']' returned non-zero exit status 1.
```

After this patch, it becomes:

```
Error checking bazel version:  ERROR: The project you're trying to build requires Bazel 3.0.0 (specified in /usr/local/google/home/cheshire/code/opensource/docker_tf/tensorflow/.bazelversion), but it wasn't found in /usr/bin.

You can install the required Bazel version via apt:
  sudo apt update && sudo apt install bazel-3.0.0
```

PiperOrigin-RevId: 312520687
Change-Id: I41523f7defa3db10aa34b6b313d6b65c792b2020
2020-05-20 11:31:08 -07:00
Jared Duke
1f530076d1 Fix TFLite builds on Windows/MacOS
Avoid using `--enable_platform_specific_config` when cross-compiling for
iOS/Android, as this pulls in host build flags, which may not be
appropriate (e.g., when cross-compiling for Android on a Windows host).

Also fix an issue when building tensorflowlite_c for iOS.

Fixes #38525.

PiperOrigin-RevId: 311767770
Change-Id: I80b817fd89a6889dc78be50f1def8b899f091cb6
2020-05-15 11:26:35 -07:00
TensorFlower Gardener
9784cf282e Merge pull request #39399 from marload:patch-0511-01
PiperOrigin-RevId: 311208506
Change-Id: Ic4d22e1b01554cfe7eaab759ecbc0c2cadc3c002
2020-05-12 15:05:26 -07:00
marload
c6d2369174 Refactoring: Format String -> Format Method 2020-05-11 15:37:57 +09:00
A. Unique TensorFlower
56a99d6c28 configure.py: Simplify bazel version check
Use `bazel --version` instead of `bazel --batch version`.

`bazel --batch` fails on Windows with a "command line too long" error, if user's environment variable is too large.
Example: https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/496#f5fbd8db-7421-43f4-a018-555af9856be4

`bazel --version` can also print the Bazel version without starting Bazel server, it's even faster than `bazel --batch version`.

PiperOrigin-RevId: 310570885
Change-Id: Iafc4c90f0ff57610e5f77bee230e81e78d9f1289
2020-05-08 09:31:43 -07:00
TensorFlower Gardener
05fdea64d1 Merge pull request #38654 from ROCmSoftwarePlatform:google_upstream_rocm_switch_to_rocm33
PiperOrigin-RevId: 308160300
Change-Id: Icd6e71c7bbfe22e0386ff7ebfdc926cf20b3b420
2020-04-23 17:12:38 -07:00
Deven Desai
f0bf514df3 [ROCm] Updating Dockerfile.rocm / CI scripts to use ROCm 3.3 2020-04-20 14:51:13 +00:00
Gunhan Gulsoy
2f65c2468d Update TF bazel version requirements.
PiperOrigin-RevId: 306572687
Change-Id: I49448295cdd088eb114a7d518dd0db1822f2d7a6
2020-04-14 21:11:14 -07:00
Taehee Jeong
3b792decf2 Rename Core ML delegate's BUILD.apple to BUILD
PiperOrigin-RevId: 306165129
Change-Id: Ife85058c65ef5452c3d97f7fc1b7f0670b624474
2020-04-12 19:27:02 -07:00
Taehee Jeong
0666305b11 Opensource Core ML delegate
protobuf version is upgraded to 3.9.2

PiperOrigin-RevId: 304317221
Change-Id: I1e70080753fa6df588885eeea1cc84dcd8557097
2020-04-01 20:34:33 -07:00
TensorFlower Gardener
2fa7369fe9 Merge pull request #36673 from wdirons:fix_gpu_test_in_configure
PiperOrigin-RevId: 302039094
Change-Id: Ie5980e0a8feda85bd6803bd316e5a59793891515
2020-03-20 09:28:07 -07:00
Gunhan Gulsoy
e733b05fc5 Fix the XLA disabling mechanism in configure.py
Environment variables are strings, not integers.'0' does not evaluate to false.

PiperOrigin-RevId: 297916971
Change-Id: I9df143690b16a181fa5f0c4a60ac2f944b396672
2020-02-28 13:30:38 -08:00
Gunhan Gulsoy
f4edbd9a43 Partial rollback of 296819597
Remove the prompt for XLA in configure. But still allow users to build without it for platforms like raspberry pi.

PiperOrigin-RevId: 297713015
Change-Id: I7a12b073389c1cf3d265e00952f28e98470c80ff
2020-02-27 16:11:19 -08:00
Gunhan Gulsoy
9f8fe8d154 Remove the prompt to check if XLA should be enabled. It is always enabled now.
PiperOrigin-RevId: 296819597
Change-Id: Iddf49190d6f2fa7572e305fb6925cf31ee6fc7e6
2020-02-23 22:57:13 -08:00
Jonathan DEKHTIAR
e23ef990f9
Fix Bazel not building anymore with the commit 09fe958f 2020-02-19 17:32:07 -08:00
Brian Zhao
daec6e0af0 Upgrading bazel version to 2.0.0
This is necessary to start using bazel's experimental cc_shared_library support.
This change is part of the refactoring described in https://github.com/tensorflow/community/pull/179

PiperOrigin-RevId: 294736824
Change-Id: I8d13c71545cf2f2edd47818b40fa413e3e9c3254
2020-02-12 13:12:01 -08:00
William D. Irons
391b21e9c2 Fix gpu test when running the ./configure script
Today if you run the ./configure script without setting the
variable TF_NEED_CUDA, in the resulting .tf_configure.bazelrc
you get:

test:v1 --test_tag_filters=-benchmark-test,-no_oss,-gpu,-oss_serial
test:v1 --build_tag_filters=-benchmark-test,-no_oss,-gpu
test:v2 --test_tag_filters=-benchmark-test,-no_oss,-gpu,-oss_serial,-v1only
test:v2 --build_tag_filters=-benchmark-test,-no_oss,-gpu,-v1only

This is incorrect because -gpu means exclude the gpu test. It should be
-no_gpu.

Debugging the problem I found when the code was switched from using
os.env to using environ_cp, that the method system_specific_test_config
was never updated. So unless the environment variable TF_NEED_CUDA was
set before running ./configure then answering yes for CUDA would not
select the correct test filter for gpus.

With this change the test filters are correct:

test:v1 --test_tag_filters=-benchmark-test,-no_oss,-no_gpu,-oss_serial
test:v1 --build_tag_filters=-benchmark-test,-no_oss,-no_gpu
test:v2 --test_tag_filters=-benchmark-test,-no_oss,-no_gpu,-oss_serial,-v1only
test:v2 --build_tag_filters=-benchmark-test,-no_oss,-no_gpu,-v1only
2020-02-11 22:29:20 +00:00
Ahti Kitsik
1dc9a3cd08
Docstring link fix
Current https://groups.google.com/a/tensorflow.org/g/build/c/SsW98Eo7l3o link in docstring is broken, https://groups.google.com/a/tensorflow.org/d/topic/build/SsW98Eo7l3o/discussion works better.

Originally added by 6d7c376df8
2020-01-22 11:32:48 +01:00
Brian Zhao
feb0c7b4bb Upgrading bazel version to 1.2.1
This is necessary to start using bazel's experimental cc_shared_library support.
This change is part of the refactoring described in https://github.com/tensorflow/community/pull/179

PiperOrigin-RevId: 288808507
Change-Id: Ie78fb4ff8dad128ebef280037cce4d3c4f42addc
2020-01-08 17:33:27 -08:00
TensorFlower Gardener
839a4363df Merge pull request #33025 from wallysslima:master
PiperOrigin-RevId: 287527549
Change-Id: I6bcadc3969f47f900ea142c565dd65def4b99ada
2019-12-30 02:23:29 -08:00
Wallyss Lima
484304ef6f move stderr to /dev/null get_python_path in configure.py:167 to prevent python traceback when run site.getsitepackages 2019-12-19 13:41:15 -03:00
Wallyss Lima
7237104825 add stderr parameter to run_shell at configure.py:149 and make sys.stdout as default 2019-12-19 13:41:15 -03:00
TensorFlower Gardener
26a1de3eb8 Merge pull request #34978 from frreiss:issue-v1only-disable
PiperOrigin-RevId: 285972783
Change-Id: I5a36ba4909b8c312fabe591e8107f1b1c7fd45f9
2019-12-17 07:11:48 -08:00
frreiss
3adf41707a Disable tests tagged 'v1only' on v2 builds
Disable tests tagged 'v1only' on v2 builds

Add missing '-'
2019-12-09 15:29:29 -08:00
Christian Sigg
8dff6b98ef Update the TF CUDA version to 10.1
PiperOrigin-RevId: 284525603
Change-Id: Idfbc5538631196bb537211052da843deeba93435
2019-12-09 04:09:35 -08:00
Gunhan Gulsoy
1868de838d Use bazel's platform specific config options to switch between compiler
options.

Documentation:
https://docs.bazel.build/versions/master/command-line-reference.html#flag--enable_platform_specific_config
PiperOrigin-RevId: 283405622
Change-Id: I38709761dcc80c68a3ae3b301a3bc15ab5a43d51
2019-12-02 14:08:09 -08:00
Gunhan Gulsoy
aaea541431 Bump minimum bazel version requirement to 1.0.0
PiperOrigin-RevId: 283114685
Change-Id: Ie7160112ff379fcc7e4c4794db20f4eb24f5f8df
2019-11-30 13:23:11 -08:00
TensorFlower Gardener
e515908529 Merge pull request #34468 from frreiss:issue-tag-filters
PiperOrigin-RevId: 281976830
Change-Id: I425423da7e6e1c94ca2789ccab1a5d13bba1e594
2019-11-22 11:47:38 -08:00