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

[REVIEW] Moving MNMG decomp to cuml #2427

Merged
merged 21 commits into from
Jul 2, 2020

Conversation

divyegala
Copy link
Member

No description provided.

@divyegala divyegala requested review from a team as code owners June 16, 2020 16:57
@GPUtester
Copy link
Contributor

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

@divyegala divyegala changed the title [WIP] Moving MNMG decomp to cuml [REVIEW] Moving MNMG decomp to cuml Jun 18, 2020
@divyegala divyegala added 3 - Ready for Review Ready for review by team 5 - Merge After Dependencies Depends on another PR: do not merge out of order CUDA / C++ CUDA issue Multi-GPU Issues & PRs related to multi-GPU functionality labels Jun 18, 2020
@JohnZed JohnZed requested a review from cjnolet June 18, 2020 19:44
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.

First pass looks great. Mostly minor things w.r.t the move.

Other things are just pending refactors / cleanup that we should probably track in Github issues.

cpp/src/pca/pca_mg.cu Outdated Show resolved Hide resolved
cpp/src/pca/pca_mg.cu Outdated Show resolved Hide resolved
cpp/src/pca/pca_mg.cu Outdated Show resolved Hide resolved
cpp/src/pca/pca_mg.cu Show resolved Hide resolved
cpp/src/pca/pca_mg.cu Show resolved Hide resolved
cpp/test/mg/pca.cu Show resolved Hide resolved
cpp/test/mg/pca.cu Show resolved Hide resolved
cpp/test/mg/pca.cu Outdated Show resolved Hide resolved
cpp/README.md Outdated Show resolved Hide resolved
cpp/README.md Outdated Show resolved Hide resolved
@divyegala divyegala added 4 - Waiting on Reviewer Waiting for reviewer to review or respond and removed 3 - Ready for Review Ready for review by team 5 - Merge After Dependencies Depends on another PR: do not merge out of order labels Jun 25, 2020
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.

Mostly my requests are just t provide references back to the relevant github issues for tracking (in case not all of it gets done as part of this refactor, it will make it easier for future eyes to see the intentions and pull up the relevant issue).

Otherwise, it LGTM, pending successful CI of course.

cpp/src/pca/pca_mg.cu Show resolved Hide resolved
cpp/src/pca/pca_mg.cu Show resolved Hide resolved
const std::shared_ptr<deviceAllocator> allocator =
handle.getImpl().getDeviceAllocator();

int len = prms.n_cols * prms.n_cols;
Copy link
Member

Choose a reason for hiding this comment

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

Doesn’t need to be done in this pr. I wanted to reference the issue here for future tracking.

cpp/src/tsvd/tsvd_mg.cu Show resolved Hide resolved
components = (T*)allocator->allocate(
prmsPCA.n_components * prmsPCA.n_cols * sizeof(T), stream);

explained_var =
Copy link
Member

Choose a reason for hiding this comment

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

That doesn’t have any effect on our ability to use allocator vs device_buffer. You would just need to call buffer_ptr.data(). We really should be using the device_buffer everywhere since it is RAII and not using trhe allocator directly anymore.

cpp/test/mg/pca.cu Show resolved Hide resolved
@divyegala
Copy link
Member Author

rerun tests

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 cjnolet merged commit 6223eb8 into rapidsai:branch-0.15 Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4 - Waiting on Reviewer Waiting for reviewer to review or respond CUDA / C++ CUDA issue Multi-GPU Issues & PRs related to multi-GPU functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants