diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-28 11:47:37 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-28 11:51:28 -0700 |
commit | 6485741bceb5c4dab105cd330a65ba9d364787ac (patch) | |
tree | 897609a10f6b668c5157365529feccb73d9cf65c /configure | |
parent | 07827d9f14b644a042ed1e94d140d3bbb9110313 (diff) |
When GPU is configured, selection of config to set depends on value of TF_CUDA_CLANG (--config=cuda / --config=cuda_clang)
PiperOrigin-RevId: 160433337
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -714,8 +714,13 @@ if is_windows; then write_to_bazelrc "test --config=win-cuda" else # If CUDA is enabled, always use GPU during build and test. - write_to_bazelrc "build --config=cuda" - write_to_bazelrc "test --config=cuda" + if [ "$TF_CUDA_CLANG" == "1" ]; then + write_to_bazelrc "build --config=cuda_clang" + write_to_bazelrc "test --config=cuda_clang" + else + write_to_bazelrc "build --config=cuda" + write_to_bazelrc "test --config=cuda" + fi fi # end of if "$TF_NEED_CUDA" == "1" |