-
Notifications
You must be signed in to change notification settings - Fork 194
[FEA] JIT LTO Pairwise Distances #2099
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
5e5eecf
fragments, tags, instantiations, json and cmake
tarang-jain 060aee2
Merge branch 'main' into jit-lto-pw
tarang-jain cf6ccb0
Update cpp/src/distance/detail/pairwise_matrix/jit_lto_kernels/comput…
tarang-jain 9c0b716
Merge branch 'main' into jit-lto-pw
tarang-jain f9ff9e8
update arch_include
tarang-jain 3faba38
Merge branch 'jit-lto-pw' of github.com:tarang-jain/cuvs into jit-lto-pw
tarang-jain 7dce6e3
correct tags
tarang-jain e1f6a5c
update template
tarang-jain 9e80919
reapply cmake comment
tarang-jain 8fcb1bb
rm jit boolean
tarang-jain 4ae7507
address pr reviews
tarang-jain e465980
update index type in json
tarang-jain 150e705
Merge branch 'main' into jit-lto-pw
tarang-jain 7df2f95
do not switch off clang
tarang-jain ec5ae32
Merge branch 'jit-lto-pw' of github.com:tarang-jain/cuvs into jit-lto-pw
tarang-jain 15bb587
style check and header includes
tarang-jain a2e77d7
style check and header includes
tarang-jain 5bb0293
compilation errors
tarang-jain 5da125a
fix header includes
tarang-jain d5e942d
restore old version of dispatch-inl
tarang-jain 60d3344
style and docs
tarang-jain 680b55d
add the ifdef
tarang-jain 86100d4
Merge branch 'main' into jit-lto-pw
tarang-jain 9957163
Merge branch 'main' into jit-lto-pw
tarang-jain 3ea9e91
Merge branch 'main' of https://github.com/rapidsai/cuvs into jit-lto-pw
tarang-jain e3e6d27
Merge branch 'jit-lto-pw' of github.com:tarang-jain/cuvs into jit-lto-pw
tarang-jain 9964674
Merge branch 'main' into jit-lto-pw
tarang-jain 846d48f
Merge branch 'main' into jit-lto-pw
tarang-jain 884caf2
simplify json
tarang-jain 4d4f178
Merge branch 'jit-lto-pw' of github.com:tarang-jain/cuvs into jit-lto-pw
tarang-jain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
cpp/include/cuvs/detail/jit_lto/pairwise_matrix/pairwise_matrix_fragments.hpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| /* | ||
| * SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION. | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| namespace cuvs::distance::detail { | ||
|
|
||
| struct tag_layout_row {}; | ||
| struct tag_layout_col {}; | ||
|
|
||
| struct tag_fin_op_identity {}; | ||
| struct tag_fin_op_rbf {}; | ||
|
|
||
| struct tag_distance_canberra {}; | ||
| struct tag_distance_correlation {}; | ||
| struct tag_distance_cosine {}; | ||
| struct tag_distance_hamming_unexpanded {}; | ||
| struct tag_distance_hellinger_expanded {}; | ||
| struct tag_distance_jensen_shannon {}; | ||
| struct tag_distance_kl_divergence {}; | ||
| struct tag_distance_l1 {}; | ||
| struct tag_distance_l2_expanded {}; | ||
| struct tag_distance_l2_unexpanded {}; | ||
| struct tag_distance_l_inf {}; | ||
| struct tag_distance_lp_unexpanded {}; | ||
| struct tag_distance_russel_rao {}; | ||
|
|
||
| template <typename DistanceTag, | ||
| typename DataTag, | ||
| typename AccTag, | ||
| typename OutTag, | ||
| typename IndexTag, | ||
| typename FinOpTag, | ||
| typename LayoutTag, | ||
| int Veclen> | ||
| struct fragment_tag_pairwise_matrix {}; | ||
|
|
||
| template <typename DistanceTag, typename DataTag, typename AccTag, typename IndexTag> | ||
| struct fragment_tag_compute_distance {}; | ||
|
|
||
| template <typename DistanceTag, | ||
| typename DataTag, | ||
| typename AccTag, | ||
| typename IndexTag, | ||
| typename LayoutTag, | ||
| int Veclen> | ||
| struct fragment_tag_compute_distance_epilog {}; | ||
|
|
||
| } // namespace cuvs::distance::detail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.