Repository navigation
Add a non-type template paramter bool dynamic (= false) to graph_t and graph_view_t - #5754
Merged
Merged
Conversation
…ertex_property_t::mutable_view()
…y taking a discard iterator
…ertex_property
…ertex_property
…ynamic_graph_t
Contributor
Author
|
/ok to test 9f63d3f |
…ynamic_graph_t
Contributor
Author
|
/ok to test 50e4871 |
Contributor
Author
|
/ok to test 020c60e |
ChuckHastings
approved these changes
Nov 23, 2026
jnke2016
approved these changes
Nov 24, 2026
Collaborator
|
/merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR is step 3 of the dynamic graph plan: it adds a non-type template parameter
bool dynamictograph_tandgraph_view_t, defaulting tofalse. Only the static path (dynamic = false) is implemented.dynamic = trueis a placeholder for the upcoming dynamic graph support (edge/vertex insertion and deletion).Changes
graph_tandgraph_view_ttakebool dynamic = falseas a fifth template parameter, replacing the unusedtypename Enable = void. The multi-GPU and single-GPU specializations are now written with literaltrue/falseinstead ofstd::enable_if_t, and both exposestatic constexpr bool is_dynamic.cugraph::detail, selected withstd::conditional_t<dynamic, ...>:detail::static_graph_t/detail::static_graph_view_thold the existing members (multi-GPU and single-GPU versions).detail::dynamic_graph_t/detail::dynamic_graph_view_tare placeholders.edge_mask_view_stays ingraph_view_t.graph_t::view()are constrained withrequires(!dynamic).graph_meta_tmoves tocugraph::detail.eidecl_graph.hppis removed. Theextern templatedeclarations were redundant with the explicit instantiations, and removing them does not change the set of exportedgraph_t/graph_view_tfunctionality.Existing code that names
graph_t<vertex_t, edge_t, store_transposed, multi_gpu>orgraph_view_t<...>with four arguments is unaffected, and the explicit instantiations use the defaultdynamic = false. Algorithm and primitive signatures are unchanged; they will gaindynamicsupport as dynamic graphs are implemented.Breaking changes (C++ only)
cugraph::graph_meta_tis nowcugraph::detail::graph_meta_t.<cugraph/eidecl_graph.hpp>no longer exists.