Commit Graph

282 Commits

Author SHA1 Message Date
Mihai Maruseac
0b8aa317a2 Remove -march=native. Testing for #45744, #45866, #44701 2021-01-05 11:47:04 -08:00
Alexander Grund
58b31bfd38 Introduce PROTOBUF_INCLUDE_PATH
This avoids having to install all dependencies into the same folder
Default set so existing behavior is not changed
2020-11-03 00:22:21 -08: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
frreiss
bab7d7d78c Address review comments 2019-11-21 10:52:55 -08:00
frreiss
8b013a7eed Make test tag filters behave as intended 2019-11-20 11:36:27 -08:00
Austin Anderson
6d7c376df8 Support /d2ReducedOptimizeHugeFunctions on Windows when TF_VC_VERSION=16.4
See https://groups.google.com/a/tensorflow.org/g/build/c/SsW98Eo7l3o

PiperOrigin-RevId: 281412015
Change-Id: Icdea77fe0677ad6b0e1c5cf8f053a81a14cb402e
2019-11-19 18:56:30 -08:00
Jared Duke
a1309f4e3c Switch to NDK API level 21
PiperOrigin-RevId: 280766624
Change-Id: I8500b69a5f6bebbeb0aafcf5744f5be5944738b9
2019-11-15 17:13:47 -08:00
A. Unique TensorFlower
7ed383001f Update the TF CUDA version to 10.1
PiperOrigin-RevId: 280237880
Change-Id: Idb9ea64c73746e18b372f3c3a0e56b8b64d53b06
2019-11-13 11:34:47 -08:00
A. Unique TensorFlower
a5f9bcd644 Upgrade Bazel to 1.1.0
PiperOrigin-RevId: 279959797
Change-Id: Ic5785033bc735d388f368aebee891160781fb193
2019-11-12 07:20:02 -08:00
YoungSeok Yoon
7089aaa395 Experimental C API and framework build target for the benchmark tool
PiperOrigin-RevId: 279883195
Change-Id: I3212b33b2be4e97cf6f50e9fb25756988d5fad7e
2019-11-11 21:40:36 -08:00
A. Unique TensorFlower
72d0facc37 Update ROCm toolchain configuration
1. Rewrote hipcc_cc_toolchain_config.bzl.tpl.oss based on third_party/bazel/tools/cpp/unix_cc_toolchain_config.bzl

2. Cleaned up non-Linux stuff in toolchain configuration

3. Added support for parameter file in the compiler wrapper script

4. Re-generated preconfigured toolchain by third_party/tensorflow/third_party/toolchains/preconfig/generate/update.sh  ubuntu16.04-py3_opt-gcc5-rocm

5. Bumped min Bazel version to 0.27.1 because toolchain configure requires newer Bazel

6. Removed --noincompatible_do_not_split_linking_cmdline

PiperOrigin-RevId: 278844463
Change-Id: I477ec5b44e6c634db7c6d65d02b3e307f0be338b
2019-11-06 06:28:22 -08:00
TensorFlower Gardener
207a18a37e Merge pull request #32466 from wdirons:undo_omp_num_threads_ppc64le
PiperOrigin-RevId: 277333473
Change-Id: I67f444a6be87dc292a574b4ba0de1a720d275438
2019-10-29 12:08:15 -07:00
Guangda Lai
faa93acb0c Change the default TensorRT version to 6.
PiperOrigin-RevId: 276359913
Change-Id: I1982e83d5d214375cdf153a093a003c68bdcedea
2019-10-23 15:26:38 -07:00
Austin Anderson
58b236b235 Allow functions that prompt for a path to resolve symbolic links.
This may be valuable to enable globally (and disable via a user flag), but for now I've enabled it for one specific call which was causing an error in #32776.

Resolves #32776.

PiperOrigin-RevId: 276094797
Change-Id: I6f007a50311c00885cf0db2d291f4d00294d53d7
2019-10-22 11:11:52 -07:00
A. Unique TensorFlower
cb677d1cc1 Upgrade Bazel to 0.29.1
Besides upgrading the Bazel version, we also refactored all build scripts to use rbe options in .bazelrc file.
In order to migrate for https://github.com/bazelbuild/bazel/issues/7480, we have to specify the complete strategies list in .bazelrc file.

PiperOrigin-RevId: 275459466
Change-Id: Iaec997da7862245955a36ebb1018d901f61c591d
2019-10-18 06:36:45 -07:00