Commit Graph

343 Commits

Author SHA1 Message Date
Jason Furmanek
3540299f4f [ROCM] Switch ROCm builds to use ROCm 5.2
-Switch ROCm builds to use ROCm5.2
	-Fix Tensorflow build failure with ROCm 5.2, due to new templates in rocmprim header
	-Changes related to hipsparse build failure fix.
	-Changes related to hipsolver/rocsolver build failure fix.
 	-Removing the setting of ROCBLAS_TENSILE_LIBPATH in configure.py
	-Update install_bazel script to match .bazelversion
2022-11-17 18:33:41 +00:00
TensorFlower Gardener
465d3aaf56 Merge pull request #58356 from Intel-tensorflow:bani/win_tf2.11_warn_onlycpu
PiperOrigin-RevId: 484832624
2022-10-30 00:45:48 -07:00
Banikumar Maiti (Intel)
ed3ba5632a Show warning for Windows GPU build 2022-10-28 10:33:15 -07:00
TensorFlower Gardener
5547c09887 Merge pull request #55670 from maxiwell:eigen-enable-dynamic-dispatch
PiperOrigin-RevId: 451011359
2022-05-25 14:13:59 -07:00
Maxiwell S. Garcia
b3428b7e56 ppc64le: eigen: using the new flag to enable MMA dynamic dispatch if ld >= 2.35
Eigen removed the dynamic dispatch by default. Now, it's necessary to add
EIGEN_ALTIVEC_ENABLE_MMA_DYNAMIC_DISPATCH=1 to enable this feature if
the linker version is 2.35 or greater.

7b10795e39
591906477b
2022-05-19 13:27:18 -05:00
Mihai Maruseac
ed066a9c48 Delete unused set_host_c_compiler.
PiperOrigin-RevId: 448290346
2022-05-12 11:07:50 -07:00
Mihai Maruseac
9882ba6c93 Delete unused delete_host_cxx_compiler
PiperOrigin-RevId: 448113581
2022-05-11 16:49:19 -07:00
Mihai Maruseac
1d3055ba32 Delete unused is_cuda_compatible
PiperOrigin-RevId: 448107102
2022-05-11 16:13:19 -07:00
Mihai Maruseac
2105b3c93d Delete unused reformat_version_sequence.
PiperOrigin-RevId: 448082558
2022-05-11 14:19:02 -07:00
Mihai Maruseac
8161daae34 Remove unused sed_in_place.
PiperOrigin-RevId: 448048817
2022-05-11 11:54:40 -07:00
Mihai Maruseac
691aa14211 Remove unused function in configure.py
PiperOrigin-RevId: 448039384
2022-05-11 11:16:39 -07:00
Mihai Maruseac
4665c2b80f Remove min/max bounds on bazel version in configure.py.
These checks were useful when we used to set the bazel version in the CI scripts but now that we have `.bazelversion` synced in the repo any user using Bazelisk or a recent version of Bazel will automatically get the exact Bazel version that we are using. Hence, this step in `configure.py` is no longer needed.

Furthermore, we are working on completely removing the need to run `configure.py`, at least for the vast majority of users.

PiperOrigin-RevId: 448033791
2022-05-11 11:00:11 -07:00
Mihai Maruseac
c39f19c52a Use rolling release for Bazel.
Since TF is in the progress of migrating to `cc_shared_library`, we are stress testing Bazel and uncovering a large number of bugs. We are in the state where some TF builds are broken with cascading failures and there is a long wait until a new LTS Bazel release. So, we're switching to rolling releases in an attempt to fix the builds.

However, if this causes more failures than it resolves, we will need to return back to stable releases.

PiperOrigin-RevId: 445259819
2022-04-28 15:14:55 -07:00
Mihai Maruseac
94da9ab2f3
Update configure.py 2022-03-25 09:18:25 -07:00
gtiHibGele
b7224b48dc
Update configure.py
Co-authored-by: Mihai Maruseac <mihai.maruseac@gmail.com>
2022-03-25 12:16:54 -04:00
gtiHibGele
8f34926a78
Update configure.py 2022-03-17 14:05:31 -04:00
gtiHibGele
068c90d5ce
Update Configure.py @55218
Update Configure.py @55218, Last commit failed at CICD for seemly unrelated issue. This patch is just to re run the same CICD and validate
2022-03-17 12:28:23 -04:00
TensorFlower Gardener
1f9f7b4fc1 Merge pull request #53864 from itmo153277:windows-trt
PiperOrigin-RevId: 428533377
Change-Id: I2b29c3c9919edfb46cbbc5382fd29d7647e63a60
2022-02-14 09:41:50 -08:00
Mihai Maruseac
7131c47acb Update cuda version in configure.py.
This is not actually used but to prevent confusion let's bring it up to date

PiperOrigin-RevId: 427769347
Change-Id: I1ebc7797a337b98135ee038bb8c5840c8c7c7b3c
2022-02-10 09:35:48 -08:00
Ivanov Viktor
4a96445808 Enable TensorRT on Windows 2022-02-01 19:44:10 +09:00
A. Unique TensorFlower
8871926b0a Updates TensorFlow Bazel version to the newly released version 5.0.0.
`.bazelversion` specifies the Bazel version that TensorFlow uses. This changelist updates the Bazel version from 4.2.2 to 5.0.0. It also updates the CI environment.

PiperOrigin-RevId: 424897733
Change-Id: Idd427ee8b1fdc8212211fb22c25989cb47350ab4
2022-01-28 10:24:17 -08:00
Deven Desai
d60a2090fd Pass HIP_PLATFORM to bazel build
This PR is to address the TF build failure reported in JIRA ticket:
http://ontrack-internal.amd.com/browse/SWDEV-241967

The valid set of values for the env var HIP_PLATFORM is being updated, and as a consequence `hcc` will no longer a valid value (staring with ROCm 3.7).
For ROCm 3.7, we will need to change the configure.py script such that the env var HIP_PLATFORM=amd is explicitly when invoked with TF_NEED_ROCM=1.

In the meantime (i.e. until we switch to ROCm 3.7), we need to provide a way for passing HIP_PLATFORM to bazel (to help QA in testing ROCm 3.7). This change provides that way.
If the HIP_PLATFORM env var is set in the shell that invokes the "configure.py" script, it will pass it through to bazel.
2022-01-20 13:17:04 -06:00
rui
9cd04f0ce7 build: bump bazel to 4.2.2 2021-12-08 22:10:07 -05:00
A. Unique TensorFlower
18a1dc0ba8 Upgrading Bazel to 4.2.1
PiperOrigin-RevId: 413661728
Change-Id: I9d66a199cea6a0754d321924f51421054107e577
2021-12-02 06:41:31 -08:00
A. Unique TensorFlower
1f19aea323 Updates TensorFlow's Bazel version to 4.0.0.
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 413424007
Change-Id: Iab9246fd0985e27a255db9772d6c1a3c32b265b4
2021-12-01 08:37:52 -08:00
A. Unique TensorFlower
6fdb753000 Updates TensorFlow's Bazel version to 4.0.0.
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 413219594
Change-Id: I7529703ef09099040a48042c896f88a584dc1d32
2021-11-30 12:53:11 -08:00
Itai Zukerman
87462bfac7 Removed "from __future__ import *" lines from Python code.
These are a holdover from the transition from Python 2.* to Python 3.*.

PiperOrigin-RevId: 399530502
Change-Id: I1c8b893fd7f5eeb5eb51b2e2c38c3b73ec5b9903
2021-09-28 14:37:05 -07:00
Cheney-Wang
61cd92116a Update max version of bazel supported by tensorflow to 4.99.0 2021-08-01 20:01:57 -07:00
Cheney-Wang
6bc413a4e9 Update max version of bazel supported by tensorflow to 4.1.0 2021-07-30 01:28:07 -07:00
TensorFlower Gardener
311bd4de33 Merge pull request #50553 from PatriceVignola:fix-configure-bazelisk-windows
PiperOrigin-RevId: 384706651
Change-Id: I6c0f4cb25047a127648aa89e8bb82251054f9769
2021-07-14 08:56:54 -07:00
Patrice Vignola
0051442305
Satisfy pylint warning 2021-06-30 18:42:35 -07:00
Patrice Vignola
ce01058fde
Change bazel_command to bazel_executable 2021-06-30 18:25:59 -07:00
=
abd09806b5 Fix configure.py when using bazelisk on Windows 2021-06-30 17:45:44 -07:00
Reed Wanderman-Milne
2d45d27274 In configure.py, print info on --config=v1 instead of --config=v2.
Explicitly listing --config=v2 incorrectly implied that building for TF2 was not the default.

PiperOrigin-RevId: 381038392
Change-Id: I6400a8edf40a7941d3b5132388d44f7aae698ea5
2021-06-23 08:43:36 -07:00
TensorFlower Gardener
0fc369b1b9 Merge pull request #50297 from ROCmSoftwarePlatform:google_upstream_rocsolver_wrapper
PiperOrigin-RevId: 380234650
Change-Id: I710f59a0a70a7bfb0b775bc8fee54205479a42dd
2021-06-18 12:03:58 -07:00
Deven Desai
1a128d898a set ROCBLAS_TENSILE_LIBPATH when building with --config=rocm
With the integration of rocsolver in the XLA cusolver pass, we need to set the ROCBLAS_TENSILE_LIBPATH env var. This seems to be required by rocsolver (which presumably calls rocblas internally). Not doing so leads to the following error in some of the XLA unit tests

```
test : //tensorflow/compiler/tests:dense_layer_test_gpu                         FAILED in 3 out of 3 in 4.7s

rocBLAS warning: No paths matched /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/compiler/tests/dense_layer_test_gpu.runfiles/org_tensorflow/tensorflow/python/../../_solib_local/_U@local_Uconfig_Urocm_S_Srocm_Crocblas___Uexternal_Slocal_Uconfig_Urocm_Srocm_Srocm_Slib/library/*gfx900*co. Make sure that ROCBLAS_TENSILE_LIBPATH is set correctly.

rocBLAS error: Cannot read /root/.cache/bazel/_bazel_root/efb88f6336d9c4a18216fb94287b8d97/execroot/org_tensorflow/bazel-out/k8-opt/bin/tensorflow/compiler/tests/dense_layer_test_gpu.runfiles/org_tensorflow/tensorflow/python/../../_solib_local/_U@local_Uconfig_Urocm_S_Srocm_Crocblas___Uexternal_Slocal_Uconfig_Urocm_Srocm_Srocm_Slib/library/TensileLibrary.dat: No such file or directory

```
2021-06-16 16:44:24 +00:00
TensorFlower Gardener
ce227000bd Merge pull request #48522 from yongtang:no-aws-hdfs
PiperOrigin-RevId: 371807950
Change-Id: Id7e762945f0b5d965865220d213cb297bb565f3e
2021-05-03 17:03:56 -07:00
Yong Tang
12a9cb07c1 Remove AWS/HDFS related options and licenses
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-04-27 13:41:28 +00:00
YoungSeok Yoon
1a0b21e16b Update NDK version to r19c
PiperOrigin-RevId: 367340749
Change-Id: I770ad6efc9b7a4ec822ba7cafd36d73e31daaf8e
2021-04-07 18:54:45 -07:00
TensorFlower Gardener
9e26f3b56a Merge pull request #47775 from alenik01:aarch64_build_patch
PiperOrigin-RevId: 365049267
Change-Id: I839a9fb319ccc347b50defeaabb1c3f1ec3cfb5c
2021-03-25 09:03:00 -07:00
Aleksandr Nikolaev
1e15aa8c83
Merge branch 'master' into aarch64_build_patch 2021-03-19 19:45:25 +00:00
Christian Sigg
dd372ec5e1 Do not write TF_CONFIGURE_IOS to .bazelrc, only use it in ./configure.py.
PiperOrigin-RevId: 363484115
Change-Id: I5fd6186f19d1612ef9fe85a088aa7a72dc45d26d
2021-03-17 12:48:52 -07:00
Christian Sigg
3c58f664ee Enable XLA by default except on Android/iOS.
Previously, XLA was enabled by default with --config=rbe_linux and when running ./configure.

PiperOrigin-RevId: 363433913
Change-Id: I9afa53496a9da2ae29b71a9ef38fc63b90dfba02
2021-03-17 09:20:15 -07:00
Christian Sigg
2683829da9 Remove no longer needed CUDA 11.0 build configs from .bazelrc.
Use --config=avx_{linux,windows} instead of --config=opt in release builds. This is an NFC because release build scripts set build:opt to enable AVX.

PiperOrigin-RevId: 363193986
Change-Id: Ifb0788e29485873e35469d0936c1d33488315870
2021-03-16 09:03:56 -07:00
Aleksandr Nikolaev
06dd30ef98 Update of --config=mkl_aarch64 with Compute Library support
This PR introduces the support of Compute Library for the Arm
Architecture (ACL) as part of Bazel build.

Signed-off-by: Aleksandr Nikolaev <aleksandr.nikolaev@arm.com>
2021-03-12 19:29:51 -05:00
Christian Sigg
6236b83d80 Switch mlir-generated kernel trigger to starlark-defined flag.
Remove TF_ENABLE_MLIR_GENERATED_GPU_KERNELS env trigger in ./configure for ROCm path. It has already been removed for CUDA, and ROCm currently doesn't yet support kernel gen.

PiperOrigin-RevId: 361635637
Change-Id: Id30c7c45a7fe033410457db9c9b8d51e573482b6
2021-03-08 13:12:16 -08:00
Reed Wanderman-Milne
03bd8a34ed Make default PYTHON_LIB_PATH deterministic.
Before, the default PYTHON_LIB_PATH chosen was non-deterministically. This meant if ./configure was rerun and a different PYTHON_LIB_PATH was chosen, bazel would rebuild TF from scratch.

PiperOrigin-RevId: 356731041
Change-Id: Iefdebd0f6bb106a598f77e95cd36df87bb1c5d68
2021-02-10 07:46:50 -08:00
Austin Anderson
b1f946aed5 Shorten find_cuda_config finder
PiperOrigin-RevId: 353905388
Change-Id: Iaeed674c38bc9346d26e4701f413163212217c37
2021-01-26 11:25:32 -08:00
TensorFlower Gardener
f2e78b8b8a Merge pull request #46075 from machineko:master
PiperOrigin-RevId: 353762309
Change-Id: I49f619f914610a14fd189a0ca169f3cb728f118a
2021-01-25 17:11:17 -08:00
Mihai Maruseac
83ba6a37b2 Updating TensorFlow's bazel version 4.0.0 (the first LTS release).
https://blog.bazel.build/2021/01/19/bazel-4-0.html

PiperOrigin-RevId: 353139694
Change-Id: If2c4516b5d7fa59d032e9c74fb2a0716b2a4f618
2021-01-21 17:37:25 -08:00