Skip to content

Conversation

@dreiss
Copy link
Contributor

@dreiss dreiss commented Oct 24, 2019

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.

Test Plan: Internal android build.

Differential Revision: D18099513

@dreiss dreiss requested a review from apaszke as a code owner October 24, 2019 01:23
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Oct 24, 2019
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18099513

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18099513

@dreiss
Copy link
Contributor Author

dreiss commented Oct 29, 2019

@gchanan , any concerns with the include in THNN/SoftPlus?

@dreiss dreiss requested a review from smessmer October 29, 2019 23:52
Summary:
Pull Request resolved: pytorch#28567

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.

Test Plan: Internal android build.

Differential Revision: D18099513

fbshipit-source-id: 253b6e5ea4677741f6caed28de708128f4e0913c
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D18099513

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dreiss is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Nov 5, 2019
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: pytorch/pytorch#28567

Test Plan: Internal android build.

Differential Revision: D18099513

Pulled By: dreiss

fbshipit-source-id: 020aab19c6fa083206310b018925d92275d4a548
@facebook-github-bot
Copy link
Contributor

@dreiss merged this pull request in 0d9dc46.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants