aboutsummaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-28 11:47:37 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-28 11:51:28 -0700
commit6485741bceb5c4dab105cd330a65ba9d364787ac (patch)
tree897609a10f6b668c5157365529feccb73d9cf65c /configure
parent07827d9f14b644a042ed1e94d140d3bbb9110313 (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-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index 1531b4d40a..4bcf11e0a9 100755
--- a/configure
+++ b/configure
@@ -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"