mediapipe: Mediapipe Build for GPU ERROR

System information (Please provide as much relevant information as possible)

  • OS Platform and Distribution: Ubuntu 18.04
  • Compiler version: gcc / g++ 7.5
  • Programming Language and version: Python 3.7
  • Installed using virtualenv? pip? Conda? (if python): virualenv pip
  • MediaPipe version: cf101e6
  • Bazel version: 4.2.1
  • OpenCV version (if running on desktop): 4.5.3 custom build
  • Cuda: 11.3 / cudnn: 8.2.1

Describe the problem: Trying to build MediaPipe with TensorFlow GPU per instructions https://google.github.io/mediapipe/getting_started/gpu_support.html#tensorflow-cuda-support-and-setup-on-linux-desktop and get this error

`ERROR: /home/feedback/.cache/bazel/_bazel_feedback/2fe47e1d8cb429227698b0916e2803b6/external/org_tensorflow/tensorflow/compiler/mlir/tensorflow/BUILD:573:11: Compiling tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc failed: (Exit 4): crosstool_wrapper_driver_is_not_gcc failed: error executing command external/local_config_cuda/crosstool/clang/bin/crosstool_wrapper_driver_is_not_gcc -MD -MF ... (remaining 240 argument(s) skipped)
In file included from external/org_tensorflow/tensorflow/core/common_runtime/inline_function_utils.h:25:0,
                 from external/org_tensorflow/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc:71:
external/org_tensorflow/tensorflow/core/common_runtime/lower_function_call_inline_policy.h:38:1: warning: multi-line comment [-Wcomment]
 // LINT.ThenChange(inline_function_utils.h,\
 ^
gcc: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
Target //mediapipe/examples/desktop/object_detection:object_detection_tensorflow failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 1882.613s, Critical Path: 622.56s
INFO: 6166 processes: 247 internal, 5919 local.
FAILED: Build did NOT complete successfully`

tensorboard 2.8.0 tensorboard-data-server 0.6.1 tensorboard-plugin-wit 1.8.1 tensorflow 2.7.0 tensorflow-estimator 2.7.0 tensorflow-io-gcs-filesystem 0.23.1

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16

Most upvoted comments

@mcdonasd1212 No, I haven’t been able to build it for CUDA. Still waiting for a mod to reply 😅

I will uninstall Cuda 11.3 an go with 10.2 (that will be fun!) and see what happens. Will I need to build Tensorflow from source our can I use the version installed via Pip?