http://www.fi.muni.cz/~xsvobod2/misc/lapack/shared/shared-libs.zip
With those two libs and dlls I compiled and ran the code successfully.
So then I wanted to know if it was the blas or the lapack library that caused the runtime errors before.
Using the blas_win32.lib and the lapack.lib (from the lapack_3.1.1 implementation) libraries, causes a linker error (note that I had to change the DGESV definition to upper case, as lapack.lib only includes upper case definitions!):
1>LINK : fatal error LNK1104: Datei "ifconsol.lib" kann nicht geöffnet werden.
I can't find the file ifconsol.lib on my computer. I googled it and saw that it is part of of the Intel ® Fortran compiler distribution!? Seems like you do have that .lib file as well as these once, that are also required: libifcoremt.lib, libifport.lib, libmmt.lib, libirc.lib, svml_disp.lib.
Using the blas_win32.lib and the lapackD.lib leads to the following:
- Code: Select all
1>------ Erstellen gestartet: Projekt: lapack_test_ref_blas, Konfiguration: Debug Win32 ------
1>Verknüpfen...
1>lapackd.lib(xerbla.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_for_write_seq_fmt" in Funktion "_XERBLA".
1>lapackd.lib(dlamch.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_for_write_seq_fmt".
1>lapackd.lib(xerbla.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_for_write_seq_fmt_xmit" in Funktion "_XERBLA".
1>lapackd.lib(xerbla.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_for_stop_core" in Funktion "_XERBLA".
1>lapackd.lib(dgetrf.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_for_emit_diagnostic" in Funktion "_DGETRF".
1>lapackd.lib(ilaenv.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_for_emit_diagnostic".
1>lapackd.lib(dgetf2.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_for_emit_diagnostic".
1>lapackd.lib(dlaswp.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_for_emit_diagnostic".
1>lapackd.lib(dgetrf.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DTRSM" in Funktion "_DGETRF".
1>lapackd.lib(dgetrs.obj) : error LNK2001: Nicht aufgelöstes externes Symbol "_DTRSM".
1>lapackd.lib(dgetrf.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DGEMM" in Funktion "_DGETRF".
1>lapackd.lib(ilaenv.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_for_cpystr" in Funktion "_ILAENV".
1>lapackd.lib(dgetf2.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_IDAMAX" in Funktion "_DGETF2".
1>lapackd.lib(dgetf2.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DSWAP" in Funktion "_DGETF2".
1>lapackd.lib(dgetf2.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DSCAL" in Funktion "_DGETF2".
1>lapackd.lib(dgetf2.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_DGER" in Funktion "_DGETF2".
1>lapackd.lib(iparmq.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_logf" in Funktion "_IPARMQ".
1>lapackd.lib(iparmq.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_f_lanint_val" in Funktion "_IPARMQ".
1>lapackd.lib(dlamch.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "___powr8i4" in Funktion "_DLAMCH".
1>H:\Eigene Dateien\Visual Studio 2008\Projects\lapack_test_ref_blas\Debug\lapack_test_ref_blas.exe : fatal error LNK1120: 14 nicht aufgelöste externe Verweise.
1>Das Buildprotokoll wurde unter "file://h:\Eigene Dateien\Visual Studio 2008\Projects\lapack_test_ref_blas\lapack_test_ref_blas\Debug\BuildLog.htm" gespeichert.
1>lapack_test_ref_blas - 20 Fehler, 0 Warnung(en)
========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
Finally, using the libgoto_core2-r1.26.lib and the lapack_win32.lib complies successfully but casuses the same run-time error as before.
To conclude:
To be able to use the lapack_3.1.1 implementation, I am missing the following .lib files: ifconsol.lib,libifcoremt.lib, libifport.lib, libmmt.lib, libirc.lib, svml_disp.lib.
The successfully built optimized gotoBlas library causes a run-time error that I cannot resolve!?
I might gohead using blas_win32.dll and lapack_win32.dll for now. But I would really like to have an optimised blas library, if the performance really depends so much on it.
I might also try Julie's suggestion and use CLAPACK 3.1.2.
For now I will go home as it is 7 p.m. already ;-)
Jochen

