Commit Graph

204 Commits

Author SHA1 Message Date
Guangda Lai
ad5ef82ea3 Automated rollback of commit f5b4e0e0ea
PiperOrigin-RevId: 245496956
2019-04-26 17:14:04 -07:00
Guangda Lai
f5b4e0e0ea Add back action_env TENSORRT_INSTALL_PATH so TF-TRT is built by default in TF gpu builds.
PiperOrigin-RevId: 245462577
2019-04-26 13:27:16 -07:00
Mihai Maruseac
4db860f9f0 Set max bazel version to the latest existing 0.24.1
PiperOrigin-RevId: 244365126
2019-04-19 08:57:34 -07:00
R S Nikhil Krishna
05e348bf7b
Update docstrings in configure.py
HDFS is now supported through bazel build config and not through a flag in this file (`configure.py`).

However, the docstrings still refer to it. Replaced it with `TF_NEED_CUDA`, which is still a flag set in this script
2019-04-18 15:58:12 +05:30
A. Unique TensorFlower
407a4f3b9d Bump the minimal Bazel version to 0.24.1
We'll have to bump the minimal Bazel version to 0.24.1 because google_cloud_cpp v0.8.1 doesn't work with Bazel 0.23.1.

PiperOrigin-RevId: 243954431
2019-04-17 01:30:14 -07:00
A. Unique TensorFlower
0cb8a070d9 Suggest default CUDA/cuDNN/TensorRT versions after initial auto-detection.
Reduce spew on error message when some file was not found.

PiperOrigin-RevId: 243810113
2019-04-16 08:22:21 -07:00
A. Unique TensorFlower
651b0bcbbc Automatically detect CUDA config during ./configure on the first attempt. If that fails, ask for more detail.
PiperOrigin-RevId: 243794789
2019-04-16 06:19:25 -07:00
A. Unique TensorFlower
8e9ca6617b Change how ./configure and bazel finds CUDA paths.
Use a single python script (third_party/gpus/find_cuda_config.py) from configure.py and the different *_configure.bzl scripts to find the different CUDA library and header paths based on a set of environment variables.

PiperOrigin-RevId: 243669844
2019-04-15 12:55:59 -07:00
A. Unique TensorFlower
6a059c00dd Updates TensorFlowLiteC podspec.
PiperOrigin-RevId: 242194312
2019-04-05 15:02:02 -07:00
Jared Duke
a0104b7a5a Tweak NDK API level parsing for Android
Allow setting the level via $ANDROID_NDK_API_LEVEL, rather than
hardcoding to the current NDK version. Also increase the default
NDK API level to 18.

PiperOrigin-RevId: 241981236
2019-04-04 12:36:28 -07:00
A. Unique TensorFlower
2b9c299716 Bump max bazel version to 0.24.1
Bazel 0.24.1 is now released: https://github.com/bazelbuild/bazel/releases/tag/0.24.1

PiperOrigin-RevId: 241955827
2019-04-04 10:42:53 -07:00
Austin Anderson
87ea41d023 Fix configure.py to properly compare "X.Y.Z" with "X.Y"
Right now, "0.24" is treated as lower than "*.*.*" because of the odd comparison method that adds digits to each existing section. This change converts "0.24" to "0.24.0" to fix that.

This will probably need to be pulled into r2.0.

PiperOrigin-RevId: 241950768
2019-04-04 10:18:24 -07:00
A. Unique TensorFlower
5001ac0ae1 Internal change.
PiperOrigin-RevId: 241777236
2019-04-03 12:05:15 -07:00
A. Unique TensorFlower
c7278e4620 PR #26752: Bump abseil-py dep and min Bazel version
Imported from GitHub PR #26752

This makes builds not fail with --incompatible_remove_old_python_version_api enabled, which will become the default in Bazel 0.25. Fixes #26616.

Copybara import of the project:

  - a3b9e5cde69beb5b1ceebe9a4a20c352bf320290 Bump abseil-py dep and min Bazel version by Jon Brandvein <brandjon@google.com>
  - d189be43b2bf4bcd229d4fe23bc95870a196ff79 Merge a3b9e5cde69beb5b1ceebe9a4a20c352bf320290 into 9ab5b... by Jon Brandvein <brandjon@google.com>

PiperOrigin-RevId: 240409003
2019-03-26 13:05:20 -07:00
A. Unique TensorFlower
8a9cd67c69 Bump max bazel version to 0.24.0
Bazel 0.24.0 is now released: https://github.com/bazelbuild/bazel/releases/tag/0.24.0

Tested at https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/867#e6631eba-578c-4cd5-8275-0310317b7bc8

PiperOrigin-RevId: 240395484
2019-03-26 11:54:13 -07:00
A. Unique TensorFlower
e9797fdf8a Exclude setting BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 for ios build
PiperOrigin-RevId: 239826351
2019-03-22 11:28:19 -07:00
A. Unique TensorFlower
76e879d1c1 Adds new podspecs for the TensorFlow Lite iOS libraries.
PiperOrigin-RevId: 239748653
2019-03-22 00:31:14 -07:00
A. Unique TensorFlower
7bd86377de Set BAZEL_USE_CPP_ONLY_TOOLCHAIN=1 for mac build
For working around https://github.com/bazelbuild/bazel/issues/7607#issuecomment-474380287

PiperOrigin-RevId: 239684343
2019-03-21 15:44:45 -07:00
A. Unique TensorFlower
ed297347fd Adds a print statement alerting developers that Bazel version 0.23 or later is required for building Apple and Swift targets on Apple platforms.
PiperOrigin-RevId: 238678544
2019-03-15 12:02:44 -07:00
Guangda Lai
bcd701a0d4 Fix a bug in the configure script that disables all GPU tests when GPU build is enabled.
PiperOrigin-RevId: 238155623
2019-03-12 21:14:39 -07:00
A. Unique TensorFlower
4a866ad090 Bump max bazel version for TF to 0.23.2.
https://github.com/bazelbuild/bazel/issues/7667

PiperOrigin-RevId: 238045795
2019-03-12 10:50:41 -07:00
A. Unique TensorFlower
8dc2d0eeda Change compute capability < 3.5 check from error into warning. See issue #26394.
PiperOrigin-RevId: 237971151
2019-03-12 01:46:54 -07:00
A. Unique TensorFlower
e7a30e0791 Bump max bazel version for TF to 0.23.1.
Passed with 0.23.1rc1 at https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/833#8d13d2b7-28cf-4576-a00a-d6dd6ea3edab

PiperOrigin-RevId: 236876533
2019-03-05 11:17:39 -08:00
A. Unique TensorFlower
e89c7daf6c Bump max bazel version for TF to 0.23.1.
Passed with 0.23.1rc1 at https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/833#8d13d2b7-28cf-4576-a00a-d6dd6ea3edab

PiperOrigin-RevId: 236362086
2019-03-01 13:03:42 -08:00
TensorFlower Gardener
345cccf7b8 Merge pull request #25447 from rongjiecomputer:fix_win_build
PiperOrigin-RevId: 236176304
2019-02-28 15:22:59 -08:00
A. Unique TensorFlower
a6bf9c8476 Add posix implementation for platform/numa.h functions, relying
on hwloc.

PiperOrigin-RevId: 235742876
2019-02-26 10:36:09 -08:00
Gunhan Gulsoy
fff6696b9f Let configure script set TF test options in bazelrc
PiperOrigin-RevId: 234881690
2019-02-20 15:34:00 -08:00
Austin Anderson
32202dc07c
Adjust wording in warning 2019-02-19 10:46:27 -08:00
P Sudeepam
765ceda2f0 Remove an accidental tab and quote 2019-02-19 14:46:38 +05:30
P Sudeepam
5209356cdb Remove the warning_flag and use the all_valid flag to provide the warning for invalid compute capabilities 2019-02-19 14:46:38 +05:30
P Sudeepam
6313548a1f modify the if condition that sets the warning flag for compute capabilities 2019-02-19 14:46:38 +05:30
P Sudeepam
d910c0289b Modify configure.py to provide a warning if CUDA compute capabilities are less than 3.5 2019-02-19 14:46:38 +05:30
A. Unique TensorFlower
93e707396e Updates the configure Python script to support building Bazel rules on Apple platforms.
PiperOrigin-RevId: 234053872
2019-02-14 17:00:09 -08:00
TensorFlower Gardener
abb763b5ae Merge pull request #25335 from lgeiger:deprecated-bazel-option
PiperOrigin-RevId: 232765856
2019-02-06 16:23:03 -08:00
Gunhan Gulsoy
91da898cb6 Bump max bazel version for TF.
I just verified that we can build using bazel 0.22

PiperOrigin-RevId: 232356025
2019-02-04 13:36:44 -08:00
Loo Rong Jie
31f10d26c6 Fix Windows build due to winsock2.h conflicts 2019-02-04 17:57:34 +08:00
Lukas Geiger
0b92bc4b44 Bazel: Remove deprecated experimental_shortened_obj_file_path option
`experimental_shortened_obj_file_path` is depreacted since [version `0.17.0`](https://blog.bazel.build/2018/09/14/bazel-0.17.html) and activated by default. Since Tensorflow requires [at least bazel `0.19.0`](https://github.com/tensorflow/tensorflow/blob/master/configure.py#L1559), this flag can be savely removed.
2019-01-30 23:10:35 +01:00
Mihai Maruseac
91ebeecc92 Proper string format on ValueError when MPI library is not found.
PiperOrigin-RevId: 231503050
2019-01-29 17:16:07 -08:00
Penporn Koanantakool
489f1dc457 Fix typo.
PiperOrigin-RevId: 228831583
2019-01-10 22:14:41 -08:00
Gunhan Gulsoy
c59db932b0 Upgrade default TF cuda version to cuda 10.
PiperOrigin-RevId: 227180147
2018-12-28 16:37:52 -08:00
Mihai Maruseac
e0963c4073 Add instructions to downgrade Bazel if greater than max_bazel_version.
PiperOrigin-RevId: 226393897
2018-12-20 14:39:13 -08:00
Gunhan Gulsoy
e4bfd93950 Bump max version of bazel to 0.21
PiperOrigin-RevId: 226385826
2018-12-20 13:53:25 -08:00
A. Unique TensorFlower
99f853f3fb Bump minimum bazel version check to 0.19, to avoid the following error, which isn't helpful:
ERROR: cc_toolchain_suite '@local_config_cuda//crosstool:toolchain' does not contain a toolchain for CPU 'k8', you may want to add an entry for 'local|compiler' into toolchains and toolchain_identifier 'local_linux' into the corresponding cc_toolchain rule (see --incompatible_disable_cc_toolchain_label_from_crosstool_proto).
PiperOrigin-RevId: 225430355
2018-12-13 14:05:11 -08:00
TensorFlower Gardener
78c246bb6c Merge pull request #22964 from perfinion:bazelrc
PiperOrigin-RevId: 225413451
2018-12-13 12:38:00 -08:00
Jason Zaman
b41761c499 Update to bazel-0.18.0 and use try-import
Bazel-0.18.0 adds a try-import option that will non-fatally try and
import a file. Use this for the configure options so that .bazelrc does
not need to change. ./configure rewriting .bazelrc makes using the git
repo annoying because the file is changed.

The allowed bazel range is now 0.18.0-0.20.0 inclusive. The env var
TF_IGNORE_MAX_BAZEL_VERSION can be set to skip the max bazel version
check.

Also optionally import a /.bazelrc.user file that is gitignored so
user-specific options can go in there.

Fixes: https://github.com/tensorflow/tensorflow/issues/22762
Fixes: https://github.com/tensorflow/tensorflow/pull/22906
Signed-off-by: Jason Zaman <jason@perfinion.com>
2018-12-05 08:34:07 +08:00
A. Unique TensorFlower
07f30871a0 Bump max_bazel_version to 0.20.0
After a few fixes, TensorFlow now builds with Bazel 0.20.0. This allows us to keep testing TF on Bazel CI, where bazel is already upgraded to 0.20.0

PiperOrigin-RevId: 224006905
2018-12-04 11:05:10 -08:00
Mihai Maruseac
3360c72f32 One line configure change for message on wrong bazel version.
PiperOrigin-RevId: 223820935
2018-12-03 11:12:53 -08:00
Mihai Maruseac
e7a123f4b3 Add max_bazel_version to not use bleeding edge Bazel in TF.
PiperOrigin-RevId: 223566575
2018-11-30 13:38:32 -08:00
TensorFlower Gardener
968cd18a60 Merge pull request #23886 from wdirons:add_pythonpath_to_bazelrc_if_referenced
PiperOrigin-RevId: 223204341
2018-11-28 11:33:16 -08:00
Gunhan Gulsoy
eea816869a Automated rollback of commit 72f193b5c9
PiperOrigin-RevId: 222910206
2018-11-26 16:58:44 -08:00