Commit Graph

243 Commits

Author SHA1 Message Date
Deven Desai
e7661b6437 Relocatable ROCm changes 2020-05-22 11:50:57 +00:00
Saleem Abdulrasool
a8adad90ac configure.py: add -D_USE_MATH_DEFINES manually
This adds `--ccopt -D_USE_MATH_DEFINES` manually to the .bazelrc as the
verison of bazel used on r2.1 (0.29.x) does not support platform
specific options.  This allows the windows build to function by default.
2020-01-02 16:24:57 -08:00
Goldie Gadde
22b782a76a
Merge pull request #34465 from geetachavan1/cherrypicks_N5TDA
[r2.1:Cherrypick]Support /d2ReducedOptimizeHugeFunctions on Windows when TF_VC_VERSION=16.4
2019-11-20 13:15:39 -08:00
Austin Anderson
ab9f302858 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-20 12:03:56 -08:00
Jared Duke
cd6be9fd8a Switch to NDK API level 21
PiperOrigin-RevId: 280766624
Change-Id: I8500b69a5f6bebbeb0aafcf5744f5be5944738b9
2019-11-19 08:37:50 -08:00
A. Unique TensorFlower
ecd62bf763 Update the TF CUDA version to 10.1
PiperOrigin-RevId: 280237880
Change-Id: Idb9ea64c73746e18b372f3c3a0e56b8b64d53b06
2019-11-15 14:39:55 -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