#graph-blas #suite-sparse

sys suitesparse_graphblas_sys

Rust bindings for SuiteSparse::GraphBLAS

6 releases

0.1.6 Feb 14, 2023
0.1.5 Nov 6, 2022
0.1.1 Oct 23, 2022

#806 in Math

Download history 38/week @ 2023-05-31 14/week @ 2023-06-07 23/week @ 2023-06-14 44/week @ 2023-06-21 43/week @ 2023-06-28 73/week @ 2023-07-05 34/week @ 2023-07-12 24/week @ 2023-07-19 25/week @ 2023-07-26 6/week @ 2023-08-02 8/week @ 2023-08-09 16/week @ 2023-08-16 12/week @ 2023-08-23 11/week @ 2023-08-30 48/week @ 2023-09-06 20/week @ 2023-09-13

91 downloads per month
Used in 2 crates (via graphblas_sparse_linear_a…)


22K SLoC

Contains (static library, 505KB) libgomp.a


Rust bindings to SuiteSparse:GraphBLAS. Crates should not directly use these bindings. Instead, the crate graphblas_sparse_linear_algebra provides a safe and idiomatic wrapper.

GraphBLAS implementation

suitesparse_graphblas_sys wraps the SuiteSparse:GraphBLAS v7.3.0. GraphBLAS implementation from Timothy A. Davis. This implementation is mostly compatible with the GraphBLAS specification version 2.0.


suitesparse_graphblas_sys uses the SuiteSparse:GraphBLAS GraphBLAS implementation developed by Timothy A. Davis.

By default, graphblas_sparse_linear_algebra makes a new build of SuiteSparse:GraphBLAS and links to it as a static dependency.


suitesparse_graphblas_sys clones the SuiteSparse:GraphBLAS repository upon build. The build system must have Git installed and an internet connection.

C compiler

suitesparse_graphblas_sys includes a build script to build SuiteSparse:GraphBLAS from source. The build process requires an installed C compiler, for example GCC.

Environment variables

suitesparse_graphblas_sys' build script reads the following environment variables:

  • SUITESPARSE_GRAPHBLAS_SYS_COMPILER_PATH with the path of the C compiler on the build system. For example, when using GCC11 on Ubuntu 22.04 please set the environment variable to: "/usr/lib/gcc/x86_64-linux-gnu/11"
  • SUITESPARSE_GRAPHBLAS_SYS_OPENMP_STATIC_LIBRARY_NAME with the name of the openmp implementation to be used. For example, when using GCC please set the environment variable to "gomp"

Bindgen and CMake

suitesparse_graphblas_sys depends on bindgen, please make sure the build system meets its requirements

suitesparse_graphblas_sys also requires CMake installed on the build system.


Awesome, contributions are welcome. suitesparse_graphblas_sys and your contribution may be relicensed and integrated into commercial software in the future. Therefore, you will be asked to agree to the Contributor License Agreement when you make a pull request.


suitesparse_graphblas_sys is licensed under Creative Commons Attribution Non Commercial 4.0 International. For other licensing options, please contact Sam Dekker.


Tested on Ubuntu 22.04.1 LTS with the distribution standard GCC compiler.

No runtime deps

~65K SLoC