I followed http://math-atlas.sourceforge.net/atlas ... 0000000000 to compile ATLAS along with LAPACK. Everything worked out fine. I have CUDA installed along with the appropriate drivers. Now my problem is, when trying to make MAGMA, I get the following error
- Code: Select all
../lib/libmagma.a(zgeev.o): In function `magma_zgeev':
zgeev.cpp:(.text+0xbdf): undefined reference to `cblas_dznrm2(int, void const*, int)'
I have both the dynamic and static versions of cblas, atlas, lapack, ptf77blas, ptcblas and f77blas in a folder that MAGMA's make.inc can see (It complains when I remove one of these files, so I'm sure it able to reach these).
libcblas.a and libcblas.so both generated by ATLAS exist. I even tried with nm and can see these functions defined.
- Code: Select all
nm libmagma.a | grep cblas
produces mangled names like
- Code: Select all
U _Z11cblas_zscaliPKvPvi
I am fairly new to compiling so many things at once. Can someone please help?
In case this is relevant, here is a snippet from my make.inc
- Code: Select all
OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_ -x f95-cpp-input
NVOPTS = --compiler-options -fno-strict-aliasing -DUNIX -O3 -DADD_
LDOPTS = -fPIC -Xlinker -zmuldefs
LIB = -lf77blas -latlas -lcblas -lcublas -lm -llapack
