-
Notifications
You must be signed in to change notification settings - Fork 197
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
Try to update graph then run sssp on new graph #1033
Comments
Hi @Yongze-zzz, We don't update any host-side graph metadata but there is an internal graph iterator that is used to access the graph. If you want to update the graph, please follow the example here. If you want to implement SSSP, please use Another example for loading Matrix Market graph |
Thanks for your reply! I have reproduced the graph updated phase and simple advance operator according to your example. As the simple advance operator, we construct an edge iterator that scans the entire adjacency list of the vertex like the code below in advance_base.cuh . |
Is the gunrock/unittests/test_dynamic_graph.h Lines 149 to 151 in 280fd77
Then you can run any advance on that CSR graph (not just the But you don't need to convert back to CSR if you want to run SSSP on a dynamic graph. You can 1) follow the example here to load and update the graph, then 2) add the SSSP code with the main difference being changing gunrock/examples/sssp/test_sssp.cu Lines 42 to 44 in 280fd77
to gunrock/examples/dynamic_graph/test_dynamic_graph.cu Lines 55 to 57 in 280fd77
And finally, specify the advance mode on the command line using the flag This would be a valuable contribution, so please fork and share your code, if possible, and I will be happy to help you resolve any issues. |
I modified /examples/test_sssp.cu by call sssp_app.cu and you could run it by command "./bin/sssp --src 0 market ../dataset/small/test_sssp.mtx --advance-mode SIMPLE".I look forward to your reply.Thanks! |
Thanks, @Yongze-zzz, for adding the SSSP code! I tried your code, and I saw the compilation error you reported. There was another error about |
Dear authors , the FLAG error I have been fixed by commented out gunrock_sssp function. But when I try to delete edges on directed graph, there is an complie error : /gunrock/gunrock/graph/dynamic_graph/kernels/map/delete.cuh(41): error: no instance of overloaded function "atomicSub" matches the argument list ,could you provide some suggestion to me to solve to prolem. Appreciate! |
Hi @Yongze-zzz, Thanks for debugging that compile error. I think that function is not necessary now. I also removed it, made a few changes, and successfully compiled the code. Could you send me an email at mawad@ucdavis.edu so we can coordinate how to share these changes with your fork? Do you mind pushing your changes so I can see the bug you are running into? |
Dear author!I tried to use the dynamic graph API to update the original graph and run sssp on the new graph.The important codes like below.
First,there is a graph with type:
So that the orginal graph: GraphT graph could using like: auto &graph_csr = graph.csr(),and auto &dyn_graph = graph.dyn();.
Is the dynamic graph constructed by default when loading the original graph?The output is dyn_graph.nodes = 4.
Next question is, after InsertEdgesBatch like below:
the dynamic graph seems like not be updated. Did I call the API in the right way?
Hope for u reply ,thanks
The text was updated successfully, but these errors were encountered: