-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
summer-ospp 2022: 飞桨PaddlePaddle Sparse Conv开发和优化: gather-gemm-scatter fuse #46679
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Convert slice+grad oneDNN fluid kernels to PHI * Change mutable_data to Alloc * Refactor licences
…t in dy2static (PaddlePaddle#46128) * add numpy api err msg * fix bug * fix unittest * add set_state_dict err * rewrite numpy_api_check * add define * change err msg * fix test * move import statement
umiswing
changed the title
summer-ospp 2022: 飞桨PaddlePaddle Sparse Conv开发和优化-group-gather-gemm fuse
summer-ospp 2022: 飞桨PaddlePaddle Sparse Conv开发和优化: gather-gemm-scatter fuse
Oct 31, 2022
zkh2016
reviewed
Oct 31, 2022
@@ -1,11 +1,8 @@ | |||
/* Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里应该是有空行的?
zkh2016
previously approved these changes
Oct 31, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM。
辛苦后面补充下反向融合的实现。
zkh2016
approved these changes
Oct 31, 2022
zkh2016
pushed a commit
to zkh2016/Paddle
that referenced
this pull request
Jan 31, 2023
lanxianghit
pushed a commit
that referenced
this pull request
Feb 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR types
Performance optimization
PR changes
APIs, Others
Describe
cutlass.cmake
to download cutlass v2.9.1 automatically.Conv3dCOOGpuKernel
with cutlass, this fusion supportsfp16
,fp32
andfp64
, but only works for channels cutlass supports. I remain the old code for other channels.gather_gemm_scatter.h
andgather_gemm_scatter.cu
. These two files define the details of the fused kernel.Following is a comparison of running 500 times forward with gather-gemm-grouped fusion and without this fusion on GeForce RTX 3060 Mobile GPU. This fusion can achieve 1.80 speedups at most.
Shape details: