Git Product home page Git Product logo

sgemm_riscv's Introduction

sgemm_riscv


RISC-V is an open standard Instruction Set Architecture (ISA) enabling a new era of processor innovation through open collaboration.


GEMM General matrix multiply, one of the Basic Linear Algebra Subprograms.


This project records the process of optimizing SGEMM (single-precision floating point General Matrix Multiplication) on the riscv platform.


To get started, please refer to Section Usage

Related tutorials are located on the wiki.

Blislab

Blislab is an open source teaching project that teaches you step-by-step optimization of matrix multiplication.

On the basis of the blislab project, surez-ok has made some deletions and optimizations (deleted into the simplest code, only supports x86 or riscv Linux OS), so The project is clearer and easier to get started.

Project structure

.
├── data
├── pics
├── prepare
│   ├── 0.hello_world
│   ├── 1.memory_copy
│   ├── 2.memcpy_bandwidth_test
│   ├── 3.flw_bandwidth_test
│   ├── 4.vlw_bandwidth_test
│   ├── 5.saxpy
│   └── imgs
└── sgemm
    ├── common
    ├── step0
    ├── step1
    ├── step2
    ├── step3
    ├── step4
    ├── step5
    ├── step6
    ├── step7
    ├── step8
    └── step9

In the prepare folder, I compiled some tutorials and demos for hardware performance testing.

In the sgemm folder, step0 to step9 are my experiments.

See wiki for more details.

Installation

You need to download the cross-compilation chain of riscv.

The development board I use is Nezha D1, download from here

Usage

Take step1 as an example

You need to modify the Makefile and configure CROSS_COMPILE in the first few lines of the Makefile as the correct cross-compiler

$ cd step1
$ make
$ adb push test_bl_sgemm_step1.x ./.
$ adb shell './test_bl_sgemm_step1.x'

Acknowledgement

Support

[email protected]

License

MIT License

sgemm_riscv's People

Contributors

zhao-dongyu avatar

Stargazers

 avatar Tony Pan avatar Kashyap Kurella avatar  avatar Javier Poveda Rodrigo avatar warm tan avatar hw Zeng avatar Brian Park avatar Isaac David avatar  avatar Daniel Mangum avatar Garrett Byrd avatar Aliaksei Chapyzhenka avatar Camel Coder avatar  avatar

Watchers

 avatar

sgemm_riscv's Issues

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.