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

Split many files to separate SG from MG template instantiations #1803

Merged
merged 10 commits into from
Sep 8, 2021

Conversation

ChuckHastings
Copy link
Collaborator

Partially addresses #1770

This is preliminary work to separate the SG and MG shared object libraries. This PR splits many of the source files that instantiate SG and MG variants of algorithms/objects/functions.

There will be subsequent PRs that will refactor the CMake structure and probably move some more files around.

@ChuckHastings ChuckHastings requested review from a team as code owners September 2, 2021 19:47
@ChuckHastings ChuckHastings added 3 - Ready for Review improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Sep 2, 2021
@ChuckHastings ChuckHastings added this to the 21.10 milestone Sep 2, 2021
@ChuckHastings ChuckHastings self-assigned this Sep 2, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 2, 2021

Codecov Report

Merging #1803 (8757b48) into branch-21.10 (bf64c2c) will increase coverage by 12.09%.
The diff coverage is n/a.

❗ Current head 8757b48 differs from pull request most recent head 2690924. Consider uploading reports for the commit 2690924 to get more accurate results
Impacted file tree graph

@@                Coverage Diff                @@
##           branch-21.10    #1803       +/-   ##
=================================================
+ Coverage         59.85%   71.95%   +12.09%     
=================================================
  Files                77      134       +57     
  Lines              3547     8332     +4785     
=================================================
+ Hits               2123     5995     +3872     
- Misses             1424     2337      +913     
Impacted Files Coverage Δ
python/cugraph/cugraph/__init__.py 100.00% <ø> (ø)
python/cugraph/cugraph/_version.py 44.80% <ø> (ø)
python/cugraph/cugraph/centrality/__init__.py 100.00% <ø> (ø)
...graph/cugraph/centrality/betweenness_centrality.py 90.00% <ø> (ø)
...thon/cugraph/cugraph/centrality/katz_centrality.py 89.47% <ø> (ø)
python/cugraph/cugraph/comms/comms.py 34.52% <ø> (ø)
python/cugraph/cugraph/community/__init__.py 70.37% <ø> (ø)
python/cugraph/cugraph/community/ecg.py 100.00% <ø> (ø)
python/cugraph/cugraph/community/egonet.py 92.30% <ø> (ø)
... and 195 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a870a09...2690924. Read the comment docs.

Copy link
Contributor

@seunghwak seunghwak left a comment

Choose a reason for hiding this comment

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

Looks good to me except for few places git mv can be used instead of deleting and re-creating a file.

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you splitting the below louvain.cu file to this louvain.cu and the below louvain_impl.cuh? If it's the case, at least one of the new flies (preferably the longer one) should be created using git mv (instead of deleting and creating) to better preserve the history.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I used git mv. If I check out this branch and do a git log on the files it shows the history. I believe this is a bug in the git web presentation.

* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use git mv (assuming that this is based on the above deleted create_graph_from_edgelist.cpp) instead of deleting and newly creating a file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same as above.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, then, let's wish there is no other PR updating this file (I checked few PRs and haven't found), and let's merge this PR ASAP (and ask other PRs to sync with the main branch). If multiple PRs touch this PR (and if this isn't just a web presentation issue), things can become a mess.

@ChuckHastings
Copy link
Collaborator Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit c3d798f into rapidsai:branch-21.10 Sep 8, 2021
@ChuckHastings ChuckHastings deleted the fea_split_sg_mg_part1 branch February 1, 2022 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

3 participants