google / google/XNNPACK

How to build XNNPACK by Bazel 6.5 in windows, but without avx

Open
#7,781 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.5k
Forks
560
Avg merge
1d 6h
Merged PRs (30d)
163

Description

I am trying to build tensorflow 2.18.0 with bazel 6.5, in config I put all the noavx flags,
and in bazel build I used --define=tflite_with_xnnpack=false, but still fails with:

ERROR: C:/users/user/_bazel_user/yopxtjri/external/XNNPACK/BUILD.bazel:803:36: Compiling external/XNNPACK/avx512vnni_prod_microkernels.c failed: (Exit 1): clang-cl.exe failed: error executing command (from target @XNNPACK//:avx512vnni_prod_microkernels)

The error message clearly indicates that even though I'm trying to build without AVX, the build system is still trying to compile code using AVX-512 instructions (specifically `avx512vnni_prod_microkernels.c`). This is happening within the XNNPACK library, which TensorFlow uses for optimized operations.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.