Giter Site home page Giter Site logo

janljl / outerspgemm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gzxultra/outerspgemm

0.0 0.0 0.0 498 KB

Outer product Sparse Matrix Matrix Multiplication

License: Apache License 2.0

C++ 30.67% Makefile 1.65% C 67.10% Objective-C 0.12% Fortran 0.34% Shell 0.12%

outerspgemm's Introduction

OuterSpGEMM

Outer product Sparse Matrix Matrix Multiplication

outer_illustration

Download repository

This project contains submodule, so use recursive option to download them all.

git clone --recursive [email protected]:gzxultra/OuterSpGEMM.git

Compile code

make clean && make spgemm

Generate test matrices

Please make sure you have compiled the code before generating matrices.

For ER matrices, type the next command and we will generate four ER matrices for test, with fix scale(23) and edge factor {1, 2, 4, 8}, modifyscripts/gen-er.sh if you want other parameters.

make gen-er

For R-MAT matrices, type the next command and we will generate four R-MAT matrices for test, with fix scale(10) and edge factor {1, 2, 4, 8}, modifyscripts/gen-rmat.sh if you want other parameters.

make gen-rmat

All the test cases we will have a left matrix and a right matrix in the folder assets/, follow the naming pattern left_{matrix_type}_{scale}_{edge}.mtx.

Download real world matrices

Run sample programs

Here is the general Instruction.

./bin/OuterSpGEMM text {left_matrix} {right_matrix} {output_file} {nthreads} {nblockers} {block_width}

Some example that might help.

# run OuterGpGEMM on pre-generated ER(23, 4) matrix, 48 threads, 256 blockers and width of each blocker is 128
./bin/OuterSpGEMM_hw text assets/left_er23_4.mtx assets/right_er23_4.mtx ~/product.txt 48 256 128

# run OuterGpGEMM on run time ER(18, 18) matrix, 48 threads, 256 blockers and width of each blocker is 128
./bin/OuterSpGEMM_hw gen er 18 18 48 256 128

# profile data of OuterGpGEMM on run downloaded web-Google matrix, 48 threads, 256 blockers and width of each blocker is 128
./bin/ProfileOuterSpGEMM_hw text assets/web-Google.mtx assets/web-Google.mtx ~/product.txt 48 128 128

Clean up

Delete them all.

make clean

outerspgemm's People

Contributors

azadcse avatar gzxultra 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.