Skip to content

Commit 6759645

Browse files
authored
[CTK 12.5]: Avoid another compiler issue with host device detection (rapidsai#4971)
NVCC seems to also incorrectly deduce this in 12.5 Authors: - Michael Schellenberger Costa (https://github.com/miscco) Approvers: - Bradley Dice (https://github.com/bdice) - Seunghwa Kang (https://github.com/seunghwak) - Chuck Hastings (https://github.com/ChuckHastings) URL: rapidsai#4971
1 parent e4ffad5 commit 6759645

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

cpp/include/cugraph/edge_property.hpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ class edge_property_view_t {
5454

5555
// nvcc 12.5 sometimes deduces this as a host device function, just defining it fixes that
5656
~edge_property_view_t() {}
57+
edge_property_view_t(const edge_property_view_t&) = default;
58+
edge_property_view_t(edge_property_view_t&&) = default;
59+
edge_property_view_t& operator=(const edge_property_view_t&) = default;
60+
edge_property_view_t& operator=(edge_property_view_t&&) = default;
5761

5862
std::vector<ValueIterator> const& value_firsts() const { return edge_partition_value_firsts_; }
5963

@@ -113,6 +117,13 @@ class edge_property_t {
113117
{
114118
}
115119

120+
// nvcc 12.5 sometimes deduces this as a host device function, just defining it fixes that
121+
~edge_property_t() {}
122+
edge_property_t(const edge_property_t&) = delete;
123+
edge_property_t& operator=(const edge_property_t&) = delete;
124+
edge_property_t(edge_property_t&&) = default;
125+
edge_property_t& operator=(edge_property_t&&) = default;
126+
116127
void clear(raft::handle_t const& handle)
117128
{
118129
buffers_.clear();

0 commit comments

Comments
 (0)