Code Monkey home page Code Monkey logo

6000d-project's Introduction

6000D-Project

This is the Project for DSAA 6000D(Graph Processing and Analytics, Prof. Luo) project. The main purpose of this repo is to reproduce the paper "Heuristic Adaptability to Input Dynamics for SpMM on GPUs" and profile the whole SparseSuite to find some insight and design space for optimization general spmm.

Part of the code files are borrowed from Ge-spmm and dgSPARSE. Thanks for their work and sharing.

Dependency

  1. cuda
  2. cusparse

Files description

├── data_example
│   └── ash219.mtx  # SparseSuite data example
├── download #Please kindly download the dataset, the whole dataset is over 300GB
│   ├── download.py # script to download sparsesuite
│   └── download.sh # script to launch the download.py
├── README.md
├── scripts
│   ├── get_matrix_feature.cpp # collect the matrix feature, such as nrow, ncol, nnz 
│   ├── preprocess_data.py 
│   └── spmm.cu # launch the test
├── experiment_result # experiments result for sparsesuite
│   ├── 1024.csv
│   ├── 128.csv
│   ├── 16.csv
│   ├── 20.csv
│   ├── 256.csv
│   └── 64.csv
└── src
    ├── kernel
    │   ├── csrspmm_non_transpose.cu
    │   ├── csrspmm_parreduce.cu
    │   ├── csrspmm_rowcaching.cu
    │   ├── csrspmm_seqreduce.cu
    │   ├── gespmm.cc
    │   ├── gespmm_csrcoo_v2.cu
    │   ├── gespmm.h
    │   ├── gespmm_v2.cu
    │   ├── gespmm_v2.h
    │   └── Makefile
    └── util
        ├── cuda_util.cuh
        ├── mmio.hpp
        └── sp_util.hpp

Compile

cd ./src/kernel
make 
cd ../../scripts
nvcc spmm.cu -I../src/kernel -L../src/kerenl -lgespmm -Lcuda_path/lib64 -lcusparse -o run

Run

./run ../data_example ./out
[INFO] Start 1-th/1 file, filename is ash219.mtx
[INFO] Successful 1-th/1 file, filename is ash219.mtx
cat ./out
filename,nrow,ncol,nnz,sparsity,degree,std_node_dgree,N,cusparse,SEQREDUCE_ROWBALANCE,SR_RB_speed,PARREDUCE_ROWBALANCE,PR_RB_speed,SEQREDUCE_NNZBALANCE,SR_NB_speed,PARREDUCE_NNZBALANCE,PR_NB_speed,ROWCACHING_ROWBALANCE,RC_RB_speed,ROWCACHING_NNZBALANCE,RC_NB_speed,THE_BEST_ALG_INDEX,THE_BEST_ALG_NAME,THE_BEST_ALG_TIME,THE_BEST_ALG_SPEED
ash219.mtx,219,85,438,0.0235294,2,0,128,0.0142976,0.003312,4.31691,0.0077632,1.84171,0.008592,1.66406,0.0070624,2.02447,0.0041056,3.48246,0.01024,1.39625,1,SEQREDUCE_ROWBALANCE,0.003312,4.31691

6000d-project's People

Contributors

galeselee avatar

Stargazers

 avatar  avatar

Watchers

 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.