|
|
|
|
|
by homerowilson
1673 days ago
|
|
I used OpenBLAS on my cheap last-generation AMD Ryzen 7 4700U laptop like so: git clone https://github.com/xianyi/OpenBLAS
&& cd OpenBLAS
&& make PREFIX=/opt/openblas install
&& curl https://jott.live/code/blas_test.cc | sed -n "/<code>/,/code>/p" | tail -n +2 | head -n -1 > blas_test.cpp inspect blas_test.cpp file, and then... g++ -I/opt/openblas/include/ blas_test.cc -lopenblas -std=c++11 -O3 -L/opt/openblas/lib/ -o blas_test && ./blas_test 512 512 512 100 100 and got a peak of about 192 gflops, averaging closer to 180.
So yeah, the M1 is > 6x faster in this simple single-precision matrix test. |
|