Skip to content

Forward-merge branch-25.08 into branch-25.10#1141

Merged
GPUtester merged 1 commit into
branch-25.10from
branch-25.08
Jul 19, 2025
Merged

Forward-merge branch-25.08 into branch-25.10#1141
GPUtester merged 1 commit into
branch-25.10from
branch-25.08

Conversation

@rapids-bot

@rapids-bot rapids-bot Bot commented Jul 19, 2025

Copy link
Copy Markdown
Contributor

Forward-merge triggered by push to branch-25.08 that creates a PR to keep branch-25.10 up-to-date. If this PR is unable to be immediately merged due to conflicts, it will remain open for the team to manually merge. See forward-merger docs for more info.

This PR wraps access to the cuVS resources handle into a autocloseable accessor. The reason is to provide a clear scope for resource access, with the possibility to add application logic to the scope begin/end.

An example of this logic is the `CheckedCuVSResources` decorator introduced in the test suite, which checks that the `CuVSResources` it decorates has not been destroyed yet, and that access to the underlying cuVS resources handle is not concurrent (is not done by more than 1 thread at every time).

I preferred to write it as a decorator, as this gives the API consumers more freedom: if they want the check, they can use `CheckedCuVSResources` (or a similar class); if they want direct, straight, fast access, they can just use the accessor; if they need more logic (e.g. logging or anything else), that is possible too.

Tests are updated to use  `CheckedCuVSResources`, so we can spot issues quickly in tests without burdening production code with additional logic.

Authors:
  - Lorenzo Dematté (https://github.com/ldematte)
  - MithunR (https://github.com/mythrocks)

Approvers:
  - MithunR (https://github.com/mythrocks)

URL: #1089
@rapids-bot rapids-bot Bot requested a review from a team as a code owner July 19, 2025 04:46
@GPUtester GPUtester merged commit 3a9f645 into branch-25.10 Jul 19, 2025
2 checks passed
@rapids-bot

rapids-bot Bot commented Jul 19, 2025

Copy link
Copy Markdown
Contributor Author

SUCCESS - forward-merge complete.

landrumb pushed a commit to landrumb/cuvs that referenced this pull request Jul 8, 2026
Forward-merge branch-25.08 into branch-25.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants