This is the first time I'm trying to use ATLAS. I can't tie it right. Here is a very simple sgemm program:
...
When I compile it on a linux platform with a standard ATLAS installation, it gives a binding error:
g++ test.c -lblas -lcblas -latlas -llapack /tmp/cc1Gu7sr.o: In function `main': test.c:(.text+0x29e): undefined reference to `cblas_sgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, int, int, int, float, float const*, int, float const*, int, float, float*, int)' collect2: ld returned 1 exit status
As you can see, I tried to give different combinations of libraries, but did not help. What am I doing wrong?
c ++ c blas atlas
usman
source share