Commit Graph

166 Commits

Author SHA1 Message Date
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