Skip to content

Port xnnpack operators to new registration API#36800

Closed
ezyang wants to merge 11 commits intogh/ezyang/730/basefrom
gh/ezyang/730/head
Closed

Port xnnpack operators to new registration API#36800
ezyang wants to merge 11 commits intogh/ezyang/730/basefrom
gh/ezyang/730/head

Conversation

@ezyang
Copy link
Copy Markdown
Contributor

@ezyang ezyang commented Apr 17, 2020

Stack from ghstack:

Signed-off-by: Edward Z. Yang ezyang@fb.com

Differential Revision: D21089650

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 17, 2020
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 79f2632
Pull Request resolved: #36800
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

[ghstack-poisoned]
@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Apr 17, 2020

💊 Build failures summary and remediations

As of commit c1eb276 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 1 failed


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 28 times.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 17, 2020
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 788c7e8
Pull Request resolved: #36800
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 21, 2020
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: ade6acd
Pull Request resolved: #36800
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
@ezyang ezyang requested review from jamesr66a and kimishpatel April 21, 2020 17:21
ezyang added a commit that referenced this pull request Apr 21, 2020
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: af0c261
Pull Request resolved: #36800
@ezyang ezyang requested review from bhosmer and smessmer April 21, 2020 17:21
@bhosmer
Copy link
Copy Markdown

bhosmer commented Apr 21, 2020

Here's an error out of ci/circleci: pytorch_xla_linux_bionic_py3_6_clang9_build btw - marked upstream but it caught my eye

Apr 21 17:59:34 torch_xla/csrc/aten_xla_type_default.cpp:9661:20: error: use of undeclared identifier 'aten'; did you mean 'atan'?
Apr 21 17:59:34 TORCH_LIBRARY_IMPL(aten, XLA, m) {
Apr 21 17:59:34                    ^~~~
Apr 21 17:59:34                    atan
Apr 21 17:59:34 /usr/bin/../lib/gcc/x86_64-linux-gnu/7.5.0/../../../../include/c++/7.5.0/math.h:41:12: note: 'atan' declared here
Apr 21 17:59:34 using std::atan;
Apr 21 17:59:34            ^
Apr 21 17:59:34 torch_xla/csrc/aten_xla_type_default.cpp:9661:1: error: C++ requires a type specifier for all declarations
Apr 21 17:59:34 TORCH_LIBRARY_IMPL(aten, XLA, m) {
Apr 21 17:59:34 ^
Apr 21 17:59:34 torch_xla/csrc/aten_xla_type_default.cpp:9661:26: error: use of undeclared identifier 'XLA'
Apr 21 17:59:34 TORCH_LIBRARY_IMPL(aten, XLA, m) {
Apr 21 17:59:34                          ^
Apr 21 17:59:34 torch_xla/csrc/aten_xla_type_default.cpp:9661:31: error: use of undeclared identifier 'm'
Apr 21 17:59:34 TORCH_LIBRARY_IMPL(aten, XLA, m) {
Apr 21 17:59:34                               ^
Apr 21 17:59:34 torch_xla/csrc/aten_xla_type_default.cpp:9661:33: error: expected ';' after top level declarator
Apr 21 17:59:34 TORCH_LIBRARY_IMPL(aten, XLA, m) {
Apr 21 17:59:34                                 ^
Apr 21 17:59:34                                 ;

@ezyang
Copy link
Copy Markdown
Contributor Author

ezyang commented Apr 21, 2020

Yeah, this is a companion change to xla for the earlier diff in the stack that needs to be landed together

ezyang added 2 commits April 23, 2020 09:46
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 23, 2020
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 026b66e
Pull Request resolved: #36800
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

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

[ghstack-poisoned]
ezyang added a commit that referenced this pull request Apr 28, 2020
Signed-off-by: Edward Z. Yang <ezyang@fb.com>

ghstack-source-id: 5ba311b
Pull Request resolved: #36800
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ezyang merged this pull request in a3ab560.

@facebook-github-bot facebook-github-bot deleted the gh/ezyang/730/head branch May 3, 2020 14:17
IvanKobzarev added a commit that referenced this pull request Jun 10, 2020
…register api"


Vulkan build was not integrated with CI, it fails without this change.
There were 2 separate problems
1.  Recently added aten/src/ATen/templates/Functions.cpp missed VulkanType in header

2. Applying the new registration api, similar to xnnpack change
#36800

Test plan:
`ANDROID_ABI=x86 ./scripts/build_android.sh -DUSE_VULKAN=ON` builds ok

CI integration for it is in the next PR in this stack ( #39767 ) 
job `ci/circleci: pytorch_linux_xenial_py3_clang5_android_ndk_r19c_x86_32_vulkan_build`

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

[ghstack-poisoned]
facebook-github-bot pushed a commit that referenced this pull request Jun 10, 2020
#39771)

Summary:
Pull Request resolved: #39771

Vulkan build was not integrated with CI, it fails without this change.
There were 2 separate problems
1.  Recently added aten/src/ATen/templates/Functions.cpp missed VulkanType in header

2. Applying the new registration api, similar to xnnpack change
#36800

Test Plan:
`ANDROID_ABI=x86 ./scripts/build_android.sh -DUSE_VULKAN=ON` builds ok

CI integration for it is in the next PR in this stack ( #39767 )
job `ci/circleci: pytorch_linux_xenial_py3_clang5_android_ndk_r19c_x86_32_vulkan_build`

Differential Revision: D21975992

Pulled By: IvanKobzarev

fbshipit-source-id: b0400a9cb0ae90d7763ebeb5b8f7ee932a2148e1
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Pull Request resolved: pytorch#36800

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Differential Revision: D21089650

Pulled By: ezyang

fbshipit-source-id: 1babdb5524038e3951d3c4303e4ba87e68b4f138
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
pytorch#39771)

Summary:
Pull Request resolved: pytorch#39771

Vulkan build was not integrated with CI, it fails without this change.
There were 2 separate problems
1.  Recently added aten/src/ATen/templates/Functions.cpp missed VulkanType in header

2. Applying the new registration api, similar to xnnpack change
pytorch#36800

Test Plan:
`ANDROID_ABI=x86 ./scripts/build_android.sh -DUSE_VULKAN=ON` builds ok

CI integration for it is in the next PR in this stack ( pytorch#39767 )
job `ci/circleci: pytorch_linux_xenial_py3_clang5_android_ndk_r19c_x86_32_vulkan_build`

Differential Revision: D21975992

Pulled By: IvanKobzarev

fbshipit-source-id: b0400a9cb0ae90d7763ebeb5b8f7ee932a2148e1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants