From 47b21485352878e080909117aa783d2051bae783 Mon Sep 17 00:00:00 2001 From: Kiril Gorovoy Date: Fri, 27 May 2016 15:22:56 -0800 Subject: Fix Tensorflow compilation error that comes up when TF is used as a submodule and compiled for GPU. Change: 123468144 --- third_party/gpus/cuda/BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/gpus/cuda/BUILD b/third_party/gpus/cuda/BUILD index b68104385d..8bd9650148 100644 --- a/third_party/gpus/cuda/BUILD +++ b/third_party/gpus/cuda/BUILD @@ -178,7 +178,7 @@ genrule( ], cmd = if_cuda( # Under cuda config, create all the symbolic links to the actual cuda files - "OUTPUTDIR=`{} -f $(@D)/../../..`; cd third_party/gpus/cuda; OUTPUTDIR=$$OUTPUTDIR ./cuda_config.sh --check;".format(readlink_command()), + "OUTPUTDIR=`{} -f $(@D)/../../..`; cd `dirname $(location :cuda_config.sh)`; OUTPUTDIR=$$OUTPUTDIR ./cuda_config.sh --check;".format(readlink_command()), # Under non-cuda config, create all dummy files to make the build go through ";".join([ -- cgit v1.2.3