mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Summary: The android.cmake.toolchain file we use from a submodule is unmaintained and not updated since 2015. It causes numerous problems in Caffe2 build: - Caffe2 can't be built for Android ARM64, because gcc toolchain for ARM64 doesn't support NEON-FP16 intrinsics, and the android.cmake.toolchain we use doesn't allow us specify clang-5.0 from NDK r15c - Caffe2 can't be built with Android NDK r16 (the most recent NDK version) - Caffe2 can't be built for Android with Ninja generator This change updates the build script to use $ANDROID/build/cmake/android.cmake.toolchain instead, which is maintained by Android team, and synchronized with Android NDK version. As this toolchain file doesn't support "armeabi-v7a with NEON FP16" ABI, I had to disable mobile OpenGL backend, which requires NEON-FP16 extension to build. With some work, it can be re-enabled in the future. Closes https://github.com/caffe2/caffe2/pull/1740 Differential Revision: D6707099 Pulled By: Maratyszcza fbshipit-source-id: 8488594c4225deed0323c1e54c8d71c804b328df |
||
|---|---|---|
| .. | ||
| appveyor | ||
| add_apache_header.sh | ||
| apache_header.txt | ||
| build_anaconda.sh | ||
| build_android.sh | ||
| build_host_protoc.bat | ||
| build_host_protoc.sh | ||
| build_ios.sh | ||
| build_local.sh | ||
| build_raspbian.sh | ||
| build_tegra_x1.sh | ||
| build_tizen.sh | ||
| build_windows.bat | ||
| diagnose_protobuf.py | ||
| get_python_cmake_flags.py | ||
| start_ipython_notebook.sh | ||
| temp.sh | ||