Repository navigation
Refactor Vamana TUs to use vamana_matrix.json
#2692
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
base: main
Are you sure you want to change the base?
Changes from all commits
f414290
71ce2f8
145643e
5ce88ae
a651ecb
06210e5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include <cuvs/core/cuda_fp16.hpp> | ||
|
|
||
| #include <cuvs/neighbors/vamana.hpp> | ||
| #include <neighbors/vamana.cuh> | ||
|
|
||
| namespace { | ||
|
|
||
| using data_t = @data_type@; | ||
| using index_t = uint32_t; | ||
|
|
||
| } // namespace | ||
|
|
||
| namespace cuvs::neighbors::vamana { | ||
|
|
||
| auto build(raft::resources const& handle, | ||
| const index_params& params, | ||
| raft::device_matrix_view<const data_t, int64_t, raft::row_major> dataset) | ||
| -> index<data_t, index_t> | ||
| { | ||
| return cuvs::neighbors::vamana::build<data_t, index_t>(handle, params, dataset); | ||
| } | ||
|
|
||
| auto build(raft::resources const& handle, | ||
| const index_params& params, | ||
| raft::host_matrix_view<const data_t, int64_t, raft::row_major> dataset) | ||
| -> index<data_t, index_t> | ||
| { | ||
| return cuvs::neighbors::vamana::build<data_t, index_t>(handle, params, dataset); | ||
| } | ||
|
|
||
| } // namespace cuvs::neighbors::vamana |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "_data": [ | ||
| { | ||
| "data_type": "float", | ||
| "data_abbrev": "f" | ||
| }, | ||
| { | ||
| "data_type": "half", | ||
| "data_abbrev": "h" | ||
| }, | ||
| { | ||
| "data_type": "int8_t", | ||
| "data_abbrev": "i8" | ||
| }, | ||
| { | ||
| "data_type": "uint8_t", | ||
| "data_abbrev": "u8" | ||
| } | ||
| ] | ||
| } |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #include <cuvs/core/cuda_fp16.hpp> | ||
|
|
||
| #include <cuvs/neighbors/vamana.hpp> | ||
| #include <neighbors/vamana.cuh> | ||
|
|
||
| namespace { | ||
|
|
||
| using data_t = @data_type@; | ||
| using index_t = uint32_t; | ||
|
|
||
| } // namespace | ||
|
|
||
| namespace cuvs::neighbors::vamana { | ||
|
|
||
| void serialize(raft::resources const& handle, | ||
| const std::string& file_prefix, | ||
| const index<data_t, index_t>& index_, | ||
| bool include_dataset, | ||
| bool sector_aligned) | ||
| { | ||
| cuvs::neighbors::vamana::serialize<data_t, index_t>( | ||
| handle, file_prefix, index_, include_dataset, sector_aligned); | ||
| } | ||
|
|
||
| } // namespace cuvs::neighbors::vamana |
This file was deleted.
This file was deleted.
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.
Found this bug while I was at it too. The template wrapper was stale and didn't have last two arguments.