pytorch/scripts
Marat Dukhan a7ef4e4d46 Use android.cmake.toolchain from Android NDK
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
2018-01-23 11:32:41 -08:00
..
appveyor bugfix for Windows, esp. VS 2017 2017-03-21 05:17:59 -07:00
add_apache_header.sh Re-license to Apache 2017-09-28 16:22:00 -07:00
apache_header.txt Re-license to Apache 2017-09-28 16:22:00 -07:00
build_anaconda.sh Adding a separate script for anaconda builds 2018-01-18 16:03:45 -08:00
build_android.sh Use android.cmake.toolchain from Android NDK 2018-01-23 11:32:41 -08:00
build_host_protoc.bat Fix Windows build 2017-09-21 20:13:15 -07:00
build_host_protoc.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_ios.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_local.sh Adding conda specific script to macos builds 2018-01-03 17:14:27 -08:00
build_raspbian.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_tegra_x1.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_tizen.sh Allow specifying cmake build directory in the build scripts 2017-11-20 20:32:30 -08:00
build_windows.bat Update protobuf detection 2017-10-12 11:48:50 -07:00
diagnose_protobuf.py Re-apply #266 2017-04-25 21:17:04 -07:00
get_python_cmake_flags.py Officially support Python 3 in Conda build. 2017-09-23 16:16:49 -07:00
start_ipython_notebook.sh Ipython notebook directory name is changed, Change from ipython to jupyter, Also pass arguments instead of fixing --ip 2017-12-11 13:05:40 -08:00
temp.sh Re-license to Apache 2017-09-28 16:22:00 -07:00