-
Notifications
You must be signed in to change notification settings - Fork 15
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
CUDA Error while using Python solver #26
Comments
You can reproduce this issue with the objects in this link using the following script:
|
Hi, Thanks for reporting. The issue is actually just in the way multicut instance is being created. So in RAMA we expect that node indices always start from 0 and there are no missing node indices. For example on a graph with 1000 nodes, the node indices should be in [0, 999]. After preprocessing your instance to satisfy this requirement with the following code, the instance runs successfully (actually RAMA finds optimal solution!).
|
Hi, thanks for your quick response! I can confirm that the revised script works. Furthermore, I've conducted few more experiments with similar type of graphs and did not encounter an issue. As you mentioned, one should first map the edge indices so that node ids are consecutive. Afterward, the clusters can be "unmapped" if need be. I close this issue now. Thank you for open-sourcing your great work! |
Hello, sorry for posting on a closed issue, but I ran in to this issue sporadically before I started sanitizing my input as above. |
Hi, difficult to say. Perhaps you can sanitize the above example you gave and see the results. Then check where the results Line 420 in c75ba88
|
Okay, I can try that. The issue I'm facing is I have a graph with some nodes that are disconnected, and while it usually works fine, it occasionally crashes when I give it that (i.e. an edge list in which a few nodes do not appear). |
Hi @jpapon and @ocetintas, Just wanted to update that I have added a functionality for sanitizing the input graph and perform the inversion already inside the RAMA code. Please check the section https://github.com/pawelswoboda/RAMA/blob/master/README.md#input-format for usage (if you need). |
Hi,
For some graphs, I am encountering cudaErrorIllegalAddress error while running rama_cuda function. I am adding a script that reproduces this error in the next comment. Here is the full output:
The text was updated successfully, but these errors were encountered: