GithubHelp home page GithubHelp logo

gdinh / sparserooflinebenchmark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sparserooflinebenchmark/sparserooflinebenchmark

0.0 0.0 0.0 795 KB

The Sparse Roofline Benchmark Suite

Shell 0.03% C++ 98.76% Julia 1.20% Makefile 0.02%

sparserooflinebenchmark's Introduction

The Sparse Roofline Benchmark Suite

The Sparse Roofline Benchmark Suite (SRBS) is a collection of sparse kernels that are used to evaluate the performance of sparse matrix kernels on modern architectures.

Installation

The SRBS uses Julia to generate datasets. To install Julia, please follow the instructions on the Julia website.

An example reference C++ implementation is provided in the example/ directory. All of the necessary files required to read a test dataset and benchmark the implementation are provided as header-only dependencies. The only requirement is a C++20 compliant compiler.

Usage

Once Julia is installed, you can generate test data for a particular problem with the src/Generator/Generator.jl script:

% julia src/Generator/Generator.jl --help

The script will generate a dataset for a particular problem and write it to the given destination.

For example, to generate RMAT data for spmv in the default location under ./data/ run the following command:

% julia src/Generator/Generator.jl spmv RMAT

Implementations of a given kernel are expected to be given as executables that take the same arguments as the reference implementation. All of the implementations take the same arguments, namely:

% ./spmv --help
Usage: ./spmv [OPTIONS]
Options:
  -h, --help      Print this help message
  -i, --input     Specify the path for the inputs
  -o, --output    Specify the path for the outputs
  -v, --verbose   Print verbose output

The above example implementation can be generated from examples/spmv.cpp. An example command to generate the executable using g++ is:

cd examples/
g++ -std=c++20 -o spmv spmv.cpp

Harnesses are provided to parse these arguments in several languages. To benchmark your implementation in C++, simply include src/benchmark.hpp. This file includes the necessary header-only dependencies to parse the arguments and read the input data, and calls the experiment function, which is expected to benchmark the kernel.

Formats

The SRBS uses the Binsparse format to store tensors on disk and in memory. In particular, the header of the file is a JSON object that describes the dimensions and format of the tensor, and the data for the tensor is stored as a set of named vectors. These objects may all be stored in the same file, (e.g. HDF5 or ZARR), or in separate files (e.g. .npy).

sparserooflinebenchmark's People

Contributors

willow-ahrens avatar albertlu03 avatar weiya711 avatar

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.