diff options
author | Manjunath Kudlur <keveman@gmail.com> | 2016-03-07 15:09:08 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-03-07 15:14:02 -0800 |
commit | 13024c58fa87a87db23f6869a0c33598bb5c027d (patch) | |
tree | 335e5de9418f0008fb2d95bb1cdf49b27688a630 /third_party/gpus/cuda | |
parent | d82cc200e027552d46f1a0ff193f9cd48992c3f0 (diff) |
Changed the cuda_crosstool_condition to check for a define of using_cuda.
Checking for a specific crosstool_top directory doesn't work when TensorFlow
is a sub-module for a different project.
Change: 116592676
Diffstat (limited to 'third_party/gpus/cuda')
-rw-r--r-- | third_party/gpus/cuda/BUILD | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/third_party/gpus/cuda/BUILD b/third_party/gpus/cuda/BUILD index fa29fde449..bf7ad7662a 100644 --- a/third_party/gpus/cuda/BUILD +++ b/third_party/gpus/cuda/BUILD @@ -10,14 +10,14 @@ package(default_visibility = ["//visibility:public"]) config_setting( name = "cuda_crosstool_condition", - values = {"crosstool_top": "//third_party/gpus/crosstool"}, + values = {"define": "using_cuda=true"}, visibility = ["//visibility:public"], ) config_setting( name = "using_gcudacc", values = { - "crosstool_top": "//third_party/gpus/crosstool", + "define": "using_cuda=true", "copt": "--use_gcudacc", }, visibility = ["//visibility:public"], @@ -26,7 +26,7 @@ config_setting( config_setting( name = "using_nvcc", values = { - "crosstool_top": "//third_party/gpus/crosstool", + "define": "using_cuda=true", "copt": "--use_nvcc", }, ) |