Skip to content
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

Conversation

divyegala
Copy link
Member

@divyegala divyegala commented Jan 7, 2022

At first, when I created public APIs for matrix and stats 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 in detail. I also added missing docs in this PR.

@divyegala divyegala requested review from a team as code owners January 7, 2022 18:23
@github-actions github-actions bot added the cpp label Jan 7, 2022
@divyegala divyegala added non-breaking Non-breaking change improvement Improvement / enhancement to an existing function labels Jan 7, 2022
Copy link
Member

@cjnolet cjnolet left a 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.

Copy link
Member

@cjnolet cjnolet left a 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).

Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cjnolet
Copy link
Member

cjnolet commented Jan 11, 2022

I verified locally that cuml builds successfully w/ these changes

@cjnolet
Copy link
Member

cjnolet commented Jan 11, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit c958dc0 into rapidsai:branch-22.02 Jan 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants