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 edge_partition_src_dst_property.cuh to .hpp and .cuh files. #2503

Merged
merged 29 commits into from
Aug 23, 2022

Conversation

seunghwak
Copy link
Contributor

@seunghwak seunghwak commented Aug 3, 2022

Partially addresses #2479
Code clean-up before adding edge_property_t and update_edge_property (to support edge property in addition to edge weights).

  • Split edge_partition_src_dst_property.cuh to edge_src_dst_property.hpp (can be complied with g++) and edge_partition_endpoint_device_view.cuh (requires nvcc)
  • Rename edge_partition_src|dst_property_t to edge_src|dst_property_t
  • Update update_edge_partition_src_dst_property.cuh to update_edge_src_dst_property.cuh and update_edge_partition_src|dst_property to update_edge_src|dst_property.
  • Rename dummy_property_t to edge_src_dummy_property_t and edge_dst_dummy_property_t
  • Replaced edge_src|dst_property_t's fill() with fill_edge_src|dst_property (to allow including `edge_src_dst_property.hpp to be compiled with g++).
  • Created edge_src|dst_property_view_t classes (host side, in addition to the device_view objects which can be trivially copied to the device side); so the view() member function can be compiled with g++.

@seunghwak seunghwak added 2 - In Progress improvement Improvement / enhancement to an existing function DO NOT MERGE Hold off on merging; see PR for details non-breaking Non-breaking change labels Aug 3, 2022
@seunghwak seunghwak added this to the 22.10 milestone Aug 3, 2022
@seunghwak seunghwak requested a review from a team as a code owner August 3, 2022 23:51
@seunghwak seunghwak self-assigned this Aug 3, 2022
@seunghwak seunghwak requested a review from a team as a code owner August 3, 2022 23:51
@seunghwak seunghwak changed the title [WIP] Split edge_partition_src_dst_property.cuh to .hpp and .cuh files. [WIP][skip-ci] Split edge_partition_src_dst_property.cuh to .hpp and .cuh files. Aug 3, 2022
@seunghwak seunghwak changed the title [WIP][skip-ci] Split edge_partition_src_dst_property.cuh to .hpp and .cuh files. Split edge_partition_src_dst_property.cuh to .hpp and .cuh files. Aug 5, 2022
@seunghwak seunghwak removed the DO NOT MERGE Hold off on merging; see PR for details label Aug 5, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 9, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.10@cc05758). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             branch-22.10    #2503   +/-   ##
===============================================
  Coverage                ?   61.19%           
===============================================
  Files                   ?      106           
  Lines                   ?     5638           
  Branches                ?        0           
===============================================
  Hits                    ?     3450           
  Misses                  ?     2188           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@seunghwak
Copy link
Contributor Author

rerun tests

@seunghwak
Copy link
Contributor Author

rerun tests

Copy link
Collaborator

@ChuckHastings ChuckHastings left a comment

Choose a reason for hiding this comment

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

LGTM except a couple of copyright questions.

@@ -0,0 +1,119 @@
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be just 2022?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure.

This file is a new file, in that sense, this should be 2022.

But the contents of this file is from another older file. That file is split to two files (and after split, significant updates, but I guess this is irrelevant in this discussion). So, in this case, the two new files should have the copyright year of just 2022 or need to inherit the copyright year of the original file? I thought the latter but will appreciate clarification.

Copy link
Collaborator

Choose a reason for hiding this comment

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

That wasn't clear when reviewing. I would agree that the contents of a file that originated in 2021 and is split into two files would need to keep 2021 as part of the copyright definition.

@@ -0,0 +1,583 @@
/*
* Copyright (c) 2021-2022, NVIDIA CORPORATION.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this be 2022?

@@ -0,0 +1,151 @@
/*
* Copyright (c) 2020-2022, NVIDIA CORPORATION.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't this just be 2022?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this should be 2022. I will make a fix.

Comment on lines +146 to +147
fill_edge_src_property(
handle, push_graph_view, std::numeric_limits<weight_t>::max(), edge_src_distances);
Copy link
Contributor

Choose a reason for hiding this comment

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

Easier to read now.

@ChuckHastings
Copy link
Collaborator

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 73e66a1 into rapidsai:branch-22.10 Aug 23, 2022
@seunghwak seunghwak deleted the enh_edge_src_dst_property2 branch August 25, 2022 16:01
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.

4 participants