8000 blas copy and axpy to aten by aocsa · Pull Request #52345 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

blas copy and axpy to aten #52345

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

Closed
wants to merge 6 commits into from
Closed

Conversation

aocsa
Copy link
Contributor
@aocsa aocsa commented Feb 17, 2021

Fixes #{issue number}

Follow-up PR: #50984

copy and axpy functions are ported to ATen. THBlas_axpy and THBlas_copy are removed.

Looking forward your comments cc @ngimel, @mruberry

@facebook-github-bot
Copy link
Contributor
facebook-github-bot commented Feb 17, 2021

💊 CI failures summary and remediations

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


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

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.

@codecov
Copy link
codecov bot commented Feb 17, 2021

Codecov Report

Merging #52345 (747cb7d) into master (a0652c8) will decrease coverage by 0.03%.
The diff coverage is 7.95%.

@@            Coverage Diff             @@
##           master   #52345      +/-   ##
==========================================
- Coverage   80.79%   80.76%   -0.04%     
==========================================
  Files        1972     1971       -1     
  Lines      216032   216093      +61     
==========================================
- Hits       174539   174521      -18     
- Misses      41493    41572      +79     

@ejguan ejguan added module: porting Issues related to porting TH/THNN legacy to ATen native module: complex Related to complex number support in PyTorch triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Feb 17, 2021
@aocsa aocsa requested a review from peterbell10 February 17, 2021 21:44
@aocsa aocsa force-pushed the aocsa/thblas_to_aten branch 2 times, most recently from 50d5a77 to c2032c0 Compare February 18, 2021 19:55
8000
Copy link
Contributor
@anjali411 anjali411 left a comment

Choose a reason for hiding this comment

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

lgtm! just wondering if we should add the axpy and copy functions in /home/chourdiaanjali/pytorch/aten/src/ATen/native/sparse/... instead of /home/chourdiaanjali/pytorch/aten/src/ATen/native/cpu/.... @zou3519 what do you think?

@zou3519
Copy link
Contributor
zou3519 commented Feb 18, 2021

lgtm! just wondering if we should add the axpy and copy functions in /home/chourdiaanjali/pytorch/aten/src/ATen/native/sparse/... instead of /home/chourdiaanjali/pytorch/aten/src/ATen/native/cpu/.... @zou3519 what do you think?

axpy and copy are general functions that operate on CPU that can be used for non-sparse applications. It just so happens in our case that we use them to accelerate our sparse tensor APIs. Because they are general purpose BLAS APIs I think we should keep them in native/cpu/BlasKernel.cpp

@aocsa
Copy link
Contributor Author
aocsa commented Feb 19, 2021

Thanks @ngimel for the feedback. I addressed the comments and fixed the errors found in logic.

@aocsa aocsa force-pushed the aocsa/thblas_to_aten branch from 80a3d85 to 747cb7d Compare February 23, 2021 02:10
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.

@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@ngimel merged this pull request in 0dac7d8.

aocsa added a commit to Quansight/pytorch that referenced this pull request Mar 15, 2021
Summary:
Fixes #{issue number}

Follow-up PR: pytorch#50984

`copy` and `axpy` functions are ported to ATen. `THBlas_axpy` and `THBlas_copy` are removed.

Looking forward your comments cc ngimel, mruberry

Pull Request resolved: pytorch#52345

Reviewed By: zou3519

Differential Revision: D26756533

Pulled By: ngimel

fbshipit-source-id: 97649485eeb6b361d6434c4701539b5abba4a17d
xsacha pushed a commit to xsacha/pytorch that referenced this pull request Mar 31, 2021
Summary:
Fixes #{issue number}

Follow-up PR: pytorch#50984

`copy` and `axpy` functions are ported to ATen. `THBlas_axpy` and `THBlas_copy` are removed.

Looking forward your comments cc ngimel, mruberry

Pull Request resolved: pytorch#52345

Reviewed By: zou3519

Differential Revision: D26756533

Pulled By: ngimel

fbshipit-source-id: 97649485eeb6b361d6434c4701539b5abba4a17d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged module: complex Related to complex number support in PyTorch module: porting Issues related to porting TH/THNN legacy to ATen native open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants
0