-
Notifications
You must be signed in to change notification settings - Fork 67
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
[WIP] Expose extend()
in C API
#276
base: branch-24.12
Are you sure you want to change the base?
Conversation
/ok to test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for adding this functionality! This change looks good to me -
auto extend_params = cuvs::neighbors::cagra::extend_params(); | ||
extend_params.max_chunk_size = params.max_chunk_size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't need to be changed in this PR (especially since the rest of cagra/ivf-* doesn't follow this right now) - but I think we should start re-using the C-api parameter structs in the C++ api , like we are doing in the distances here
using DistanceType = cuvsDistanceType; |
cpp/test/neighbors/ann_cagra_c.cu
Outdated
cuvsCagraExtendParams_t extend_params; | ||
cuvsCagraExtendParamsCreate(&extend_params); | ||
extend_params->max_chunk_size = 100; | ||
cuvsCagraExtend(res, extend_params, &additional_dataset_tensor, index); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for debugging the segfault - does this still occur when called with the original dataset - like :
cuvsCagraExtend(res, extend_params, &additional_dataset_tensor, index); | |
cuvsCagraExtend(res, extend_params, &dataset_tensor, index); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still segfaults unfortunately
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok to test |
@ajit283 I think we discussed generating a bigger dataset for the test case here. You could even use |
👍 will look into this tomorrow |
/ok to test |
@ajit283 can you fix the conflicts in this PR? |
429014c
to
c78e86f
Compare
Done! We should look into the tests for this one.
What do you think? |
/ok to test |
/ok to test |
@cjnolet I added a test using the pairwise distance matrix as discussed in the call |
Add functionality to add additional vectors after build to C API