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

optimize the GPU inplementation of stack_op #19610

Closed
wants to merge 10 commits into from

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented Sep 3, 2019

stack_op's function is the same as concat, except the output's dims. We can call concat functor to optimize it. The current code is implemented by thrust which may generate the calling of cudaMalloc, cudaFree and Wait. See the timelien of ernie (PaddlePaddle/benchmark#165 (comment)):

image

@jeng1220
Copy link
Collaborator

@NHZlX ,
looks like this patch can improve ERNIE performance, doesn't? Why did no one review this PR?

@Xreki
Copy link
Contributor Author

Xreki commented Apr 20, 2020

@jeng1220 stack op is optimized by #22142 .

@jeng1220
Copy link
Collaborator

@Xreki,
So we can close this PR, right?

@Xreki
Copy link
Contributor Author

Xreki commented Apr 21, 2020

@jeng1220 Yes, I'll close it.

@Xreki Xreki closed this Apr 21, 2020
@Xreki Xreki deleted the pass_opt_stack branch April 2, 2023 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants