aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <nobody@tensorflow.org>2016-05-13 12:17:40 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-05-13 13:21:59 -0700
commit94e392e5346550ba2e0c20520d2106ff49adcfb4 (patch)
treee35dd3123fd026175aebc0dc82e13602c6efc87f /tools
parentd97f1bb7e0cf427f1ca45dc1516ac8f37c7618f1 (diff)
Pass --define=using_cuda_nvcc to CUDA builds.
This has no practical effect, as CUDA builds are always with nvcc, but it lets us modify the build config rule //third_party/gpus/cuda:using_nvcc so it returns true, rather than false, for CUDA builds. Change: 122288952
Diffstat (limited to 'tools')
-rw-r--r--tools/bazel.rc.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bazel.rc.template b/tools/bazel.rc.template
index e90ec790fd..2a88b98f34 100644
--- a/tools/bazel.rc.template
+++ b/tools/bazel.rc.template
@@ -1,5 +1,5 @@
build:cuda --crosstool_top=//third_party/gpus/crosstool
-build:cuda --define=using_cuda=true
+build:cuda --define=using_cuda=true --define=using_cuda_nvcc=true
build --force_python=py$PYTHON_MAJOR_VERSION
build --python$PYTHON_MAJOR_VERSION_path=$PYTHON_BINARY