-
Notifications
You must be signed in to change notification settings - Fork 540
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
Add support in column major distance metrics to use contractions_nt instead of cutlass #3691
Add support in column major distance metrics to use contractions_nt instead of cutlass #3691
Conversation
…nce matrix calculation. make use of contraction kernels for gemm NT calculation. add PairwiseDistances class which will serve as common class for other distance metrics like cosine as well
…lculation. instead use PairwiseDistances/contraction class kernel for it
…ation. instead use PairwiseDistances/contraction class kernel for it
…de of l2,cosine to base class, move sqrt case from base class to epilog, make use of assert instead of if
…are required, also update git tag of raft to check if it fixes CI issue
…ldb. this allows column major support to run correctly with rectangular matrices.
…ix, scores and distance metrics test cases
…missed out in previous commit
@mdoijade please add benchmark numbers just like how you did for the row-major PR. |
Also, please resolve the conflicts wrt 0.19 branch. |
done! |
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.
I'm putting this note mostly for other reviewers...
Since this depends on the above raft PR, this PR in-turn should be reflected with the cmake change to update the commit version of raft too (once that raft-PR is merged)
Attaching performance results with prims_benchmark for Distance* cases of changes in this PR for column & row major involving using contractions_nt vs old code with cutlass for row/column major inputs. @teju85 overall the results for column major is following similar pattern like row major where for large inputs perf is around 2-10% bad compared to cutlass for L2, cosine but for L1 all inputs sizes 2-3x faster than cutlass version. |
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.
Approving on behalf of cmake codeowners.
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.
Changes LGTM.
rerun tests |
1 similar comment
rerun tests |
…olumn_major_distance_prims
blocked by #3699 |
@gpucibot merge. |
rerun tests |
@JohnZed I think we need to whitelist this PR? |
add to allowlist |
rerun tests |
@gpucibot merge |
…er needed. (#3717) This PR depends on #3691 -- Remove cutlass dependencies from cmake and elsewhere as it is no longer needed. -- also remove now redundant source files using cutlass Authors: - Mahesh Doijade (https://github.com/mdoijade) Approvers: - Thejaswi. N. S (https://github.com/teju85) - Dante Gama Dessavre (https://github.com/dantegd) URL: #3717
…nstead of cutlass (rapidsai#3691) This change depends on RAFT pull request - rapidsai/raft#188 -- Adds column major input support in prims_benchmark's Distance bench -- Removes cutlass from all distance metrics in column major case. -- Removes cutlass from all the distance metrics test cases. Authors: - Mahesh Doijade (https://github.com/mdoijade) Approvers: - Corey J. Nolet (https://github.com/cjnolet) - Thejaswi. N. S (https://github.com/teju85) URL: rapidsai#3691
…er needed. (rapidsai#3717) This PR depends on rapidsai#3691 -- Remove cutlass dependencies from cmake and elsewhere as it is no longer needed. -- also remove now redundant source files using cutlass Authors: - Mahesh Doijade (https://github.com/mdoijade) Approvers: - Thejaswi. N. S (https://github.com/teju85) - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#3717
This change depends on RAFT pull request - rapidsai/raft#188
-- Adds column major input support in prims_benchmark's Distance bench
-- Removes cutlass from all distance metrics in column major case.
-- Removes cutlass from all the distance metrics test cases.