mediapipe
mediapipe copied to clipboard
Build did NOT complete successfully on mavxvnni opetions
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Ubuntu20.04
Mobile device if the issue happens on mobile device
N.A.
Browser and version if the issue happens on browser
N.A.
Programming Language and version
C++
MediaPipe version
0.10.15
Bazel version
bazel 6.1.1
Solution
hand_tracking_cpu
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
N.A.
Xcode & Tulsi version (if issue is related to building for iOS)
N.A.
Describe the actual behavior
Compile FAILED: Build did NOT complete successfully
Describe the expected behaviour
Compiling success
Standalone code/steps you may have used to try to get what you need
I need someone help me to pass the compiling process, or to locate the configuration to change `-mavxvnni` to `-mavx512vnni`. I cant found this in project in vscode.
Other info / Complete Logs
WARNING: /home/kyle/Programs/AI/mediapipe-master/mediapipe/framework/BUILD:69:24: in cc_library rule //mediapipe/framework:calculator_cc_proto: target '//mediapipe/framework:calculator_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
WARNING: /home/kyle/Programs/AI/mediapipe-master/mediapipe/framework/tool/BUILD:201:24: in cc_library rule //mediapipe/framework/tool:field_data_cc_proto: target '//mediapipe/framework/tool:field_data_cc_proto' depends on deprecated target '@com_google_protobuf//:cc_wkt_protos': Only for backward compatibility. Do not use.
INFO: Analyzed target //mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
INFO: From Compiling mediapipe/calculators/tensor/inference_calculator_gl_advanced.cc:
In file included from external/opencl_headers/CL/cl.h:20,
from external/org_tensorflow/tensorflow/lite/delegates/gpu/api.h:43,
from ./mediapipe/util/tflite/tflite_gpu_runner.h:28,
from mediapipe/calculators/tensor/inference_calculator_gl_advanced.cc:40:
external/opencl_headers/CL/cl_version.h:22:104: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)
22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
| ^
ERROR: /home/kyle/.cache/bazel/_bazel_kyle/44a99fae907a820caa6a044d6cb88eeb/external/XNNPACK/BUILD.bazel:1881:19: Compiling src/amalgam/gen/avxvnni.c failed: (Exit 1): gcc failed: error executing command (from target @XNNPACK//:avxvnni_prod_microkernels) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 38 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
gcc: error: unrecognized command line option '-mavxvnni'; did you mean '-mavx512vnni'?
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 65.609s, Critical Path: 49.27s
INFO: 448 processes: 86 internal, 362 linux-sandbox.
FAILED: Build did NOT complete successfully
Also, XNNPack raised errors with option '-mamx-int8'. I'm currently using 12-gen intel laptop cpu. Anyone could help me, please.
ERROR: /home/kyle/.cache/bazel/_bazel_kyle/1d4347849449f739cacfa208c890224e/external/XNNPACK/BUILD.bazel:2621:19: Compiling src/amalgam/gen/avx512amx.c failed: (Exit 1): gcc failed: error executing command (from target @XNNPACK//:avx512amx_prod_microkernels) /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections ... (remaining 44 arguments skipped)
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
gcc: error: unrecognized command line option '-mamx-int8'
Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 0.106s, Critical Path: 0.03s
INFO: 22 processes: 22 internal.
FAILED: Build did NOT complete successfully
Could you please try compiling with "bazel build --define xnn_enable_avxvnni=false --define xnn_enable_avx512amx=false" ? It should make both of these errors go away.
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.
This issue was closed due to lack of activity after being marked stale for past 7 days.