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

Get_edge returning wrong edge #928

Open
annielytical opened this issue Mar 23, 2022 · 0 comments
Open

Get_edge returning wrong edge #928

annielytical opened this issue Mar 23, 2022 · 0 comments
Labels
🐛 bug Use to report bugs in the issues or fix bugs in a pull request.

Comments

@annielytical
Copy link
Member

annielytical commented Mar 23, 2022

Describe the bug
In a previous iteration of my MST code, I used get_edge to find the edge with the source and destination flipped. Often this returned the right edge (after subtracting 1), but sometimes it did not. In order to get the right edge all the time, I had to change the bfs call from:

(edge_type)search::binary::execute(get_column_indices(), destination, offsets[source], offsets[source + 1] - 1);

to:

(edge_type)search::binary::execute(get_column_indices(), destination, offsets[source], offsets[source + 1]);

or:

(edge_type)search::binary::execute(get_column_indices(), destination, offsets[source], offsets[source] + int(get_number_of_neighbors(source)));

To Reproduce
Call get_edge with various sources and destinations. Call get_source_vertex and get_destination_vertex on the edge obtained and compare.

Expected behavior
get_source_vertex and get_destination_vertex should reproduce the source and destination from the original call to get_edge (but they do not always).

Environment:

  • Linux/Windows: Linux - Ubuntu 21.10
  • NVIDIA Driver: 470.103.01
  • CUDA version: 11.4
  • GCC/G++ version: 11.2
@annielytical annielytical added the 🐛 bug Use to report bugs in the issues or fix bugs in a pull request. label Mar 23, 2022
@neoblizz neoblizz transferred this issue from gunrock/essentials Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Use to report bugs in the issues or fix bugs in a pull request.
Projects
None yet
Development

No branches or pull requests

1 participant