pytorch/c10
David Reiss 0d9dc469cc Introduce math_compat.h for older Android versions (#28567)
Summary:
When building with Android NDK platforms prior to android-21,
and when building for Android with libstdc++, there are some
gaps in the C and C++ standard libraries.  We use both for our
internal 32-bit builds, so we need PyTorch to support this platform.

All of the gaps are filled with this math_compat.h header, which
needs to be included in any file that uses one of the functions
that are not properly defined on Android.  The file is a bit
hack-tastic, but it is only used on a platform that is not receiving
updates, so there shouldn't be a risk of breakage in the future.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/28567

Test Plan: Internal android build.

Differential Revision: D18099513

Pulled By: dreiss

fbshipit-source-id: 020aab19c6fa083206310b018925d92275d4a548
2019-11-04 17:26:17 -08:00
..
core Bring back the stack #28426 with Windows build fixed (#28843) 2019-11-04 16:32:56 -08:00
cuda Add fused layer norm impl on CUDA in PyTorch (#27634) 2019-10-14 21:26:33 -07:00
hip Revert "remove use of tmp_install" (#15847) 2019-01-08 16:30:19 -08:00
macros c10::string_view (#26616) 2019-10-21 16:10:40 -07:00
test c10::string_view (#26616) 2019-10-21 16:10:40 -07:00
util Introduce math_compat.h for older Android versions (#28567) 2019-11-04 17:26:17 -08:00
CMakeLists.txt c10::KernelFunction (#26337) 2019-09-20 18:55:25 -07:00