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

torch_sparse.tensor.SparseTensor.partition causes "core dumped" #373

Open
AaronNing opened this issue Apr 26, 2024 · 4 comments
Open

torch_sparse.tensor.SparseTensor.partition causes "core dumped" #373

AaronNing opened this issue Apr 26, 2024 · 4 comments
Labels

Comments

@AaronNing
Copy link

A minimal reproducing example:

In [4]: adj = SparseTensor.from_edge_index(torch.LongTensor([[1,2], [1,3], [2, 3]]))

In [5]: adj.partition(3)
[1]    2709268 bus error (core dumped)  ipython

In what circumstances will this partition function lead to core dumping?

@rusty1s
Copy link
Owner

rusty1s commented May 7, 2024

There exists a few edge cases where METIS sadly silently just crashes :(

In your case, you need to make sure that your SparseTensor is correctly defined, and holds a quadratic matrix:

adj = SparseTensor.from_edge_index(torch.LongTensor([[1,2], [1,3], [2, 3]]).t(), sparse_sizes=(4, 4))
adj.partition(2)

@AaronNing
Copy link
Author

There exists a few edge cases where METIS sadly silently just crashes :(

In your case, you need to make sure that your SparseTensor is correctly defined, and holds a quadratic matrix:

adj = SparseTensor.from_edge_index(torch.LongTensor([[1,2], [1,3], [2, 3]]).t(), sparse_sizes=(4, 4))
adj.partition(2)

Hi, thanks for the reply. What are the "edge cases" which causes METIS "silently just crashes"? I encountered the issue when using a Python package who used the function. It was extremely hard to debug with neither error messgaes nor documents re available. Thanks!

@rusty1s
Copy link
Owner

rusty1s commented May 10, 2024

I think too small graphs is one edge case. The other one is that METIS expects to operate on undirected graphs.

Copy link

github-actions bot commented Nov 7, 2024

This issue had no activity for 6 months. It will be closed in 2 weeks unless there is some new activity. Is this issue already resolved?

@github-actions github-actions bot added the stale label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants