Closed waynehong666 closed 6 years ago
NNPACK switched to CMake for most builds. To build it with the new build system:
cd NNPACK/build
cmake -DANDROID_TOOLCHAIN_FILE=$ANDROID_NDK/build/cmake/android.cmake.toolchain -DANDROID_TOOLCHAIN=gcc ..
make
For additional options (e.g. how to build for a different Android ABI), see Android NDK CMake guide
When building the tests, I got the following error: error: undefined reference to 'nnp_sgemm_only_6x8__aarch32_neon'
Are the tests working on Android devices?
@waynehong666: i reproduced the error, and fixed with 20385210dabbae919d9c410d4f824c3913a7cedd
There is no jni folder in NNPACK. How should I build NNPACK for Android.