Skip to content

gunrock/pygunrock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pygunrock

Simple python implementation of gunrock APIs

pygunrock is a pure Python implementation of the gunrock API, optimized for rapid prototyping and ease of understanding. pygunrock is not a Python API for gunrock.

Quickstart

conda create -n pygunrock_env python=3.6 pip -y
source activate pygunrock_env
pip install -r requirements.txt

python apps/hello.py        # Compute degrees
python apps/sssp.py --src 1 # Compute SSSP

About

gunrock is a CUDA library for graph-processing designed specifically for the GPU. It is highly performant, but apps must be written in C++/CUDA, which is not always the easiest way to prototype a new algorithm.

pygunrock intended to be used as a development environment, where the programmer can map their algorithm to the gunrock abstractions, test for correctness, and then port the pygunrock Python code to gunrock C++ code. When developing complex apps, pygunrock can serve as a useful tool for accelerating programmer productivity.

Usage

We have a number of apps implemented in both pygunrock and gunrock

For example, SSSP is available in pygunrock and in gunrock, in the tests/sssp and gunrock/app/sssp/ directories. A side-by-side comparison of the implementations shows their similarity. For instance, compare:

or

Releases

No releases published

Packages

No packages published

Languages