Finn,
LAPACK is in Fortran and was primary aimed at Linux platform, to call
it from C is a little bit tricky. Adding Windows increase the
potential for problems...
The CLAPACK package is just an automatic translation from Fortran to C.
To start on CLAPACK is not easy but the learning curve is quiet steep.
We have a nice documentation written by a user to help you:
http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=1595&sid=52c8c3dc173200677bd92f0a34f60b40
(you do not need the goto blas steps at the beginning, to use the
reference BLAS is fine)
The sample code used is a call to dgesv
http://www.cs.rochester.edu/~bh/cs400/using_lapack.html
You will find the documentation on the LAPACK routines inside the
routine or on the LAPACK website. Here for dgelss:
http://www.netlib.org/lapack/double/dgelss.f
The best is to try to write a code and post it on the forum so we can
help you when you need.
If you need step by step instructions and examples under Windows. I
would advice you to use the ACML library (they provide LAPACK in C
under Windows and they have very nice examples).
The linking part would also be easier as their provide lapack and
optimized BLAS library together.
http://developer.amd.com/cpu/Libraries/acml/Pages/default.aspx
Hop eit helps
Julie
On Oct 13, 2009, at 8:59 AM, Wredenhagen, Finn wrote:
Thanks Julie,
So I can continue while ignoring the errors. I would like to
call the dgelss function to perform a least-squares estimate, but
where and how to do this isn?t obvious. Is there a main() somewhere
that shows how this is done? Thanks for you help.
Regards,
Finn
From: julie langou [mailto:julie@Domain.Removed]
Sent: Monday, October 12, 2009 3:04 PM
To: Wredenhagen, Finn
Cc: lapack@Domain.Removed
Subject: Re: [Lapack] Error installing clapack
Finn,
The error you see is minor, just an input file is missing in the
testing. Nothing to worry about.
We have a newer release of CLapack for Windows using CMAKE.
You can find it on the CLAPACK website: http://www.netlib.org/clapack/
If you encounter any problem, feel free to take a look on the LAPACK
forum, http://icl.cs.utk.edu/lapack-forum. We have many CLAPCK on
windows related posts.
Sincerely,
Julie
On Oct 9, 2009, at 10:30 AM, Wredenhagen, Finn wrote:
Hi,
I installed clapack from http://www.netlib.org/clapack/ (as
referenced in your FAQ sheet) and then compiled. I got the following
errors and am not certain what to do about them. I am on a Windows
XP Profession Version 2002 SP 3 using Visual Studio 8.0. During
compilation I get a debug run time error which I ignore and
continue. I?ve pasted the compile-time output below?my apologies
for sending you this mess. I am not sure what minimal useful set of
compiler output would be. The errors that keep recurring are these:
1>c:\program files\microsoft visual studio 8\vc\include\io.h(324) :
error C2375: 'isatty' : redefinition; different linkage
6>Project : error PRJ0019: A tool returned an error code from
"Testing BLAS 2 - double complex"
Full dump below. Do you have any suggestions? These are most
welcome.
Finn
1>------ Build started: Project: libf2c, Configuration: Debug
without wrap Win32 ------
1>Compiling...
1>open.c
1>c:\program files\microsoft visual studio 8\vc\include\io.h(324) :
error C2375: 'isatty' : redefinition; different linkage
1> c:\downloads\clapack-3.1.1-visual studio.zip\clapack-3.1.1-
visualstudio\f2clibs\libf2c\fio.h(111) : see declaration of 'isatty'
1>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\F2CLIBS\Debug without wrap
\BuildLog.htm"
1>libf2c - 1 error(s), 0 warning(s)
2>------ Build started: Project: xblat3z, Configuration: Debug
without wrap Win32 ------
2>Testing BLAS 3 - double complex
2>invalid number: incomprehensible list input
2>apparent state: unit 5 (unnamed)
2>last format: list io
2>lately reading direct formatted external IO
3>------ Build started: Project: xblat3s, Configuration: Debug
without wrap Win32 ------
3>xblat3s : warning PRJ0009 : Build log could not be opened for
writing.
3>Make sure that the file is not open by another process and is not
write-protected.
3>Testing BLAS 3 - single
3> TESTS OF THE REAL LEVEL 3 BLAS
3> THE FOLLOWING PARAMETER VALUES WILL BE USED:
3> FOR N 0 1 2 3 5 9
3> FOR ALPHA .0 1.0 .7
3> FOR BETA .0 1.0 1.3
3> ROUTINES PASS COMPUTATIONAL TESTS IF TEST RATIO IS LESS THAN
16.00
3> RELATIVE MACHINE PRECISION IS TAKEN TO BE 1.2E-07
3> SGEMM PASSED THE TESTS OF ERROR-EXITS
3> SGEMM PASSED THE COMPUTATIONAL TESTS ( 17496 CALLS)
3> SSYMM PASSED THE TESTS OF ERROR-EXITS
3> SSYMM PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
3> STRMM PASSED THE TESTS OF ERROR-EXITS
3> STRMM PASSED THE COMPUTATIONAL TESTS ( 2592 CALLS)
3> STRSM PASSED THE TESTS OF ERROR-EXITS
3> STRSM PASSED THE COMPUTATIONAL TESTS ( 2592 CALLS)
3> SSYRK PASSED THE TESTS OF ERROR-EXITS
3> SSYRK PASSED THE COMPUTATIONAL TESTS ( 1944 CALLS)
3> SSYR2K PASSED THE TESTS OF ERROR-EXITS
3> SSYR2K PASSED THE COMPUTATIONAL TESTS ( 1944 CALLS)
3> END OF TESTS
3>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
3>xblat3s - 0 error(s), 1 warning(s)
4>------ Build started: Project: xblat3d, Configuration: Debug
without wrap Win32 ------
4>xblat3d : warning PRJ0009 : Build log could not be opened for
writing.
4>Make sure that the file is not open by another process and is not
write-protected.
4>Testing BLAS 3 - double
4> TESTS OF THE DOUBLE PRECISION LEVEL 3 BLAS
4> THE FOLLOWING PARAMETER VALUES WILL BE USED:
4> FOR N 0 1 2 3 5 9
4> FOR ALPHA .0 1.0 .7
4> FOR BETA .0 1.0 1.3
4> ROUTINES PASS COMPUTATIONAL TESTS IF TEST RATIO IS LESS THAN
16.00
4> RELATIVE MACHINE PRECISION IS TAKEN TO BE 2.2E-16
4> DGEMM PASSED THE TESTS OF ERROR-EXITS
4> DGEMM PASSED THE COMPUTATIONAL TESTS ( 17496 CALLS)
4> DSYMM PASSED THE TESTS OF ERROR-EXITS
4> DSYMM PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
4> DTRMM PASSED THE TESTS OF ERROR-EXITS
4> DTRMM PASSED THE COMPUTATIONAL TESTS ( 2592 CALLS)
4> DTRSM PASSED THE TESTS OF ERROR-EXITS
4> DTRSM PASSED THE COMPUTATIONAL TESTS ( 2592 CALLS)
4> DSYRK PASSED THE TESTS OF ERROR-EXITS
4> DSYRK PASSED THE COMPUTATIONAL TESTS ( 1944 CALLS)
4> DSYR2K PASSED THE TESTS OF ERROR-EXITS
4> DSYR2K PASSED THE COMPUTATIONAL TESTS ( 1944 CALLS)
4> END OF TESTS
4>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
4>xblat3d - 0 error(s), 1 warning(s)
5>------ Build started: Project: xblat3c, Configuration: Debug
without wrap Win32 ------
5>xblat3c : warning PRJ0009 : Build log could not be opened for
writing.
5>Make sure that the file is not open by another process and is not
write-protected.
5>Testing BLAS 3 - complex
5> TESTS OF THE COMPLEX LEVEL 3 BLAS
5> THE FOLLOWING PARAMETER VALUES WILL BE USED:
5> FOR N 0 1 2 3 5 9
5> FOR ALPHA ( .0, .0) ( 1.0, .0) ( .7, -.9)
5> FOR BETA ( .0, .0) ( 1.0, .0) ( 1.3,-1.1)
5> ROUTINES PASS COMPUTATIONAL TESTS IF TEST RATIO IS LESS THAN
16.00
5> RELATIVE MACHINE PRECISION IS TAKEN TO BE 1.2E-07
5> CGEMM PASSED THE TESTS OF ERROR-EXITS
5> CGEMM PASSED THE COMPUTATIONAL TESTS ( 17496 CALLS)
5> CHEMM PASSED THE TESTS OF ERROR-EXITS
5> CHEMM PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
5> CSYMM PASSED THE TESTS OF ERROR-EXITS
5> CSYMM PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
5> CTRMM PASSED THE TESTS OF ERROR-EXITS
5> CTRMM PASSED THE COMPUTATIONAL TESTS ( 2592 CALLS)
5> CTRSM PASSED THE TESTS OF ERROR-EXITS
5> CTRSM PASSED THE COMPUTATIONAL TESTS ( 2592 CALLS)
5> CHERK PASSED THE TESTS OF ERROR-EXITS
5> CHERK PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
5> CSYRK PASSED THE TESTS OF ERROR-EXITS
5> CSYRK PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
5> CHER2K PASSED THE TESTS OF ERROR-EXITS
5> CHER2K PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
5> CSYR2K PASSED THE TESTS OF ERROR-EXITS
5> CSYR2K PASSED THE COMPUTATIONAL TESTS ( 1296 CALLS)
5> END OF TESTS
5>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
5>xblat3c - 0 error(s), 1 warning(s)
6>------ Build started: Project: xblat2z, Configuration: Debug
without wrap Win32 ------
6>xblat2z : warning PRJ0009 : Build log could not be opened for
writing.
6>Make sure that the file is not open by another process and is not
write-protected.
6>Testing BLAS 2 - double complex
6>'"..\xblat2z.exe"' is not recognized as an internal or external
command,
6>operable program or batch file.
6>The system cannot find the file specified.
6>The system cannot find the file specified.
6>Project : error PRJ0019: A tool returned an error code from
"Testing BLAS 2 - double complex"
6>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
6>xblat2z - 1 error(s), 1 warning(s)
7>------ Build started: Project: xblat2s, Configuration: Debug
without wrap Win32 ------
7>xblat2s : warning PRJ0009 : Build log could not be opened for
writing.
7>Make sure that the file is not open by another process and is not
write-protected.
7>Testing BLAS 2 - single
7> TESTS OF THE REAL LEVEL 2 BLAS
7> THE FOLLOWING PARAMETER VALUES WILL BE USED:
7> FOR N 0 1 2 3 5 9
7> FOR K 0 1 2 4
7> FOR INCX AND INCY 1 2 -1 -2
7> FOR ALPHA .0 1.0 .7
7> FOR BETA .0 1.0 .9
7> ROUTINES PASS COMPUTATIONAL TESTS IF TEST RATIO IS LESS THAN
16.00
7> RELATIVE MACHINE PRECISION IS TAKEN TO BE 1.2E-07
7> SGEMV PASSED THE TESTS OF ERROR-EXITS
7> SGEMV PASSED THE COMPUTATIONAL TESTS ( 3460 CALLS)
7> SGBMV PASSED THE TESTS OF ERROR-EXITS
7> SGBMV PASSED THE COMPUTATIONAL TESTS ( 13828 CALLS)
7> SSYMV PASSED THE TESTS OF ERROR-EXITS
7> SSYMV PASSED THE COMPUTATIONAL TESTS ( 1441 CALLS)
7> SSBMV PASSED THE TESTS OF ERROR-EXITS
7> SSBMV PASSED THE COMPUTATIONAL TESTS ( 5761 CALLS)
7> SSPMV PASSED THE TESTS OF ERROR-EXITS
7> SSPMV PASSED THE COMPUTATIONAL TESTS ( 1441 CALLS)
7> STRMV PASSED THE TESTS OF ERROR-EXITS
7> STRMV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
7> STBMV PASSED THE TESTS OF ERROR-EXITS
7> STBMV PASSED THE COMPUTATIONAL TESTS ( 961 CALLS)
7> STPMV PASSED THE TESTS OF ERROR-EXITS
7> STPMV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
7> STRSV PASSED THE TESTS OF ERROR-EXITS
7> STRSV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
7> STBSV PASSED THE TESTS OF ERROR-EXITS
7> STBSV PASSED THE COMPUTATIONAL TESTS ( 961 CALLS)
7> STPSV PASSED THE TESTS OF ERROR-EXITS
7> STPSV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
7> SGER PASSED THE TESTS OF ERROR-EXITS
7> SGER PASSED THE COMPUTATIONAL TESTS ( 388 CALLS)
7> SSYR PASSED THE TESTS OF ERROR-EXITS
7> SSYR PASSED THE COMPUTATIONAL TESTS ( 121 CALLS)
7> SSPR PASSED THE TESTS OF ERROR-EXITS
7> SSPR PASSED THE COMPUTATIONAL TESTS ( 121 CALLS)
7> SSYR2 PASSED THE TESTS OF ERROR-EXITS
7> SSYR2 PASSED THE COMPUTATIONAL TESTS ( 481 CALLS)
7> SSPR2 PASSED THE TESTS OF ERROR-EXITS
7> SSPR2 PASSED THE COMPUTATIONAL TESTS ( 481 CALLS)
7> END OF TESTS
7>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
7>xblat2s - 0 error(s), 1 warning(s)
8>------ Build started: Project: xblat2d, Configuration: Debug
without wrap Win32 ------
8>xblat2d : warning PRJ0009 : Build log could not be opened for
writing.
8>Make sure that the file is not open by another process and is not
write-protected.
8>Testing BLAS 2 - double
8>'"..\xblat2d.exe"' is not recognized as an internal or external
command,
8>operable program or batch file.
8>The system cannot find the file specified.
8>The system cannot find the file specified.
8>Project : error PRJ0019: A tool returned an error code from
"Testing BLAS 2 - double"
8>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
8>xblat2d - 1 error(s), 1 warning(s)
9>------ Build started: Project: xblat2c, Configuration: Debug
without wrap Win32 ------
9>xblat2c : warning PRJ0009 : Build log could not be opened for
writing.
9>Make sure that the file is not open by another process and is not
write-protected.
9>Testing BLAS 2 - complex
9> TESTS OF THE COMPLEX LEVEL 2 BLAS
9> THE FOLLOWING PARAMETER VALUES WILL BE USED:
9> FOR N 0 1 2 3 5 9
9> FOR K 0 1 2 4
9> FOR INCX AND INCY 1 2 -1 -2
9> FOR ALPHA ( .0, .0) ( 1.0, .0) ( .7, -.9)
9> FOR BETA ( .0, .0) ( 1.0, .0) ( 1.3,-1.1)
9> ROUTINES PASS COMPUTATIONAL TESTS IF TEST RATIO IS LESS THAN
16.00
9> RELATIVE MACHINE PRECISION IS TAKEN TO BE 1.2E-07
9> CGEMV PASSED THE TESTS OF ERROR-EXITS
9> CGEMV PASSED THE COMPUTATIONAL TESTS ( 3460 CALLS)
9> CGBMV PASSED THE TESTS OF ERROR-EXITS
9> CGBMV PASSED THE COMPUTATIONAL TESTS ( 13828 CALLS)
9> CHEMV PASSED THE TESTS OF ERROR-EXITS
9> CHEMV PASSED THE COMPUTATIONAL TESTS ( 1441 CALLS)
9> CHBMV PASSED THE TESTS OF ERROR-EXITS
9> CHBMV PASSED THE COMPUTATIONAL TESTS ( 5761 CALLS)
9> CHPMV PASSED THE TESTS OF ERROR-EXITS
9> CHPMV PASSED THE COMPUTATIONAL TESTS ( 1441 CALLS)
9> CTRMV PASSED THE TESTS OF ERROR-EXITS
9> CTRMV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
9> CTBMV PASSED THE TESTS OF ERROR-EXITS
9> CTBMV PASSED THE COMPUTATIONAL TESTS ( 961 CALLS)
9> CTPMV PASSED THE TESTS OF ERROR-EXITS
9> CTPMV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
9> CTRSV PASSED THE TESTS OF ERROR-EXITS
9> CTRSV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
9> CTBSV PASSED THE TESTS OF ERROR-EXITS
9> CTBSV PASSED THE COMPUTATIONAL TESTS ( 961 CALLS)
9> CTPSV PASSED THE TESTS OF ERROR-EXITS
9> CTPSV PASSED THE COMPUTATIONAL TESTS ( 241 CALLS)
9> CGERC PASSED THE TESTS OF ERROR-EXITS
9> CGERC PASSED THE COMPUTATIONAL TESTS ( 388 CALLS)
9> CGERU PASSED THE TESTS OF ERROR-EXITS
9> CGERU PASSED THE COMPUTATIONAL TESTS ( 388 CALLS)
9> CHER PASSED THE TESTS OF ERROR-EXITS
9> CHER PASSED THE COMPUTATIONAL TESTS ( 121 CALLS)
9> CHPR PASSED THE TESTS OF ERROR-EXITS
9> CHPR PASSED THE COMPUTATIONAL TESTS ( 121 CALLS)
9> CHER2 PASSED THE TESTS OF ERROR-EXITS
9> CHER2 PASSED THE COMPUTATIONAL TESTS ( 481 CALLS)
9> CHPR2 PASSED THE TESTS OF ERROR-EXITS
9> CHPR2 PASSED THE COMPUTATIONAL TESTS ( 481 CALLS)
9> END OF TESTS
9>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
9>xblat2c - 0 error(s), 1 warning(s)
2>Build log was saved at "file://c:\downloads\clapack-3.1.1-visual
studio.zip\CLAPACK-3.1.1-VisualStudio\BLAS\TESTING\Debug without wrap
\BuildLog.htm"
2>xblat3z - 0 error(s), 0 warning(s)
========== Build: 6 succeeded, 3 failed, 15 up-to-date, 0 skipped
==========
_______________________________________________
Lapack mailing list
Lapack@Domain.Removed
http://lists.eecs.utk.edu/mailman/listinfo/lapack
**********************************************
Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)
julie@Domain.Removed; http://www.cs.utk.edu/~julie/
**********************************************
Julie Langou; Research Associate in Computer Science
Innovative Computing Laboratory;
University of Tennessee from Denver, Colorado ;-)
julie@Domain.Removed; http://www.cs.utk.edu/~julie/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.eecs.utk.edu/mailman/private/lapack/attachments/20091013/5c59175a/attachment-0001.html
|