message: Clean up our libcuda stub when building the GPU Docker container
diff: @@ -78,15 +78,18 @@ WORKDIR /tensorflow
  # Configure the build for our CUDA configuration.
  ENV CI_BUILD_PYTHON python
  -ENV LD_LIBRARY_PATH /usr/local/cuda/lib64/stubs:/usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
  +ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
  ENV TF_NEED_CUDA 1
  ENV TF_CUDA_COMPUTE_CAPABILITIES=3.0,3.5,5.2,6.0,6.1
  -RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1
  -RUN tensorflow/tools/ci_build/builds/configured GPU \
  - bazel build -c opt --config=cuda --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
  +RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/stubs/libcuda.so.1 && \
  + LD_LIBRARY_PATH=/usr/local/cuda/lib64/stubs:${LD_LIBRARY_PATH} \
  + tensorflow/tools/ci_build/builds/configured GPU \
  + bazel build -c opt --config=cuda \
  + --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
  tensorflow/tools/pip_package:build_pip_package && \
  + rm /usr/local/cuda/lib64/stubs/libcuda.so.1 && \
  bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/pip && \
  pip --no-cache-dir install --upgrade /tmp/pip/tensorflow-*.whl && \
  rm -rf /tmp/pip && \
  