-
Notifications
You must be signed in to change notification settings - Fork 197
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
Public apis for remainder of matrix and stats #438
Public apis for remainder of matrix and stats #438
Conversation
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.
The changes look great! Ready to go, pending successful CI.
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.
These seem like harmless changes and shouldn't affect the public API, however when I attempted to build cuml w/ the changes, I get the following compile error:
/share/workspace/rapids_projects/raft/cpp/include/raft/matrix/matrix.hpp: In instantiation of ‘m_t raft::matrix::getL2Norm(const raft::handle_t&, m_t*, idx_t, cudaStream_t) [with m_t = float; idx_t = int; cudaStream_t = CUstream_st*]’:
/share/workspace/rapids_projects/raft/cpp/include/raft/linalg/svd.cuh:366:33: required from ‘bool raft::linalg::evaluateSVDByL2Norm(const raft::handle_t&, math_t*, math_t*, math_t*, math_t*, int, int, int, math_t, cudaStream_t) [with math_t = float; cudaStream_t = CUstream_st*]’
/share/workspace/rapids_projects/cuml/cpp/test/prims/rsvd.cu:269:289: required from here
/share/workspace/rapids_projects/raft/cpp/include/raft/matrix/matrix.hpp:224:1: error: no return statement in function returning non-void [-Werror=return-type]
224 | }
| ^
/share/workspace/rapids_projects/raft/cpp/include/raft/matrix/matrix.hpp: In instantiation of ‘m_t raft::matrix::getL2Norm(const raft::handle_t&, m_t*, idx_t, cudaStream_t) [with m_t = double; idx_t = int; cudaStream_t = CUstream_st*]’:
/share/workspace/rapids_projects/raft/cpp/include/raft/linalg/svd.cuh:366:33: required from ‘bool raft::linalg::evaluateSVDByL2Norm(const raft::handle_t&, math_t*, math_t*, math_t*, math_t*, int, int, int, math_t, cudaStream_t) [with math_t = double; cudaStream_t = CUstream_st*]’
/share/workspace/rapids_projects/cuml/cpp/test/prims/rsvd.cu:286:289: required from here
/share/workspace/rapids_projects/raft/cpp/include/raft/matrix/matrix.hpp:224:1: error: no return statement in function returning non-void [-Werror=return-type]
Can you open a PR to cuml to test these changes? (Hopefully we won't have to do this for too much longer).
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.
LGTM
I verified locally that cuml builds successfully w/ these changes |
@gpucibot merge |
At first, when I created public APIs for
matrix
andstats
packages, I let implementation be in the public API if it was a simple thrust call or a call to another RAFT API. However, after further discussion, it's cleaner consistency to have the implementation always be indetail
. I also added missing docs in this PR.