Skip to content

[CTK 12.5]: Avoid another compiler issue with host device detection #4971

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

Merged
merged 3 commits into from
Mar 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cpp/include/cugraph/edge_property.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class edge_property_view_t {

// nvcc 12.5 sometimes deduces this as a host device function, just defining it fixes that
~edge_property_view_t() {}
edge_property_view_t(const edge_property_view_t&) = default;
edge_property_view_t(edge_property_view_t&&) = default;
edge_property_view_t& operator=(const edge_property_view_t&) = default;
edge_property_view_t& operator=(edge_property_view_t&&) = default;

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

Expand Down Expand Up @@ -113,6 +117,13 @@ class edge_property_t {
{
}

// nvcc 12.5 sometimes deduces this as a host device function, just defining it fixes that
~edge_property_t() {}
edge_property_t(const edge_property_t&) = delete;
edge_property_t& operator=(const edge_property_t&) = delete;
edge_property_t(edge_property_t&&) = default;
edge_property_t& operator=(edge_property_t&&) = default;

void clear(raft::handle_t const& handle)
{
buffers_.clear();
Expand Down