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 MG BC Test #4899

Open
wants to merge 5 commits into
base: branch-25.04
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2022-2024, NVIDIA CORPORATION.
# Copyright (c) 2022-2025, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand Down Expand Up @@ -65,7 +65,6 @@ def get_mg_graph(dataset, directed):
renumber=True,
store_transposed=True,
)

return dg


Expand Down Expand Up @@ -118,7 +117,6 @@ def test_dask_mg_betweenness_centrality(
sg_cugraph_bc = cugraph.betweenness_centrality(
g, k=k, normalized=normalized, endpoints=endpoint, random_state=random_state
)
sg_cugraph_bc = sg_cugraph_bc.sort_values("vertex").reset_index(drop=True)

mg_bc_results = benchmark(
dcg.betweenness_centrality,
Expand All @@ -128,12 +126,10 @@ def test_dask_mg_betweenness_centrality(
endpoints=endpoint,
random_state=random_state,
)

mg_bc_results = (
mg_bc_results.compute().sort_values("vertex").reset_index(drop=True)
)["betweenness_centrality"].to_cupy()

sg_bc_results = (sg_cugraph_bc.sort_values("vertex").reset_index(drop=True))[
mg_bc_results = (mg_bc_results.compute().sort_values("vertex"))[
"betweenness_centrality"
].to_cupy()
sg_bc_results = (sg_cugraph_bc.sort_values("vertex"))[
"betweenness_centrality"
].to_cupy()

Expand Down
Loading