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

Reset CUDA error after cudaFuncSetAttribute #504

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

sleeepyjack
Copy link
Collaborator

@sleeepyjack sleeepyjack commented Jun 12, 2024

This PR fixes a bug which occures when cudaFuncSetAttribute is used to conditionally check if there's enough shmem available to fit the HLL sketch in. If it doesn't fit then the CUDA error returned by the function is sticky and may resurface in downstream calls, e.g., Thrust. The fix consists of flushing the CUDA error after the call to cudaFuncSetAttribute.

Big thanks to @gevtushenko for tracking down this bug.

@sleeepyjack sleeepyjack added type: bug Something isn't working P0: Must have Critical feature or bug fix Needs Review Awaiting reviews before merging labels Jun 12, 2024
@sleeepyjack sleeepyjack self-assigned this Jun 12, 2024
@sleeepyjack sleeepyjack requested a review from PointKernel as a code owner June 12, 2024 01:44
@sleeepyjack sleeepyjack merged commit f166d18 into NVIDIA:dev Jun 12, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review Awaiting reviews before merging P0: Must have Critical feature or bug fix type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants