Git Product home page Git Product logo

Comments (6)

jpfairbanks avatar jpfairbanks commented on May 19, 2024

Graph algorithms building blocks are a way to phrase parallel graph algorithms in terms of parallel primitives a brief slides description with many references ipdps summary and a julia paper that implements some of them.

from lightgraphs.jl.

sbromberger avatar sbromberger commented on May 19, 2024

paging @amitmurthy (since I seem to recall that he's done a lot of work with parallelism) for whatever input he would care to give here :)

from lightgraphs.jl.

sbromberger avatar sbromberger commented on May 19, 2024

After some testing, the issue becomes one of (lack of) shared memory for Graph objects. Using @parallel to try to get multiple-source Dijkstra shortest paths resulted in worse performance than just single-threading the algorithm.

If there were a way to do d_s_p using spectral analysis, we could make the adjacency or whatever other matrix a shared array and that might solve things, but it would require a complete rewrite of the Dijkstra implementation to work. @jpfairbanks - have you heard of an implementation of Dijkstra using graphs represented by matrices?

from lightgraphs.jl.

sbromberger avatar sbromberger commented on May 19, 2024

See also https://groups.google.com/d/msg/julia-dev/yhZ5_gEgUJw/2oPZMXugCQAJ

from lightgraphs.jl.

jpfairbanks avatar jpfairbanks commented on May 19, 2024

Some more documents on this. Intel, GaBB14, SharedSparseMatrix Implementation

Based on a discussion with @sbromberger,
Accessing Sparse Matrices without copying the columns:

function column(a::SparseMatrixCSC, i::Integer)
    return sub(a.rowval, a.colptr[i]:a.colptr[i+1]-1)
end

for u in 1:nv(g)
    for v in column(g, u)
         print("Operating on edge $u-->$v")
    end
end

An update to SharedSparseMatrixCSC should make sure to support indexing with sub.

from lightgraphs.jl.

sbromberger avatar sbromberger commented on May 19, 2024

Moving discussion to #150

from lightgraphs.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.