Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Pytorch] Add python binding to use mobile cpu allocator. #52323

Closed
wants to merge 1 commit into from

Conversation

kimishpatel
Copy link
Contributor

Summary:
Using default cpu allocator for ops executed on qnnpack backend will result in
asan failures with heap overflow since qnnpack (and xnnpack) can access input
beyond their and/beginning.

Here we are enabling this feature specifically to enable dynamic sparse linear op test
using qnnpack engine. In dynamic linear op, the fp32 bias is not packed and
hence can result in out-of-bound access.

Test Plan: test_set_default_mobile_cpu_allocator.py

Reviewed By: z-a-f

Differential Revision: D26263481

Summary:
Using default cpu allocator for ops executed on qnnpack backend will result in
asan failures with heap overflow since qnnpack (and xnnpack) can access input
beyond their and/beginning.

Here we are enabling this feature specifically to enable dynamic sparse linear op test
using qnnpack engine. In dynamic linear op, the fp32 bias is not packed and
hence can result in out-of-bound access.

Test Plan: test_set_default_mobile_cpu_allocator.py

Reviewed By: z-a-f

Differential Revision: D26263481

fbshipit-source-id: 14c8c93d3ab357cf1024b87ee8de0f5be5581092
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Feb 16, 2021

💊 CI failures summary and remediations

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


💚 💚 Looks good so far! There are no failures yet. 💚 💚


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 to the (internal) Dr. CI Users group.

@facebook-github-bot
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Feb 17, 2021

Codecov Report

Merging #52323 (d419bdf) into master (52af23b) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master   #52323      +/-   ##
==========================================
- Coverage   80.64%   80.63%   -0.01%     
==========================================
  Files        1959     1959              
  Lines      214888   214908      +20     
==========================================
+ Hits       173286   173301      +15     
- Misses      41602    41607       +5     

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in a6e94d2.

malfet added a commit to malfet/pytorch that referenced this pull request Feb 17, 2021
Those were added by pytorch#52323 but not exposed to MyPy type checking system
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
)

Summary:
Pull Request resolved: pytorch#52323

Using default cpu allocator for ops executed on qnnpack backend will result in
asan failures with heap overflow since qnnpack (and xnnpack) can access input
beyond their and/beginning.

Here we are enabling this feature specifically to enable dynamic sparse linear op test
using qnnpack engine. In dynamic linear op, the fp32 bias is not packed and
hence can result in out-of-bound access.

Test Plan: test_set_default_mobile_cpu_allocator.py

Reviewed By: z-a-f

Differential Revision: D26263481

fbshipit-source-id: a49227cac7e6781b0db4a156ca734d7671972d9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants