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

Fix a crash in FAISS benchmark wrapper introduced in #2021 #2062

Merged
merged 1 commit into from
Dec 13, 2023

Conversation

achirkin
Copy link
Contributor

With the changes introduced by #2021, the copied FAISS benchmark wrapper contains a cuda event that is used for synchronizing between streams during search. The lifetime of the event is the same as of the wrapper, but the event handle itself is copied between the wrappers; this leads to illegal memory accesses and crashes.
This PR fixes the bug by creating a new cuda event on each wrapper copy, so that the wrappers do not share their synchronization events.

@achirkin achirkin requested a review from a team as a code owner December 13, 2023 17:57
@github-actions github-actions bot added the cpp label Dec 13, 2023
@achirkin achirkin added 3 - Ready for Review non-breaking Non-breaking change bug Something isn't working labels Dec 13, 2023
@cjnolet
Copy link
Member

cjnolet commented Dec 13, 2023

/merge

@rapids-bot rapids-bot bot merged commit 6c95f9c into rapidsai:branch-24.02 Dec 13, 2023
61 checks passed
ChristinaZ pushed a commit to ChristinaZ/raft that referenced this pull request Jan 17, 2024
…apidsai#2062)

With the changes introduced by rapidsai#2021, the copied FAISS benchmark wrapper contains a cuda event that is used for synchronizing between streams during search. The lifetime of the event is the same as of the wrapper, but the event handle itself is copied between the wrappers; this leads to illegal memory accesses and crashes.
This PR fixes the bug by creating a new cuda event on each wrapper copy, so that the wrappers do not share their synchronization events.

Authors:
  - Artem M. Chirkin (https://github.com/achirkin)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#2062
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review bug Something isn't working cpp non-breaking Non-breaking change
Projects
Development

Successfully merging this pull request may close these issues.

2 participants