Commit Graph

13 Commits

Author SHA1 Message Date
Christian Sigg
a054a5a7ad Escape captured Windows' where.exe output.
This is in preparation of upgrading to bazel 4.0, which flipped `--incompatible_restrict_string_escapes`.

PiperOrigin-RevId: 353656022
Change-Id: Ide31ead6e968c94f3d6106a78ebc1b6b00746eab
2021-01-25 08:59:57 -08:00
Hye Soo Yang
4f87b797b0 Rollback of PR : Fixed build issue on windows: realpath command not found. Reason: Nightly build breaks with the change.
PiperOrigin-RevId: 349488182
Change-Id: I1f77153f1fd1f7a51ca2d79f77222a63ad40c2fd
2020-12-29 17:14:44 -08:00
Erik Smistad
572f537ea9 Fixed build issue on windows: realpath command not found 2020-12-20 15:32:33 +01:00
Geoffrey Martin-Noble
ddb837a810 Look for python3 before python on PATH
TF no longer supports python2. This ensures that python3 will be picked up if available under the common "python3" name in the PATH.

PiperOrigin-RevId: 338014609
Change-Id: Iaf0ee14e3ebbbcd72cf4ef15050bdc4b5968c525
2020-10-20 01:05:41 -07:00
TensorFlower Gardener
336724e40a Merge pull request from njzjz:resolve-symbolic-links-for-cuda
PiperOrigin-RevId: 299867430
Change-Id: I5622a0eb6cd89373a00a07be755f4b3ea572374d
2020-03-09 10:06:18 -07:00
Jinzhe Zeng
aba8e45155
add double quotes for realpath command 2020-02-25 10:48:58 -05:00
Jakob Buchgraber
e9c7aa7f1a Roll out remote config for Python 3.7 on Windows RBE
PiperOrigin-RevId: 296949118
Change-Id: I9881ad0c76cc1095955e643096143ecc206fccf6
2020-02-24 12:34:54 -08:00
Jakob Buchgraber
478ea62407 Support remote repositories in TF_*_CONFIG_REPO environment variables
Currently TF_*_CONFIG_REPO environment variables point to checked in preconfig packages. After migrating to remote config they will point to remote repositories. The "config_repo_label" function ensures both ways continue to work.

PiperOrigin-RevId: 295990961
Change-Id: I7637ff5298893d4ee77354e9b48f87b8c328c301
2020-02-19 09:55:35 -08:00
Jakob Buchgraber
f60fc7a072 remote config: replace all uses of os.environ by get_host_environ
This change is in prepartion for rolling out remote config. It will
allow us to inject environment variables from repository rules as
well as from the shell enviroment.

PiperOrigin-RevId: 295782466
Change-Id: I1eb61fca3556473e94f2f12c45ee5eb1fe51625b
2020-02-18 12:19:55 -08:00
Jakob Buchgraber
fe03adf6e6 Workaround an RBE bug where stderr is merged with stdout.
Any code path using exec_result.stderr won't work with RBE due to
a bug where the service returns stderr as stdout.

PiperOrigin-RevId: 295107492
Change-Id: I5738d46f7bb4cc049636a6f6625abc782d2d1e29
2020-02-14 02:52:27 -08:00
A. Unique TensorFlower
68af2468ca rocm_configure: make _find_libs work with remote execution
Batch all tests if a file/dir exists into a single command
in order to save roundtrips.

PiperOrigin-RevId: 294252998
Change-Id: I516cb9dadad47ef43a83d4b0340a2f3c04402052
2020-02-10 10:43:37 -08:00
A. Unique TensorFlower
99ec314b06 rocm_configure: share code with cuda_configure
Move get_cpu_value() to common.bzl and use it from cuda_configure and rocm_configure

PiperOrigin-RevId: 293807189
Change-Id: I2eb0ef0ab27a64060a99985bcab9ae4706f57fc5
2020-02-07 07:09:09 -08:00
A. Unique TensorFlower
6deb2d610d python_configure: move common functionality to common.bzl
These functions will also be used in cuda_configure.bzl et al.

PiperOrigin-RevId: 293326676
Change-Id: I2d2751691948851b756a3ff3cbc064c05f96c84f
2020-02-05 02:23:16 -08:00