Skip to content

Conversation

caugonnet
Copy link

No description provided.

Copy link

copy-pr-bot bot commented Jan 22, 2025

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

# - erdos renyi graph generator tests -------------------------------------------------------------
ConfigureTest(ERDOS_RENYI_GENERATOR_TEST generators/erdos_renyi_test.cpp)

if (BUILD_CUGRAPH_COMMUNITY_ALGORITHMS)
Copy link
Author

Choose a reason for hiding this comment

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

Maybe we prefer something like defining "tags" to avoid the mess with if(...) endif() which can easily get out of sync or unmaintained.

ConfigureTest(LOUVAIN_TEST COMMUNITY community/louvain_test.cpp)

Then filter tests in ConfigureTest depending on that tag

Copy link
Collaborator

Choose a reason for hiding this comment

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

Putting the filter in ConfigureTest seems like it would be easier to be sure to get things configured properly.

Copy link
Author

Choose a reason for hiding this comment

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

And i'll create a "COMMON" class too for everything that's always there

)
endif()

if (BUILD_CUGRAPH_CENTRALITY_ALGORITHMS)
Copy link
Author

Choose a reason for hiding this comment

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

maybe it's cleaner to define CUGRAPH_CENTRALITY_SOURCES, CUGRAPH_COMMON_SOURCES, etc.... and then append at the end ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems cleaner to me. Define CUGRAPH_CENTRALITY_SOURCES as empty if BUILD_CUGRAPH_CENTRALITY_ALGORITHMS is not defined, define it with the actual sources if it is defined. Then when you fill in CUGRAPH_SOURCES you can just include the variable ${CUGRAPH_CENTRALITY_SOURCES} in its definition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants