gunrock

Programmable CUDA/C++ GPU Graph Analytics

https://github.com/gunrock/gunrock

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, acm.org
  • Committers with academic emails
    7 of 19 committers (36.8%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.0%) to scientific vocabulary

Keywords

algorithm algorithms cpp cuda cxx essentials gnn gpu graph graph-algorithms graph-analytics graph-engine graph-neural-networks graph-primitives graph-processing gunrock hpc parallel-computing sparse-matrix
Last synced: 4 months ago · JSON representation ·

Repository

Programmable CUDA/C++ GPU Graph Analytics

Basic Info
Statistics
  • Stars: 1,023
  • Watchers: 75
  • Forks: 206
  • Open Issues: 171
  • Releases: 12
Topics
algorithm algorithms cpp cuda cxx essentials gnn gpu graph graph-algorithms graph-analytics graph-engine graph-neural-networks graph-primitives graph-processing gunrock hpc parallel-computing sparse-matrix
Created about 12 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Code of conduct Citation

README.md

Gunrock: CUDA/C++ GPU Graph Analytics

Ubuntu Windows Code Quality

| Examples | Project Template | Documentation | GitHub Actions | |--------------|----------------------|-------------------|-------------------|

Gunrock[^1] is a CUDA library for graph-processing designed specifically for the GPU. It uses a high-level, bulk-synchronous/asynchronous, data-centric abstraction focused on operations on vertex or edge frontiers. Gunrock achieves a balance between performance and expressiveness by coupling high-performance GPU computing primitives and optimization strategies, particularly in the area of fine-grained load balancing, with a high-level programming model that allows programmers to quickly develop new graph primitives that scale from one to many GPUs on a node with small code size and minimal GPU programming knowledge.

| Branch | Purpose | Version | Status | |-----------|------------------------------------------------------------------------------------------------------------------------------------|----------------|------------| | main | Default branch, ported from gunrock/essentials, serves as the official release branch. | $\geq$ 2.x.x | Active | | develop | Development feature branch, ported from gunrock/essentials. | $\geq$ 2.x.x | Active | | master | Previous release branch for gunrock/gunrock version 1.x.x interface, preserves all commit history. | $\leq$ 1.x.x | Deprecated | | dev | Previous development branch for gunrock/gunrock. All changes now merged in master. | $\leq$ 1.x.x | Deprecated |

Quick Start Guide

Before building Gunrock make sure you have CUDA Toolkit[^2] installed on your system. Other external dependencies such as NVIDIA/thrust, NVIDIA/cub, etc. are automatically fetched using cmake.

shell git clone https://github.com/gunrock/gunrock.git cd gunrock mkdir build && cd build cmake .. make sssp # or for all algorithms, use: make -j$(nproc) bin/sssp ../datasets/chesapeake/chesapeake.mtx

Implementing Graph Algorithms

For a detailed explanation, please see the full documentation. The following example shows simple APIs using Gunrock's data-centric, bulk-synchronous programming model, we implement Breadth-First Search on GPUs. This example skips the setup phase of creating a problem_t and enactor_t struct and jumps straight into the actual algorithm.

We first prepare our frontier with the initial source vertex to begin push-based BFS traversal. A simple f->push_back(source) places the initial vertex we will use for our first iteration. cpp void prepare_frontier(frontier_t* f, gcuda::multi_context_t& context) override { auto P = this->get_problem(); f->push_back(P->param.single_source); } We then begin our iterative loop, which iterates until a convergence condition has been met. If no condition has been specified, the loop converges when the frontier is empty. ```cpp void loop(gcuda::multicontextt& context) override { auto E = this->getenactor(); // Pointer to enactor interface. auto P = this->getproblem(); // Pointer to problem (data) interface. auto G = P->get_graph(); // Graph that we are processing.

auto singlesource = P->param.singlesource; // Initial source node. auto distances = P->result.distances; // Distances array for BFS. auto visited = P->visited.data().get(); // Visited map. auto iteration = this->iteration; // Iteration we are on.

// Following lambda expression is applied on every source, // neighbor, edge, weight tuple during the traversal. // Our intent here is to find and update the minimum distance when found. // And return which neighbor goes in the output frontier after traversal. auto search = [=] host device( vertext const& source, // ... source vertext const& neighbor, // neighbor edget const& edge, // edge weightt const& weight // weight (tuple). ) -> bool { auto olddistance = math::atomic::min(&distances[neighbor], iteration + 1); return (iteration + 1 < olddistance); };

// Execute advance operator on the search lambda expression. // Uses loadbalancet::blockmapped algorithm (try others for perf. tuning.) operators::advance::execute<operators::loadbalancet::blockmapped>( G, E, search, context); } ``` include/gunrock/algorithms/bfs.hxx

How to Cite Gunrock & Essentials

Thank you for citing our work.

bibtex @article{Wang:2017:GGG, author = {Yangzihao Wang and Yuechao Pan and Andrew Davidson and Yuduo Wu and Carl Yang and Leyuan Wang and Muhammad Osama and Chenshan Yuan and Weitang Liu and Andy T. Riffel and John D. Owens}, title = {{G}unrock: {GPU} Graph Analytics}, journal = {ACM Transactions on Parallel Computing}, year = 2017, volume = 4, number = 1, month = aug, pages = {3:1--3:49}, doi = {10.1145/3108140}, ee = {http://arxiv.org/abs/1701.01170}, acmauthorize = {https://dl.acm.org/doi/10.1145/3108140?cid=81100458295}, url = {http://escholarship.org/uc/item/9gj6r1dj}, code = {https://github.com/gunrock/gunrock}, ucdcite = {a115}, }

bibtex @InProceedings{Osama:2022:EOP, author = {Muhammad Osama and Serban D. Porumbescu and John D. Owens}, title = {Essentials of Parallel Graph Analytics}, booktitle = {Proceedings of the Workshop on Graphs, Architectures, Programming, and Learning}, year = 2022, series = {GrAPL 2022}, month = may, pages = {314--317}, doi = {10.1109/IPDPSW55747.2022.00061}, url = {https://escholarship.org/uc/item/2p19z28q}, }

Copyright & License

Gunrock is copyright The Regents of the University of California. The library, examples, and all source code are released under Apache 2.0.

[^1]: This repository has been moved from https://github.com/gunrock/essentials and the previous history is preserved with tags and under master branch. Read more about gunrock and essentials in our vision paper: Essentials of Parallel Graph Analytics. [^2]: Recommended CUDA v11.5.1 or higher due to support for stream ordered memory allocators.

Owner

  • Name: gunrock
  • Login: gunrock
  • Kind: organization
  • Location: United States of America

All things GPUs, Graph Analytics, Sparse Linear Algebra and Load-Balancing (By @owensgroup).

Citation (CITATION.cff)

cff-version: 1.2.0
message: "Thank you for citing our work."
authors:
- family-names: "Osama"
  given-names: "Muhammad"
  orcid: "https://orcid.org/0000-0003-1616-6817"
title: "Essentials of Parallel Graph Analytics"
version: 0.0.1
doi: 10.1109/IPDPSW55747.2022.00061
url: "https://github.com/gunrock/essentials"
license: Apache-2.0
preferred-citation:
  type: conference-paper
  authors:
  - family-names: "Osama"
    given-names: "Muhammad"
    orcid: "https://orcid.org/0000-0003-1616-6817"
  - family-names: "Porumbescu"
    given-names: "Serban D."
  - family-names: "Owens"
    given-names: "John D."
    orcid: "https://orcid.org/0000-0001-6582-8237"
  doi: "10.1109/IPDPSW55747.2022.00061"
  collection-title: "Proceedings of the Workshop on Graphs, Architectures, Programming, and Learning"
  conference:
    name: "GrAPL 2022"
  month: 5
  start: 314 # First page number
  end: 317 # Last page number
  title: "Essentials of Parallel Graph Analytics"
  issue: 36
  year: 2022
  url: "https://escholarship.org/uc/item/2p19z28q"

GitHub Events

Total
  • Issues event: 5
  • Watch event: 60
  • Issue comment event: 5
  • Fork event: 12
Last Year
  • Issues event: 5
  • Watch event: 60
  • Issue comment event: 5
  • Fork event: 12

Committers

Last synced: 8 months ago

All Time
  • Total Commits: 828
  • Total Committers: 19
  • Avg Commits per committer: 43.579
  • Development Distribution Score (DDS): 0.401
Past Year
  • Commits: 14
  • Committers: 2
  • Avg Commits per committer: 7.0
  • Development Distribution Score (DDS): 0.143
Top Committers
Name Email Commits
neoblizz o****4@g****m 496
Annie a****e@a****m 149
Ubuntu u****u@i****l 39
Muhammad Awad m****d@u****u 37
cameronshinn c****n@h****m 32
Cameron Shinn c****n@u****u 24
bkj b****n@c****o 15
Ben Johnson b****2@g****m 6
liyidong l****g@o****m 6
marjerie m****h@u****u 6
Jonathan Wapman j****n@u****u 4
lxrzlyr 1****4@q****m 3
Afton Geil f****s@g****m 2
LeaX-XIV s****0@s****t 2
Ubuntu u****u@i****l 2
Serban Porumbescu s****u@u****u 2
Ubuntu u****u@i****l 1
Charles Rozhon c****n@u****u 1
DanLoran d****n@u****u 1

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 174
  • Total pull requests: 30
  • Average time to close issues: 8 months
  • Average time to close pull requests: 15 days
  • Total issue authors: 42
  • Total pull request authors: 10
  • Average comments per issue: 2.83
  • Average comments per pull request: 0.53
  • Merged pull requests: 28
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 4
  • Average time to close issues: 5 days
  • Average time to close pull requests: 6 days
  • Issue authors: 4
  • Pull request authors: 2
  • Average comments per issue: 1.29
  • Average comments per pull request: 0.25
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • neoblizz (49)
  • jowens (29)
  • yzhwang (24)
  • sgpyc (9)
  • 1duo (7)
  • May989 (5)
  • lxrzlyr (4)
  • bkj (3)
  • mahmoodn (3)
  • sree314 (3)
  • fvella (2)
  • ctcyang (2)
  • ranjanan (2)
  • kaanolgu (2)
  • ishitachaturvedi (2)
Pull Request Authors
  • neoblizz (14)
  • annielytical (6)
  • lxrzlyr (4)
  • 1duo (2)
  • wetliu (2)
  • atharvag1 (1)
  • prayagverma (1)
  • marjerie (1)
  • pavanky (1)
  • jowens (1)
Top Labels
Issue Labels
🐛 bug (22) 🐲 enhancement (21) 🔰 n00b (good first issue) (16) todo (13) 🍍 algorithms (11) 🍻 help wanted (10) 🚂 operators (7) ❓ question (7) 🏡 api (7) 📋 documentation (6) 🏭 build (4) 🐙 c++ (3) refactor (2) ⚖️ load-balancing (2) 🌉 continuous integration (1) 🍃 cuda & nvcc (1) 💩 wontfix (1)
Pull Request Labels
🐲 enhancement (6) 🍃 cuda & nvcc (3) 🏭 build (3) 🐛 bug (2) 🧪 testing (2) 🔬 experiment (2) ⚖️ load-balancing (1) 🏡 api (1) 🐙 c++ (1) performance (1) 🍍 algorithms (1) 📋 documentation (1) 🌉 continuous integration (1)

Dependencies

.github/workflows/clang-format.yml actions
  • EndBug/add-and-commit v9 composite
  • actions/checkout v3 composite
.github/workflows/codeql-analysis.yml actions
  • Jimver/cuda-toolkit v0.2.8 composite
  • actions/checkout v3 composite
  • github/codeql-action/analyze v2 composite
  • github/codeql-action/init v2 composite
.github/workflows/pages.yml actions
  • Jimver/cuda-toolkit v0.2.8 composite
  • actions/checkout v3 composite
  • actions/configure-pages v2 composite
  • actions/deploy-pages v1 composite
  • actions/setup-python v4 composite
  • actions/upload-pages-artifact v1 composite
.github/workflows/ubuntu.yml actions
  • Jimver/cuda-toolkit v0.2.8 composite
  • actions/checkout v3 composite
.github/workflows/windows.yml actions
  • Jimver/cuda-toolkit v0.2.8 composite
  • actions/checkout v3 composite
docs/sphinx/requirements.txt pypi
  • breathe ==4.34.0
  • exhale *
  • jinja2-highlight *
  • myst-parser *
  • sphinx ==4.5.0
  • sphinx-book-theme *
  • sphinx-rtd-theme *
  • sphinx-toolbox *
  • sphinx_copybutton *
  • sphinxcontrib-bibtex <2.0.0