Maratyszcza / NNPACK

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

cmake support #88

Closed edgarriba closed 6 years ago

edgarriba commented 7 years ago

Any plan to support cmake build setup?

Maratyszcza commented 7 years ago

Yes, but limited to mobile platforms for now. We are going to merge Caffe 2 CMake files for NNPACK into NNPACK itself.

edgarriba commented 7 years ago

cool, better than nothing

Maratyszcza commented 6 years ago

CMake configuration files for mobile have landed. Build example:

mkdir build
cd build
cmake ..
    -G Ninja
    -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_ROOT/build/cmake/android.toolchain.cmake
    -DANDROID_STL=c++_static
    -DCMAKE_ANDROID_STL_TYPE=c++_static
    -DANDROID_ABI=arm64-v8a
ninja
Maratyszcza commented 6 years ago

Supported everywhere with dd0e4637190734536cd947cd45bf09b2af68e26d