Commit Graph

394 Commits

Author SHA1 Message Date
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
Anna R
50515e84ba Add --config=v1 option. This change is pretty much the same as this commit on r2.0 branch:
54734900bd
However, this change doesn't enable v2 on master yet.

PiperOrigin-RevId: 271370570
2019-09-26 10:04:55 -07:00
Sanjoy Das
839623100b Remove the TensorRT admonition
We always use RTLD_LOCAL for dynamic linking TensorRT in open source so the
symbol conflicts should not affect OSS builds.

PiperOrigin-RevId: 268983417
2019-09-13 16:51:46 -07:00
Sanjoy Das
077a5c7058 Clear out default blacklist.
The blacklist was working around an ODR violation problem that is triggered by
linking in TensorRT and cuDNN into the same binary.

In open source TensorRT is off by default and this CL adds an admonition about
the possible problem.

PiperOrigin-RevId: 268942282
2019-09-13 11:34:09 -07:00
William D. Irons
75efc7a306 [ppc64le] Undo setting of OMP_NUM_THREADS
This check was added because libopenblas on Power had threading
issues if OMP_NUM_THREADS was set higher than 1. This has been
fixed in all the latest versions of libopenblas and this check
is no longer needed.
2019-09-12 13:51:15 +00:00
Gunhan Gulsoy
cb871fb2f7 Remove Apache ignite related code from main tensorflow repository.
This code has moved to github.com/tensorflow/io

PiperOrigin-RevId: 266467520
2019-08-30 15:36:36 -07:00
Gunhan Gulsoy
1e219a23c8 Remove kafka code from TF main repo.
This code has moved to github.com/tensorflow/io

PiperOrigin-RevId: 266212852
2019-08-29 14:04:02 -07:00
Gunhan Gulsoy
1b00dda2da Remove GDR code from main TF repo.
It has moved to github.com/tensorflow/networking

PiperOrigin-RevId: 266063354
2019-08-28 22:11:47 -07:00
Gunhan Gulsoy
25f08ffe5d Remove libverbs code from tensorflow/(contrib)
It has moved to github.com/tensorflow/networking

PiperOrigin-RevId: 266019701
2019-08-28 16:35:38 -07:00
Gunhan Gulsoy
35e5ec9e9e Remove MPI code from TF main repo, since it was moved to
github.com/tensorflow/networking.

PiperOrigin-RevId: 265974964
2019-08-28 13:22:55 -07:00
Jeroen Bédorf
1303776540 Add spaces to make string replace match 2019-07-15 21:17:09 +02:00
Mihai Maruseac
4fbff1de1b Automated rollback of commit 85c0ffd267
PiperOrigin-RevId: 256181363
2019-07-02 09:48:56 -07:00
Mihai Maruseac
85c0ffd267 Prepare build jobs for 1.13.2 patch release
PiperOrigin-RevId: 256092770
2019-07-01 21:21:05 -07:00
Mihai Maruseac
711b1e1124 Automated rollback of commit 5fbe995c00
PiperOrigin-RevId: 255722638
2019-07-01 10:40:59 -07:00
Mihai Maruseac
5fbe995c00 Prepare build jobs for 1.13.2 patch release
PiperOrigin-RevId: 255718561
2019-07-01 10:34:50 -07:00
A. Unique TensorFlower
cfccbdb8c4 Set --host_force_python=PY2 when using python2
Fixes #29220

PiperOrigin-RevId: 254793086
2019-06-24 11:38:01 -07:00
Sanjoy Das
f3fab7c406 Link in XLA for open source OSX builds by default
PiperOrigin-RevId: 254235029
2019-06-20 11:26:26 -07:00
Mark Daoust
44000ad64a add _TF_{MIN,MAX}_BAZEL_VERSION constants, to make these easier to find.
PiperOrigin-RevId: 253803878
2019-06-18 09:31:38 -07:00
Anna R
aedf674e90 Add --config=v2 to build-from-source documentation and configure.py.
PiperOrigin-RevId: 252864895
2019-06-12 12:23:24 -07:00
A. Unique TensorFlower
c3260eb5ab Bump max Bazel version to 0.26.1
PiperOrigin-RevId: 252051374
2019-06-07 08:21:32 -07:00
Gaurav Jain
040546fdef Upgrade Bazel version to 0.26.0
PiperOrigin-RevId: 250559259
2019-05-29 14:20:45 -07:00
A. Unique TensorFlower
c33055c442 Upgrade Bazel version to 0.25.3
PiperOrigin-RevId: 249794093
2019-05-24 01:39:59 -07:00
A. Unique TensorFlower
fef5167133 Wrap some (CUDA, TensorRT, clang, SYCL) --action_envs into --configs: the .tf_configure.bazelrc only sets the --configs, and the .bazelrc maps that to --action_envs.
PiperOrigin-RevId: 249618180
2019-05-23 04:24:32 -07:00
A. Unique TensorFlower
8d7696a800 Removes min Bazel version check when building for Apple platforms.
PiperOrigin-RevId: 248742379
2019-05-17 10:23:42 -07:00
A. Unique TensorFlower
3ad37ad68a Remove unnecessary duplicate config for build and test in .tf_configure.bazelrc: test inherits from build, see https://docs.bazel.build/versions/master/guide.html#option-defaults
PiperOrigin-RevId: 248330560
2019-05-15 07:42:33 -07:00
A. Unique TensorFlower
9262f195e7 Bump max Bazel version to 0.25.2
Also removed a workaround

PiperOrigin-RevId: 248095796
2019-05-14 01:59:52 -07:00
A. Unique TensorFlower
28fc9cccd1 Fix ./configure trying to find TensorRT when it shouldn't.
PiperOrigin-RevId: 246197213
2019-05-01 15:59:23 -07:00
Justin Lebar
7b57c5a02c Attempt to fix Windows build by explicitly defining NOGDI.
My hypothesis is that WIN32_LEAN_AND_MEAN is not sufficient for whatever header
is causing StreamExecutor to pull in GDI.

PiperOrigin-RevId: 245998050
2019-04-30 13:31:39 -07:00
A. Unique TensorFlower
b2e7f671da Switch from TF_TENSORRT_VERSION to TF_NEED_TENSORRT environment variable to determine whether to build with TF-TRT.
Store fallback env variables for CUDA configs in bazelrc as well.

PiperOrigin-RevId: 245961133
2019-04-30 09:26:48 -07:00
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
A. Unique TensorFlower
72f193b5c9 Automated rollback of commit 54dc404a7d. Revert #23808.
PiperOrigin-RevId: 222548550
2018-11-22 09:03:34 -08:00
Sami Kama
5bb1bee062 Fix merge conflict 2018-11-21 13:23:51 -08:00
Sergei Lebedev
95d7bbb2fc Replaced list comprehensions inside all/any/sum with generator expressions
PiperOrigin-RevId: 222429778
2018-11-21 10:44:43 -08:00
William D. Irons
dcc76a5c49 Add PYTHONPATH to bazelrc when necessary
When the user choosen python_lib_path was retreived from the
PYTHONPATH environment variable, need to set PYTHONPATH in the
bazelrc file so bazel includes it in all the build operations.

Fixes tensorflow#23695
2018-11-20 10:35:18 -06:00
Sami Kama
b51ad2408b Add option to disable nccl 2018-11-16 14:16:23 -08:00
A. Unique TensorFlower
82820eff5e Update configure script to not warn about Bazel r17 and r18. Bazel supports both revisions now.
PiperOrigin-RevId: 221145880
2018-11-12 13:25:48 -08:00
Yun Peng
03e63a291b
Explicitly import tools/bazel.rc
To fix build with Bazel 0.19.0 or later and it won't break build with old version or Bazel
Fixes https://github.com/tensorflow/tensorflow/issues/23398
2018-11-07 11:18:53 +01:00
TensorFlower Gardener
f7c861f159 Merge pull request #22734 from mslacken:master
PiperOrigin-RevId: 219667359
2018-11-01 11:29:40 -07:00
Guangda Lai
62ebf62948 Initialize nccl_lib_path.
PiperOrigin-RevId: 218340343
2018-10-23 07:48:48 -07:00
Gunhan Gulsoy
594aae2550 Add an info line about the dynamic kernels config option.
PiperOrigin-RevId: 217772932
2018-10-18 14:51:51 -07:00
Gunhan Gulsoy
9fa8939c4a Remove tensorflow_no_py_deps from configure script.
This config breaks out of the box usage of "bazel test" and hurts development.

PiperOrigin-RevId: 216939335
2018-10-12 16:30:26 -07:00
Gunhan Gulsoy
3437098ba5 Make AWS, GCP, HDFS, Kafka and Ignite default on, but introduce the ability to
disable them

Fixes #22819

PiperOrigin-RevId: 216931905
2018-10-12 15:35:36 -07:00
TensorFlower Gardener
5d5b026ef8 Merge pull request #22839 from georgepaw:configure_xla_macos
PiperOrigin-RevId: 216774289
2018-10-11 15:59:10 -07:00
Grzegorz Pawelczak
2e75c6321f Query on Windows as well 2018-10-11 08:40:21 +01:00
Justin Lebar
9ef04f5399 Disable signed-compare warnings in TensorFlow default build.
We have a lot of such warnings and don't make an attempt to clean them up
internally.

PiperOrigin-RevId: 216631010
2018-10-10 18:56:13 -07:00
Grzegorz Pawelczak
ec82efd4ce [XLA] Query whether to enable XLA support on MacOS with no as a default 2018-10-09 15:03:46 +01:00
Yifei Feng
ec451f5ab4 Break up build --define <option_name>=true into two steps:
1) define bazel config
   build:<bazel_config_name> --define <option_name>s=true
2) set the config
   build --config=<bazel_config_name>

PiperOrigin-RevId: 215951614
2018-10-05 13:03:15 -07:00
A. Unique TensorFlower
53faa313b7 Switch NCCL to build from open source (version 2.3.5-5) by default.
Note to users manually patching ptxas from a later toolkit version:
Building NCCL requires the same version of ptxas and nvlink.

PiperOrigin-RevId: 215911973
2018-10-05 08:53:12 -07:00
Christian Goll
ba95d09288 MPI libraries maybe located under lib64 or lib32 2018-10-04 17:06:23 +02:00
Yifei Feng
ed90461100 Update reference to tools/bazel.rc to .bazelrc after cl/215483141
PiperOrigin-RevId: 215623215
2018-10-03 14:07:00 -07:00
TensorFlower Gardener
bbc9c1f14a Merge pull request #21374 from perfinion:bazel
PiperOrigin-RevId: 215483141
2018-10-02 16:52:00 -07:00
TensorFlower Gardener
ea5c529ed7 Merge pull request #22519 from jayfurmanek:nccl2_configure
PiperOrigin-RevId: 215310536
2018-10-01 17:28:26 -07:00
Ayush Dubey
52574f9527 Remove jemalloc build files and dead configuration options.
PiperOrigin-RevId: 215291195
2018-10-01 15:33:13 -07:00
A. Unique TensorFlower
44acd839c5 Fix reported cuDNN default version during configuration.
PiperOrigin-RevId: 215272308
2018-10-01 13:49:24 -07:00
TensorFlower Gardener
61a872068e Merge pull request #22210 from dmitrievanthony:apache-ignite-dataset
PiperOrigin-RevId: 215258743
2018-10-01 12:25:39 -07:00
A. Unique TensorFlower
7c5eb354a6 In TensorFlow configure, write the .tf_configure.bazelrc into the --workspace path if provided.
This allows repositories that depend on TensorFlow to execute
'bazel run @org_tensorflow//:configure -- --workspace $(pwd)'
to configure TensorFlow.
END_PUBLIC

Before this change, the .tf_configure.bazelrc ended up in the bazel exec root, and 'bazel clean' would undo the configuration.

PiperOrigin-RevId: 215209207
2018-10-01 07:20:21 -07:00
Gunhan Gulsoy
47503fdbfa Disable jemalloc, and remove its configuration option.
PiperOrigin-RevId: 215020524
2018-09-28 17:21:20 -07:00
Todd Wang
35459cbaa0 Build TF with XLA support by default.
Building binaries with XLA support does not enable it by default, it
simply makes it accessible via default binary builds.

PiperOrigin-RevId: 214942824
2018-09-28 09:00:05 -07:00
Jason Zaman
d3f6b72bc7 configure: use workspace-relative path to tf_configure_bazelrc
/.bazelrc is not gitignored anymore so this should help in case the
import line is accidentally committed. Bazel 0.18.0 will support a new
'try-import' statement that should be used once 0.18.0 has been out long
enough.

Signed-off-by: Jason Zaman <jason@perfinion.com>
2018-09-28 23:40:29 +08:00
Gunhan Gulsoy
d56c298f1e Remove AWS, GCP, Kafka and HDFS options from configure. Make them default on
for supported operating systems.

PiperOrigin-RevId: 214886845
2018-09-27 22:02:53 -07:00
avijit-nervana
f172c52ac7 Fixed the broken unit tests 2018-09-27 13:38:04 -07:00
TensorFlower Gardener
62e60166de Merge pull request #20277 from ROCmSoftwarePlatform:upstream-staging
PiperOrigin-RevId: 214793113
2018-09-27 10:22:55 -07:00
A. Unique TensorFlower
77e2686a29 Reduce the size of //tensorflow/tools/pip_package:simple_console_windows
This change reduce the size of //tensorflow/tools/pip_package:simple_console_windows's zip file from 1000027677 bytes to 47690474 bytes for a CPU build. For GPU build, it will avoid going over 4GB when multiple CUDA compatibility are specified.

To fix #22390

PiperOrigin-RevId: 214764423
2018-09-27 06:23:37 -07:00
Gunhan Gulsoy
3da0dff642 Remove verbs, gdr and ngraph questions in configure script.
PiperOrigin-RevId: 214643700
2018-09-26 12:00:41 -07:00
jayfurmanek
49978a87c8
Merge branch 'master' into nccl2_configure 2018-09-26 07:41:29 -05:00
Gunhan Gulsoy
ffa90fc521 Fixes for building with CUDA on ppc64le.
PiperOrigin-RevId: 214569615
2018-09-26 01:43:15 -07:00
Jason Furmanek
1668d28ca3 fix in last line of set_system_lib_flag 2018-09-26 05:22:04 +00:00
Jason Furmanek
d596784484 fix unintential removal of set_system_libs_flag 2018-09-26 05:19:10 +00:00
Jason Furmanek
7c2341501a Find NCCL2 debians in Tensorflow configure 2018-09-26 04:44:12 +00:00
Jason Zaman
5fc39bd5d6 configure.py: enhance systemlibs config
Allow TF_SYSTEM_LIBS env var to split on spaces or commas.
Write PREFIX and related variables to bazelrc as well.

Signed-off-by: Jason Zaman <jason@perfinion.com>
2018-09-22 10:31:27 +08:00
Anna R
a9a1d5a673 Add --config=v2 option to the .bazelrc file.
PiperOrigin-RevId: 213027176
2018-09-14 12:50:07 -07:00
hellcom
9a13fc3595 Fix missprint - unknown variable name.
Signed-off-by: hellcom <vitalii.stoianov.ua@gmail.com>
2018-09-12 10:58:24 +03:00
Anton Dmitriev
8530167f68 Add IgniteDataset that allows to work with Apache Ignite. 2018-09-11 10:01:10 +00:00
Wen-Heng (Jack) Chung
69d3b8faf4 [ROCm] bazel build system and continuous integration logic
The commit contains following components to support TensorFlow on ROCm platform

- bazel build system
- continuous integration logic

Authors:

- Jack Chung: jack.chung@amd.com
- Jeffrey Poznanovic: Jeffrey.Poznanovic@amd.com
- Peng Sun: Peng.Sun@amd.com
2018-09-05 23:50:51 +00:00
Ilya Biryukov
1c3d02eb35 Use LLD when building with downloaded GPU toolchain
This improves build times when using the downloaded clang toolchain.

Additionally, remove '-B/usr/bin' flags from the cuda CROSSTOOL when using
the downloaded toolchain.
It was forcing 'clang' to first search for the linker in '/usr/bin',
preventing downloaded LLD from being selected.

PiperOrigin-RevId: 211430374
2018-09-04 03:15:01 -07:00
A. Unique TensorFlower
d340f4700e Add NDK r16 to Bazel's supported range of NDKs.
PiperOrigin-RevId: 210975274
2018-08-30 14:12:39 -07:00
TensorFlower Gardener
c72c36145b Merge pull request #21122 from NervanaSystems:master
PiperOrigin-RevId: 209623532
2018-08-21 11:02:41 -07:00
Yifei Feng
5198cb8b3d PR #21373: nsync dep updates
Please approve this CL. It will be submitted automatically, and its GitHub pull request will be marked as merged.

Imported from GitHub PR #21373

A new version of nsync is released, this updates the workspace.bzl and adds nsync to the libs that can be unbundled. I've packaged nsync on Gentoo Linux and tested the full unbundled build.

The CMake build is also updated to the latest version, the patch is no longer required and is removed. I have tested the cmake build on my machine but the CI needs to test windows since I can't.

The last commits update ./configure to handle adding TF_SYSTEM_LIBS and an option to disable stripping.

@m3bm3b, can you review too?

Copybara import of the project:

  - 3d224b29fcf699b84cf538e2d16e3dd4e78e6a91 workspace: update nsync dep to 1.20.1 by Jason Zaman <jason@perfinion.com>
  - 34536b88bedc5a83ad939438a49a3cc53aea210c CMake: nsync: update to 1.20.1 by Jason Zaman <jason@perfinion.com>
  - f2444ba218ae280e03710f936b249b6b650ea3dd third_party: unbundle nsync by Jason Zaman <jason@perfinion.com>
  - 4386d8c4b01020ba1c979258e5102ac1947d2574 configure: Add TF_SYSTEM_LIBS handling by Jason Zaman <jason@perfinion.com>
  - f3fd1f110781cfb8cc941241a69eb41114787bfd Merge 4386d8c4b01020ba1c979258e5102ac1947d2574 into a05c7... by Jason Zaman <jasonzaman@gmail.com>

COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/21373 from perfinion:nsync 4386d8c4b01020ba1c979258e5102ac1947d2574
PiperOrigin-RevId: 209201545
2018-08-17 13:57:13 -07:00
Avijit
bc6be507c7 Merge remote-tracking branch 'upstream/master' 2018-08-15 17:00:22 -07:00
Sami Kama
603b4b66b0
Remove set_build_strip_flag 2018-08-14 18:01:33 -07:00
Sami Kama
4e368d7143
Merge branch 'master' into BazelNoStrip 2018-08-14 15:00:46 -07:00
Niall Moran
b7d97e85a5 Update cuda and cudnn paths to for debian 2018-08-09 00:29:49 +01:00
Avijit
1cdacb8b10 Merge remote-tracking branch 'upstream/master' 2018-07-25 01:08:01 -07:00
Avijit
f88a6f93be Updated the ngraph_tf hash and PEP8 for configure.py 2018-07-24 23:58:58 -07:00
Avijit
121e0161c5
nGraph integration with TensorFlow
* Added nGraph bridge as a third_party to be built with TensorFlow based on user selection.
* Added a limited set of C++ unit tests to verify the correctness of the computation
2018-07-24 23:35:27 -07:00
Yifei Feng
bb384118db Upgrade bazel to 0.15.0.
PiperOrigin-RevId: 205878953
2018-07-24 13:16:04 -07:00
A. Unique TensorFlower
8ed40cdd3e Fix grammar in configure.py
PiperOrigin-RevId: 205421605
2018-07-20 10:59:46 -07:00
Reed Wanderman-Milne
716d15118f Update minimum bazel version to 0.13.0.
I was using bazel 0.12.0 and was getting the error:

file '@bazel_tools//tools/cpp:windows_cc_configure.bzl' does not contain symbol 'setup_vc_env_vars'

PiperOrigin-RevId: 205316270
2018-07-19 15:55:52 -07:00
A. Unique TensorFlower
1b21235444 Improve Windows build process
After this change, the windows build steps should be like:
https://docs.google.com/document/d/1oVYzPJVv8r5N9PecqwG74rY_QbqPH70IxBouBHdq5EI/edit?usp=sharing

PiperOrigin-RevId: 205295588
2018-07-19 13:52:06 -07:00
Yifei Feng
11020427c9 Automated rollback of commit 5e7178ddb7
PiperOrigin-RevId: 205165137
2018-07-18 17:32:02 -07:00
Yifei Feng
5e7178ddb7 Upgrade bazel to 0.15.0.
PiperOrigin-RevId: 205147588
2018-07-18 15:36:03 -07:00
Shashi Shekhar
c0ff0cccd4 Fix default SDK path for Mac.
PiperOrigin-RevId: 204919096
2018-07-17 09:03:39 -07:00
TensorFlower Gardener
a013474eae Merge pull request #20357 from JonTriebenbach:openblas-for-ppc64le
PiperOrigin-RevId: 204859562
2018-07-16 22:23:31 -07:00
Toby Boyd
e4c0dbcab8 internal change
PiperOrigin-RevId: 204832902
2018-07-16 17:10:20 -07:00
A. Unique TensorFlower
6e97fb388a Disable more TF_NEED_* on Windows by default.
This simplifies ./configure process on Windows, we can remove them when we actually support the corresponding feature on Windows.

PiperOrigin-RevId: 204804112
2018-07-16 14:10:38 -07:00
Smit Hinsu
fe7d1d9447 Update default cuda compute capability while installing from sources to cover up to Volta
PiperOrigin-RevId: 204606836
2018-07-14 13:20:25 -07:00
Smit Hinsu
63e6b9bf43 Update default NCCL version while installing from source to 2.2
This is to keep the default configuration consistent with prebuilt TensorFlow.

PiperOrigin-RevId: 204513386
2018-07-13 12:50:24 -07:00
A. Unique TensorFlower
ab39198ace Add CROSSTOOL for Windows GPU build with nvcc compiler
After this change, to build TensorFlow with GPU support on Windows, you just need to follow the same procedure as Linux.

Also re-enable remote cache since the bug in b/111106393 has been fixed by the new wrapper script.

The clean-up of the wrapper scripts also made the build around 5 mins faster than using Bazel's msvc wrapper script.

PiperOrigin-RevId: 204105368
2018-07-11 04:59:54 -07:00
A. Unique TensorFlower
02f17fe8b7 Set correct environment variable for CUDA install path
configure.py respects CUDA_TOOLKIT_PATH instead of CUDA_INSTALL_PATH

PiperOrigin-RevId: 203591214
2018-07-08 17:14:19 -07:00
Yong Tang
a7b7aa856f Add KinesisDataset support for tensorflow Dataset (#19712)
* Add KinesisDataset support for tensorflow Dataset

This fix is an attempt to add Kinesis support
for tensorflow's Dataset. Kinesis is provided by
AWS as a managed data streaming service. It is
similiar to Apache Kafka, often used in places
where maintaining a independent Kafka cluster on AWS
is not desirable or possible.

This fix adds the Kinesis support for tensorflow Dataset.
Similiar to the Kafka integration in tensorflow,
KinesisDataset outputs tf.string for records.

Test cases have also been added, which could be invoked manually.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Expose KinesisDataset in dataset_ops.cc

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Expose KinesisDataset in python wrapper

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Add test cases for KinesisDataset

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Update AWS library include files

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Add Bazel BUILD files

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Rename s3_crypto to aws_crypto

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Rename with_s3_support to with_aws_support

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Selectively add kinesis to tensorflow/contrib/BUILD

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Set different partition key and pylint fix.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Add missing modules in cmake's python_modules.txt

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>

* Address review feedback

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-07-02 07:41:42 -07:00
A. Unique TensorFlower
f70dfea26f Checking that the NCCL 2 license file is found, see GitHub issue 19679.
PiperOrigin-RevId: 202613754
2018-06-29 01:48:36 -07:00
Mingxing Tan
1e7b0e4ad6 Merge changes from github.
PiperOrigin-RevId: 202585094
2018-06-28 19:16:41 -07:00
Jon Triebenbach
6896a74984 Build OpenBLAS 0.3.0 on ppc64le for TF tests 2018-06-27 14:49:58 -05:00
gracehoney
4631936e61 Fix internal build errors. 2018-06-21 15:23:05 -07:00
Sami Kama
303ad054d5 Use != instead of not == 2018-06-19 20:14:49 -07:00
Sami Kama
1425e2ca44 Change logic to BAZEL_STRIP!=0 2018-06-19 18:01:36 -07:00
Akshay Modi
6070ae0e14 Merge changes from github.
PiperOrigin-RevId: 201110240
2018-06-18 21:04:00 -07:00
Akshay Modi
148b4381fd Automated g4 rollback of changelist 201011811
PiperOrigin-RevId: 201033171
2018-06-18 11:55:03 -07:00
Akshay Modi
e80732c989 Merge changes from github.
PiperOrigin-RevId: 201011811
2018-06-18 09:59:59 -07:00
Sami Kama
06eb148ba2 Make it possible to disable bazel symbol stripping 2018-06-13 19:55:45 -07:00
Sami Kama
5673b375a8 Merge with master 2018-06-06 17:28:09 -07:00
Sami Kama
9e5529cd62 Added segment graphdef conversion functions
Functional Dyn Ops
2018-06-06 15:47:29 -07:00
Patrick Nguyen
b458040c96 Merge commit for internal changes 2018-06-06 09:41:29 -07:00
Michael Case
5105350be9 Moves generated android_sdk() and android_ndk() repo rules out of WORKSPACE.
These rules currently get written by configure.py script to WORKSPACE
file which is not ideal since (1) WORKSPACE file is tracked by git and
(2) we require users to manually delete the rules in order to
update/regenerate them.

Moving these rules into an external repo that is generated based on
several ENV variables set by the configure.py script. Modifying any
of these ENV variables will cause the rules to be updated.

PiperOrigin-RevId: 199388460
2018-06-05 17:50:28 -07:00
Jason Zaman
1039ff9ee8 BUILD: dont force stripping (#19599)
* BUILD: dont force stripping

Build systems must not strip binaries, it makes it impossible for
distros to ship debugging symbols for packages.

bazel build has a --strip option to allow the user to generate stripped
binaries in a configurable way, that should be used instead.

https://fedoraproject.org/wiki/Packaging:Debuginfo
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces#Stripping

Signed-off-by: Jason Zaman <jason@perfinion.com>

* configure: add --strip=always to bazelrc
2018-05-31 20:52:17 -07:00
Yifei Feng
b59833c3fd Merge changes from github.
Revert #18413. Too many internal test failures due to the name scope change caused by this change.
Revert #18192. Cannot use re2::StringPiece internally. Need alternative for set call. Will pull and clean this up in a separate change.

PiperOrigin-RevId: 197991247
2018-05-24 19:15:01 -07:00
zhengxq
068fd9c936 Merge commit for internal changes 2018-05-18 17:05:40 -07:00
Michael Case
b39f1f5430 Remove -DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK being added by default to all builds.
PiperOrigin-RevId: 197037867
2018-05-17 13:04:48 -07:00
Yifei Feng
24c9174f84 Merge commit for internal changes 2018-05-08 17:14:55 -07:00
A. Unique TensorFlower
b15500be31 Remove outdated CUDA SDK string (the text is now consistent with other version choices, and the '9.0' format is already present in the default).
PiperOrigin-RevId: 195855416
2018-05-08 15:43:55 -07:00
Maciej
d0f5bc1756 Remove whitespace characters from tf_cuda_compute_capabilities user string (#18986)
Remove all whitespace characters from the user specified tf_cuda_compute_capabilities string as this can results in errors during the split operation, and is easy for users to do as it is natural to insert a space after a comma
2018-04-30 23:30:58 -04:00
Michael Case
7ee54c2f7c Remove deprecated/unused python related Bazel options.
Since py_runtime was introduced, Bazel ignores options such as
--force_python2 and --python2_path. Deleting to clean stuff up and
make sure people are not misled.

PiperOrigin-RevId: 193127681
2018-04-16 17:38:36 -07:00
Michael Case
0073d1375a Fix Windows GPU TensorFlow Bazel builds.
The configure.py script will error out on Windows GPU builds due
to NCCL attempted to be configured (and is currently Linux only).

PiperOrigin-RevId: 192461362
2018-04-11 09:41:42 -07:00
Michael Case
5ad9e45888 Merge changes from github.
PiperOrigin-RevId: 192388250
2018-04-10 18:46:38 -07:00
A. Unique TensorFlower
1fda7645d1 Add support for NCCL2. The configure script asks for what version of NCCL to use. The default is still NCCL 1 from GitHub. If the user chooses NCCL 2, it asks for the install directory.
The nccl_configure.bzl generates two different BUILD files based on the chose NCCL version. For NCCL 1, it aliases to the existing 'nccl_archive' http_repo on GitHub. For NCCL 2, it creates a target containing the NCCL 2 library and headers from the chosen install directory.

PiperOrigin-RevId: 191718007
2018-04-05 03:11:33 -07:00
A. Unique TensorFlower
1bba94af33 Compile TensorFlow with /arch:AVX on Windows
/arch:AVX is the correpsonding option in MSVC for gcc's --march=native

PiperOrigin-RevId: 191660389
2018-04-04 15:51:49 -07:00
Jianwei Xie
63dffd5a3b Automated g4 rollback of changelist 190858242
PiperOrigin-RevId: 190953197
2018-03-29 10:52:55 -07:00
Anna R
108178da2a Automated g4 rollback of changelist 190835392
PiperOrigin-RevId: 190858242
2018-03-28 16:55:15 -07:00
Jianwei Xie
e97c9e91e0 Merge changes from github.
PiperOrigin-RevId: 190835392
2018-03-28 14:38:46 -07:00
Benoit Steiner
0dadbfe118 Merge changes from github.
PiperOrigin-RevId: 190161440
2018-03-22 18:57:11 -07:00
Ilya Biryukov
9e651e4571 Allow to download clang and use clang for CPU builds.
Previously we only allowed to download clang when doing GPU builds.

The added skylark files use bazel's autoconf scripts, which were only added in
0.10.0. To provide nice error message for older versions of bazel
(i.e. 'version is less than 0.10' vs 'can't load @bazel_tools/cpp/...'), we
move the bazel version check into WORKSPACE file from workspace.bzl.

PiperOrigin-RevId: 190050798
2018-03-22 05:36:18 -07:00
Jacques Pienaar
2d0531d72c Merge changes from github.
PiperOrigin-RevId: 189945839
2018-03-21 12:10:30 -07:00
A. Unique TensorFlower
1e75c69339 Automated g4 rollback of changelist 189231636
PiperOrigin-RevId: 189258641
2018-03-15 15:49:01 -07:00
Jacques Pienaar
ccd8079e57 Merge changes from github.
PiperOrigin-RevId: 189231636
2018-03-15 13:03:19 -07:00
Shanqing Cai
7144571f2f Merge changes from github.
PiperOrigin-RevId: 188817194
2018-03-12 19:37:39 -07:00
Yifei Feng
dce9a49c19 Merge changes from github.
PiperOrigin-RevId: 186674197
2018-02-22 14:29:27 -08:00
Ankur Taly
0e6f39d1bd Merge changes from github.
PiperOrigin-RevId: 186073337
2018-02-16 18:27:19 -08:00
Michael Case
d90054e7c0 Merge changes from github.
PiperOrigin-RevId: 184897758
2018-02-07 14:39:49 -08:00
Guangda Lai
76f6938baf Set up TensorRT configurations for external use, and add a test.
PiperOrigin-RevId: 183347199
2018-01-26 00:02:44 -08:00
Frank Chen
c4ef927b5e Merge changes from github.
PiperOrigin-RevId: 181494416
2018-01-10 11:49:30 -08:00