Skip to content

[pytorch] expose USE_STATIC_DISPATCH macro to public headers#26476

Closed
ljk53 wants to merge 2 commits intogh/ljk53/49/basefrom
gh/ljk53/49/head
Closed

[pytorch] expose USE_STATIC_DISPATCH macro to public headers#26476
ljk53 wants to merge 2 commits intogh/ljk53/49/basefrom
gh/ljk53/49/head

Conversation

@ljk53
Copy link
Contributor

@ljk53 ljk53 commented Sep 19, 2019

Stack from ghstack:

Summary:
USE_STATIC_DISPATCH needs to be exposed as we don't hide header files
containing it for iOS (yet). Otherwise it's error-prone to request all
external projects to set the macro correctly on their own.
Also remove redundant USE_STATIC_DISPATCH definition from other places.

Test Plan:

  • build android gradle to confirm linker can still strip out dead code;
  • integrate with demo app to confirm inference can run without problem;

Differential Revision: D17484260

Summary:
USE_STATIC_DISPATCH needs to be exposed as we don't hide header files
containing it for iOS (yet). Otherwise it's error-prone to request all
external projects to set the macro correctly on their own.
Also remove redundant USE_STATIC_DISPATCH definition from other places.

Test Plan:
- build android gradle to confirm linker can still strip out dead code;
- integrate with demo app to confirm inference can run without problem;

[ghstack-poisoned]
@pytorchbot pytorchbot added module: android Related to Android support module: build Build system issues module: internals Related to internal abstractions in c10 and ATen labels Sep 19, 2019
Summary:
USE_STATIC_DISPATCH needs to be exposed as we don't hide header files
containing it for iOS (yet). Otherwise it's error-prone to request all
external projects to set the macro correctly on their own.
Also remove redundant USE_STATIC_DISPATCH definition from other places.

Test Plan:
- build android gradle to confirm linker can still strip out dead code;
- integrate with demo app to confirm inference can run without problem;

Differential Revision: [D17484260](https://our.internmc.facebook.com/intern/diff/D17484260)

[ghstack-poisoned]
@ljk53
Copy link
Contributor Author

ljk53 commented Sep 21, 2019

Already landed but somehow hasn't been closed automatically...

@ljk53 ljk53 closed this Sep 21, 2019
@facebook-github-bot facebook-github-bot deleted the gh/ljk53/49/head branch October 28, 2019 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: android Related to Android support module: build Build system issues module: internals Related to internal abstractions in c10 and ATen

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants