google / XNNPACK

High-efficiency floating-point neural network inference operators for mobile, server, and Web
Other
1.87k stars 368 forks source link

Failure to build on PPC with Bazel 4.2.2 #3950

Closed Flamefire closed 1 year ago

Flamefire commented 1 year ago

When building this (as part of TensorFlow) on PPC with Bazel 4.2.2 I get an error:

external/XNNPACK/BUILD.bazel:7746:26: Configurable attribute "deps" doesn't match this con
figuration (would a default condition help?).
Conditions checked:
 @XNNPACK//:linux_k8
 @XNNPACK//:linux_arm
 @XNNPACK//:linux_armeabi
 @XNNPACK//:linux_armhf
 @XNNPACK//:linux_armv7a
 @XNNPACK//:linux_arm64
 @XNNPACK//:macos_x86_64
 @XNNPACK//:macos_arm64
 @XNNPACK//:windows_x86_64_clang
 @XNNPACK//:windows_x86_64_mingw
 @XNNPACK//:windows_x86_64_msys
 @XNNPACK//:windows_x86_64
 @XNNPACK//:android_armv7
 @XNNPACK//:android_arm64
 @XNNPACK//:android_x86
 @XNNPACK//:android_x86_64
 @XNNPACK//:ios_armv7
 @XNNPACK//:ios_arm64
 @XNNPACK//:ios_arm64e
 @XNNPACK//:ios_x86
 @XNNPACK//:ios_x86_64
 @XNNPACK//:watchos_armv7k
 @XNNPACK//:watchos_arm64_32
 @XNNPACK//:watchos_x86
 @XNNPACK//:watchos_x86_64
 @XNNPACK//:tvos_arm64
 @XNNPACK//:tvos_x86_64
 @XNNPACK//:emscripten_wasm
 @XNNPACK//:emscripten_wasmsimd

Seems that needs a default case to include only the generic sources?

This happens because since TF 2.8.2 "@XNNPACK//:__subpackages__" is used as a dependency.

Maratyszcza commented 1 year ago

PowerPC is not supported in XNNPACK.