Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

wrong number of iterations #4

Open
alex031029 opened this issue Dec 19, 2015 · 7 comments
Open

wrong number of iterations #4

alex031029 opened this issue Dec 19, 2015 · 7 comments

Comments

@alex031029
Copy link

I tested Cusha on LiveJournal dataset, finding only 1 iteration performed. PR, BFS and SSSP all had this issue. Is that a problem of wrong input format?I used edgelist as the input. Thanks!

@alex031029
Copy link
Author

Besides, some graphs will be divided into 0 shards. I am not sure what's wrong with my set up.

@farkhor
Copy link
Owner

farkhor commented Dec 19, 2015

The simplest execution of CuSha in Ubuntu 14.04 with $ ./cusha --input soc-LiveJournal1.txt --method CW and with BFS specified as the algorithm results in 10 iterations while the input graph is divided into 789 shards. Can you please be more specific about your configuration and how you run the framework? I also suggest you to read the usage as well as existing discussed (and solved) issues carefully; then start from the simplest algorithm (BFS).

@alex031029
Copy link
Author

Thanks for your response. I ran Cusha under Ubuntu 14.04 with CUDA 7.0. I also got 789 shards, while only 1 iteration was performed. I also ran belgium_osm and road_usa, which turned out to be 0 shards.

This is how I ran Cusha

  1. Uncommented the application in user_specified_global_configuration.h
  2. Preprocess the graph for PageRank using the program you offered in first issue PageRank seems to have an error.Please help! #1 .
  3. $ sh sfBuild.sh
  4. $ ./cusha --input soc-LiveJournal1.txt --method CW

I downloaded the the datasets from
http://www.cise.ufl.edu/research/sparse/MM/DIMACS10/belgium_osm.tar.gz
http://www.cise.ufl.edu/research/sparse/MM/SNAP/soc-LiveJournal1.tar.gz
http://www.cise.ufl.edu/research/sparse/MM/DIMACS10/road_usa.tar.gz

@farkhor
Copy link
Owner

farkhor commented Dec 20, 2015

Please start with the simplest algorithm (BFS) by un-commenting the corresponding line in user_specified_global_configurations.h. It seems to me that you want to run PageRank but you're using the same original edge-list, not the generated file (in your second step).

@alex031029
Copy link
Author

Thanks for your kind help. And sorry that I didn't express well. The second step is optional, I only preprocess for PageRank application, and of course use the generated file as the input for Cusha.

And I have tried all SSSP, PageRank and BFS. Unfortunately, none of them return expected answer. BFS application also gives me 1 iteration and 789 shards for soc-LiveJournal, and 0 shard for Belgium_osm and road_usa.

@farkhor
Copy link
Owner

farkhor commented Dec 21, 2015

Have you tried running with a different arbparam input as the source node for BFS? Maybe the structure of the graphs you're using have different indices? Can you also profile if the CUDA kernel gets executed for you at all?

@alex031029
Copy link
Author

That's it! After I changed arbparam to 2 or 3, it returned correct result. For Belgium_osm and road_usa, I just found I forgot to set the paramater to undirected. Many thanks for your help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants