- changed status to wontfix
Can't find BLAS/LAPACK when inverting matrix
Issue #106
wontfix
CMakeFiles/BlazeUtils.dir/main.cpp.o: In function blaze::getrf(int, int, double*, int, int*, int*)':
/usr/local/include/blaze/math/lapack/clapack/getrf.h:176: undefined reference to
dgetrf_'
CMakeFiles/BlazeUtils.dir/main.cpp.o: In function blaze::getri(int, double*, int, int const*, double*, int, int*)':
/usr/local/include/blaze/math/lapack/clapack/getri.h:174: undefined reference to
dgetri_'
This appears to be the error. After a bit of looking around, this appears to be due to a linker error in the BLAS/LAPACK setup. I've tried reinstalling BLAS/LAPACK, and Blaze. I currently have the OpenBLAS and ATLAS BLAS libraries, and Lapack/Lapacke on my system. What would be the way to go about resolving this?
Many thanks.
Comments (2)
-
-
reporter That solves it! Thank you.
- Log in to comment
Hi Anubhab!
In order for all LAPACK-based functionality to work you need to link the according LAPACK library. For instance, for GCC and OpenBLAS this works like this:
For all other compilers it works either equally or similarly. This should resolve the linker error.
Best regards,
Klaus!