Commit Graph

387 Commits

Author SHA1 Message Date
TensorFlower Gardener
698e70e1c6 Merge pull request #74090 from apraga:no-distutil
PiperOrigin-RevId: 681589525
2024-10-02 15:16:02 -07:00
Alexis Praga
9476971caa Correcting import order for linter
Shutil mainly
2024-08-31 19:17:31 +02:00
Alexis Praga
fe3c0659eb Removing distutils leftover 2024-08-31 19:08:17 +02:00
A. Unique TensorFlower
9b5fa66dc6 Introduce hermetic CUDA in Google ML projects.
1) Hermetic CUDA rules allow building wheels with GPU support on a machine without GPUs, as well as running Bazel GPU tests on a machine with only GPUs and NVIDIA driver installed. When `--config=cuda` is provided in Bazel options, Bazel will download CUDA, CUDNN and NCCL redistributions in the cache, and use them during build and test phases.

    [Default location of CUNN redistributions](https://developer.download.nvidia.com/compute/cudnn/redist/)

    [Default location of CUDA redistributions](https://developer.download.nvidia.com/compute/cuda/redist/)

    [Default location of NCCL redistributions](https://pypi.org/project/nvidia-nccl-cu12/#history)

2) To include hermetic CUDA rules in your project, add the following in the WORKSPACE of the downstream project dependent on XLA.

   Note: use `@local_tsl` instead of `@tsl` in Tensorflow project.

   ```
   load(
      "@tsl//third_party/gpus/cuda/hermetic:cuda_json_init_repository.bzl",
      "cuda_json_init_repository",
   )

   cuda_json_init_repository()

   load(
      "@cuda_redist_json//:distributions.bzl",
      "CUDA_REDISTRIBUTIONS",
      "CUDNN_REDISTRIBUTIONS",
   )
   load(
      "@tsl//third_party/gpus/cuda/hermetic:cuda_redist_init_repositories.bzl",
      "cuda_redist_init_repositories",
      "cudnn_redist_init_repository",
   )

   cuda_redist_init_repositories(
      cuda_redistributions = CUDA_REDISTRIBUTIONS,
   )

   cudnn_redist_init_repository(
      cudnn_redistributions = CUDNN_REDISTRIBUTIONS,
   )

   load(
      "@tsl//third_party/gpus/cuda/hermetic:cuda_configure.bzl",
      "cuda_configure",
   )

   cuda_configure(name = "local_config_cuda")

   load(
      "@tsl//third_party/nccl/hermetic:nccl_redist_init_repository.bzl",
      "nccl_redist_init_repository",
   )

   nccl_redist_init_repository()

   load(
      "@tsl//third_party/nccl/hermetic:nccl_configure.bzl",
      "nccl_configure",
   )

   nccl_configure(name = "local_config_nccl")
   ```

PiperOrigin-RevId: 662981325
2024-08-14 11:47:44 -07:00
A. Unique TensorFlower
caa2b33e73 Disable TensorRT in TF, XLA and JAX.
This is needed for hermetic CUDA integration in Google ML projects since tensorRT is not distributed in the same free way as other CUDA/CUDNN distributives.

PiperOrigin-RevId: 662601190
2024-08-13 12:17:00 -07:00
Michael Hudgins
a79c87342c Upgrade to support and default to clang 18 for the OSS compiler
PiperOrigin-RevId: 651080905
2024-07-10 11:56:24 -07:00
TensorFlower Gardener
5c3712bd25 Merge pull request #64673 from maflcko:patch-1
PiperOrigin-RevId: 647806180
2024-06-28 15:47:12 -07:00
TensorFlower Gardener
b0139f5901 Merge pull request #62309 from eukub:regexp_impovement
PiperOrigin-RevId: 641778034
2024-06-09 21:32:44 -07:00
Raunak
e46de6348d switched to f-strings 2024-04-15 11:25:36 -07:00
Raunak
5bb479dc97 fix escape scape error 2024-04-12 15:28:27 -07:00
TensorFlower Gardener
8df02e0d6b Merge pull request #63995 from Intel-tensorflow:mraunak/tf_configure
PiperOrigin-RevId: 621063620
2024-04-02 00:12:07 -07:00
MarcoFalke
a11fb5bbf5 Update configure.py to support pre-release versions of clang 2024-03-28 15:09:05 +01:00
Fergus Henderson
aaa5de3fb7 Reverts changelist 506335783
PiperOrigin-RevId: 619350353
2024-03-26 18:23:21 -07:00
mraunak
f187e34111
Update configure.py 2024-03-25 13:45:31 -07:00
mraunak
853ee43529
Update configure.py 2024-03-25 13:33:24 -07:00
mraunak
00090f0082
Update configure.py 2024-03-25 13:08:24 -07:00
mraunak
a71465d024
Update configure.py 2024-03-25 10:42:12 -07:00
Raunak
3f2e1e54a8 update configure.py 2024-03-19 14:10:06 -07:00
eukub
682f4cf312 Improvement of the regular expression 2023-11-02 13:50:27 +03:00
A. Unique TensorFlower
f6042ed89e Disable clang extension that rejects type definitions within offsetof.
This was added in clang-16 by https://reviews.llvm.org/D133574.
Still required for clang-17.

PiperOrigin-RevId: 577229663
2023-10-27 10:03:15 -07:00
Kanglan Tang
5f7a3ed8d9 Set the default clang version to 17 or 16
PiperOrigin-RevId: 567721179
2023-09-22 14:48:08 -07:00
A. Unique TensorFlower
3de4416895 Upgrade to LLVM 17, CUDA 12.2, and CuDNN 8.9.4
This is updating TF's default toolchain to LLVM 17, as well as
CUDA and cuDNN to the latest releases.

PiperOrigin-RevId: 566403707
2023-09-18 13:57:18 -07:00
TensorFlower Gardener
adcfd3f69c Merge pull request #61809 from terryheo:use-ndk-r26
PiperOrigin-RevId: 565170354
2023-09-13 15:19:18 -07:00
Terry Heo
0caae80adf Update build rules to use Starlark-based repository rule 2023-09-07 10:59:08 -07:00
Terry Heo
81658fc94b Update configure.py to support NDK 25c 2023-09-06 14:08:45 -07:00
TensorFlower Gardener
9f66a76f1f Merge pull request #60189 from linux-on-ibm-z:enable_secure_grpc_on_s390x
PiperOrigin-RevId: 548570049
2023-07-16 21:04:27 -07:00
Kanglan Tang
704dddce91 Remove lld to fix GCS build breakage due to ld not found.
PiperOrigin-RevId: 540441442
2023-06-14 18:55:03 -07:00
Kanglan Tang
b29c46e541 Update configure.py to set Clang as the compiler for Linux GPU build
PiperOrigin-RevId: 540321339
2023-06-14 11:03:45 -07:00
Kanglan Tang
055e421c40 Update configure.py to set Clang as the compiler for Linux CPU build
PiperOrigin-RevId: 540301729
2023-06-14 10:03:41 -07:00
Michael Hudgins
6cb26fb673 Update configure.py to set Clang as the compiler for Linux CPU build
PiperOrigin-RevId: 537944155
2023-06-05 12:09:02 -07:00
Kanglan Tang
777dfc8b91 Update configure.py to set Clang as the compiler for Linux CPU build
PiperOrigin-RevId: 537923719
2023-06-05 10:59:56 -07:00
A. Unique TensorFlower
bdf72f5aab Removes the --flaky_test_attempts=2 flag from the test jobs.
PiperOrigin-RevId: 532340336
2023-05-15 23:09:03 -07:00
A. Unique TensorFlower
1d49c3844a Reduces --flaky_test_attempts from 3 to 2.
PiperOrigin-RevId: 530484947
2023-05-08 21:03:14 -07:00
Kanglan Tang
efc730166d Add -oss_excluded to TF build/test tag filters
Currently, `no_oss` is used to exclude a test from running in the official TF OSS test infrastructure. However, it is difficult to distinguish between temporary and permanent exclusions. For example, a test may be disabled temporarily if it is broken, or it may be designed to not run on OSS permanently. To address this issue, we introduce a new tag `oss_excluded` for platform exclusion design. `no_oss` will now be considered to disable broken tests, while `oss_excluded` will be used to permanently exclude a test from running on OSS.

PiperOrigin-RevId: 516372702
2023-03-13 17:54:07 -07:00
Kanglan Tang
1d379fd71c Add -windows_excluded to TF build/test tag filters
Currently, `no_windows` is used to exclude a test from running in the windows environment. However, it is difficult to distinguish between temporary and permanent exclusions. For example, a test may be disabled temporarily if it is broken, or it may be designed to not run on windows environment permanently. To address this issue, we introduce a new tag `windows_excluded` for platform exclusion design. `no_windows` will now be considered to disable broken tests, while `windows_excluded` will be used to permanently exclude a test from running on windows environment.

PiperOrigin-RevId: 515716934
2023-03-10 13:07:12 -08:00
Kanglan Tang
999ed30091 Add -mac_excluded to TF build/test tag filters
Currently, `no_mac` or `nomac` is used to exclude a test from running in the mac environment. However, it is difficult to distinguish between temporary and permanent exclusions. For example, a test may be disabled temporarily if it is broken, or it may be designed to not run on mac environment permanently. To address this issue, we introduce a new tag `mac_excluded` for platform exclusion design. `no_mac` or `nomac` will now be considered to disable broken tests, while `mac_excluded` will be used to permanently exclude a test from running on mac environment.

PiperOrigin-RevId: 515676485
2023-03-10 10:41:28 -08:00
Kun-Lu
6c23541ce7 Set system_lib as the default option for ssl on s390x
Signed-off-by: Kun-Lu <kun.lu@ibm.com>
2023-02-16 09:21:58 -05:00
Terry Heo
593bae33dc Update ANDROID_NDK_API_LEVEL default in configure.py
PiperOrigin-RevId: 506335783
2023-02-01 09:19:27 -08:00
TensorFlower Gardener
73ed7e985b Merge pull request #56913 from maxiwell:fix-configure-gold-pr
PiperOrigin-RevId: 498449818
2022-12-29 14:38:57 -08:00
TensorFlower Gardener
8d63ee9fae Merge pull request #56360 from njzjz:patch-1
PiperOrigin-RevId: 498391863
2022-12-29 08:28:47 -08:00
Quentin Khan
474619a7b4 Update TFLite supported Android NDK versions.
PiperOrigin-RevId: 491607428
2022-11-29 05:22:19 -08:00
TensorFlower Gardener
28b97bad94 Merge pull request #56762 from ROCmSoftwarePlatform:fix-upstream-rocm
PiperOrigin-RevId: 489405842
2022-11-18 00:37:05 -08:00
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
Maxiwell S. Garcia
704a7e70e4 ppc64le: set 'gold' linker in the configure.py to fix ppc build
The commit 3484416b49 removed the
'rules_cc_toolchains' call from the bazel configuration. After that,
the build process is calling 'lld' to link several binaries, causing
problems on ppc64le arch.

This patch set the 'gold' linker as default in the configure script.
2022-07-26 14:52:29 -05:00
Jinzhe Zeng
b3a8fdbcb7
resolve gcc_host_compiler_path in a symlink directory
Resolves a missing dependency declarations error, when gcc_host_compiler_path is in a symlink directory resolving to other directories.
2022-06-04 19:06:58 -04: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