Skip to content
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

Fix sampling call parameters if compiled with -DNO_CUGRAPH_OPS #3729

Merged

Conversation

ChuckHastings
Copy link
Collaborator

Updated sampling call in the #ifdef NO_CUGRAPH_OPS branch of the SG unit test. The MG unit test was correctly updated previously.

Fixes #3726

@ChuckHastings ChuckHastings self-assigned this Jul 21, 2023
@ChuckHastings ChuckHastings added bug Something isn't working non-breaking Non-breaking change labels Jul 21, 2023
@ChuckHastings ChuckHastings added this to the 23.08 milestone Jul 21, 2023
std::optional<std::tuple<raft::device_span<int32_t const>, raft::device_span<int32_t const>>>
label_to_output_comm_rank_mapping{std::nullopt};

#ifdef NO_CUGRAPH_OPS
EXPECT_THROW(
cugraph::uniform_neighbor_sample(
Copy link
Contributor

Choose a reason for hiding this comment

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

Just FYI, this is one way to fix this, another is to call this function with explicit template types.

i.e. cugraph::uniform_neighbor_sample<explicit template types...>(...);

This might be less verbose in some cases.

@ChuckHastings ChuckHastings marked this pull request as ready for review July 21, 2023 16:41
@ChuckHastings ChuckHastings requested a review from a team as a code owner July 21, 2023 16:41
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

This passed local builds for me. Thanks for the fix @ChuckHastings!

@ChuckHastings
Copy link
Collaborator Author

/merge

@rapids-bot rapids-bot bot merged commit 487efd6 into rapidsai:branch-23.08 Jul 21, 2023
@ChuckHastings ChuckHastings deleted the update_disabling_cugraph_ops branch September 27, 2023 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sg_uniform_neighbor_sampling.cu fails to compile with NO_CUGRAPH_OPS enabled
3 participants