Skip to content

expose cuvsResources_t to python#58

Merged
rapids-bot[bot] merged 1 commit intorapidsai:branch-24.04from
benfred:python_resources
Mar 21, 2024
Merged

expose cuvsResources_t to python#58
rapids-bot[bot] merged 1 commit intorapidsai:branch-24.04from
benfred:python_resources

Conversation

@benfred
Copy link
Copy Markdown
Contributor

@benfred benfred commented Mar 20, 2024

The current python code was creating a cuvsResources_t to pass to the CAGRA apis on the build/search code. This both ignored the passed in resources object, and also leaked memory since it wasn't calling cuvsResourcesDestroy.

Fix by exposing the cuvsResources_t object to python.

The current python code was creating a cuvsResources_t to pass to the
CAGRA apis on the build/search code. This both ignored the passed in
`resources` object, and also leaked memory since it wasn't calling
cuvsResourcesDestroy.

Fix by exposing the cuvsResources_t object to python.
@benfred benfred requested review from a team as code owners March 20, 2024 20:49
@benfred benfred added improvement Improves an existing functionality non-breaking Introduces a non-breaking change and removed CMake Python labels Mar 20, 2024
@benfred
Copy link
Copy Markdown
Contributor Author

benfred commented Mar 21, 2024

/merge

@rapids-bot rapids-bot Bot merged commit 724ce68 into rapidsai:branch-24.04 Mar 21, 2024
@benfred benfred deleted the python_resources branch March 21, 2024 19:18
benfred added a commit to benfred/cuvs that referenced this pull request Mar 21, 2024
Also use the python resources object from rapidsai#58
benfred added a commit to benfred/cuvs that referenced this pull request Apr 5, 2024
The current python code was creating a cuvsResources_t to pass to the CAGRA apis on the build/search code. This both ignored the passed in `resources` object, and also leaked memory since it wasn't calling cuvsResourcesDestroy.

Fix by exposing the cuvsResources_t object to python.

Authors:
  - Ben Frederickson (https://github.com/benfred)

Approvers:
  - Divye Gala (https://github.com/divyegala)

URL: rapidsai#58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants