Maratyszcza / NNPACK

Acceleration package for neural networks on multi-core CPUs
BSD 2-Clause "Simplified" License
1.67k stars 316 forks source link

cmake: add USE_SYSTEM_* options; support find_package(NNPACK) #217

Closed ConnorBaker closed 1 year ago

ConnorBaker commented 1 year ago

Similar to the work done in https://github.com/pytorch/pytorch/pull/37137, this adds the following CMake options:

This is particularly useful in the context of Nix, where we can build these libraries once and then re-use them elsewhere to avoid rebuilding vendors dependencies.

Additionally, adds a CMake configuration file to make it possible for CMake-based projects to use find_package to consume this library.

ConnorBaker commented 1 year ago

Closed in favor of contributing to XNNPACK.