-
Notifications
You must be signed in to change notification settings - Fork 311
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
Split edge_partition_src_dst_property.cuh to .hpp and .cuh files. #2503
Conversation
…dge_src_dst_property2
…dge_src_dst_property2
Codecov Report
@@ 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. |
rerun tests |
rerun tests |
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 except a couple of copyright questions.
@@ -0,0 +1,119 @@ | |||
/* | |||
* Copyright (c) 2021-2022, NVIDIA CORPORATION. |
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.
Shouldn't this be just 2022?
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.
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.
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.
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. |
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.
Shouldn't this be 2022?
@@ -0,0 +1,151 @@ | |||
/* | |||
* Copyright (c) 2020-2022, NVIDIA CORPORATION. |
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.
Shouldn't this just be 2022?
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.
Yes, this should be 2022. I will make a fix.
fill_edge_src_property( | ||
handle, push_graph_view, std::numeric_limits<weight_t>::max(), edge_src_distances); |
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.
Easier to read now.
@gpucibot merge |
Partially addresses #2479
Code clean-up before adding
edge_property_t
andupdate_edge_property
(to support edge property in addition to edge weights).edge_partition_src_dst_property.cuh
toedge_src_dst_property.hpp
(can be complied with g++) andedge_partition_endpoint_device_view.cuh
(requires nvcc)edge_partition_src|dst_property_t
toedge_src|dst_property_t
update_edge_partition_src_dst_property.cuh
toupdate_edge_src_dst_property.cuh
andupdate_edge_partition_src|dst_property
toupdate_edge_src|dst_property
.dummy_property_t
toedge_src_dummy_property_t
andedge_dst_dummy_property_t
edge_src|dst_property_t
'sfill()
withfill_edge_src|dst_property
(to allow including `edge_src_dst_property.hpp to be compiled with g++).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++.