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

[Paddle-TRT] Run radix sort of proposals layers on the context stream #31631

Merged
merged 1 commit into from
Mar 19, 2021

Conversation

zlsh80826
Copy link
Collaborator

@zlsh80826 zlsh80826 commented Mar 15, 2021

PR types

Performance optimization

PR changes

OPs

Describe

  1. Run radix sort of proposals layers on the context stream. Without indicating the stream, functions will be placed on default stream, which introduces additional implicit synchronization overhead.
  2. The is ~1.5% e2e performance gain on trt-fp16/maskrcnn inference

@cryoco cryoco requested a review from jerrywgz March 18, 2021 06:21
Copy link
Contributor

@jerrywgz jerrywgz left a comment

Choose a reason for hiding this comment

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

./paddle/fluid/operators/detection/generate_proposals_v2_op.cu also uses SortDescending, which may applied this optimization as well?

@zlsh80826
Copy link
Collaborator Author

./paddle/fluid/operators/detection/generate_proposals_v2_op.cu also uses SortDescending, which may applied this optimization as well?

Yes, the modification is on bbox_utils.cu, which is used by generate_proposals and generate_proposals_v2

Copy link
Contributor

@jerrywgz jerrywgz left a comment

Choose a reason for hiding this comment

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

LGTM

@cryoco cryoco merged commit 1c67cf0 into PaddlePaddle:develop Mar 19, 2021
@zlsh80826 zlsh80826 changed the title Run radix sort of proposals layers on the context stream [Paddle-TRT] Run radix sort of proposals layers on the context stream Jan 6, 2022
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.

3 participants