Skip to content
/ matlib Public
forked from wid4soe/matlib

Matrix Library for RISC-V Accelerators

License

Notifications You must be signed in to change notification settings

ucb-bar/matlib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matlib

This is a repository for matlib, a Matrix Library for RISC-V Accelerators. The library exposes a small number of matrix operations that can later be translated into accelerated instructions. Follow the following steps to build the library. The USE_TYPE option takes float32 and float64, and the USE_RVV, USE_RVVU, and USE_RVVF are meant to be exclusive.

git clone git@github.com:wid4soe/matlib.git
mkdir matlib/build
cd build
cmake -DUSE_RVV=OFF -DUSE_CPU=OFF -DUSE_RVVU=ON -DUSE_RVVF=OFF -DCHECKSUM=OFF -DUSE_TYPE=float32 ..
make

Finally, to test using spike, use the following command. If everything goes well, there should be a list of available functions followed by a pass and the number cycles.

spike --isa=rv64gcv_zicntr --varch=vlen:512,elen:32 test_matlib_rvv

About

Matrix Library for RISC-V Accelerators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 36.8%
  • C 30.8%
  • C++ 29.2%
  • CMake 3.2%