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

[Plugin] Fix bug of memcpy in scatter plugin #3818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SilvesterHsu
Copy link

In the scatter plugin, cudaMemcpy with implicit synchronization is used to complete data copying, ensuring that device_transform_coeff is properly assigned before the kernel execution. However, this method fails when using cudaStreamNonBlocking stream for inference in TensorRT, resulting in incorrect outcomes. This issue can be resolved by switching to cudaMemcpyAsync and using the same stream as the kernel, yielding correct results.

Signed-off-by: seel.xu <seel.xu@zelostech.com>
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

1 participant