Skip to content

mhieronymus/blasSpeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Speed comparison between naive implementation and OpenBLAS

This is a simple speedtest with matrix matrix multiplication and matrix vector multiplication with OpenBLAS and a naive implementation. You can change the value rounds to any desired number to alter the time used for the calculation.

Usage

If you installed OpenBLAS with the standard directory, you will need to use:

  • export LD_LIBRARY_PATH=/opt/OpenBLAS/lib/ (or to your directory with OpenBLAS)
  • g++ -o benchmark main.cpp -I /opt/OpenBLAS/include/ -L/opt/OpenBLAS/lib -lopenblas for compiling

Notes

The time is used from the CPU clock and may differ from realtime but since most of the time is running on the CPU, I prefer this way. If you have a different opinion, feel free to use time().

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages