Page 4 of 8

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Thu Feb 11, 2010 8:47 pm
by graphicsRat
vitaly333 wrote:In lastest versions of gotoBlas missing file getarch.c:
make : *** No rule to make target 'getarch.c' , needed by 'getarch'. Stop.


What version are you compiling? GotoBLAS2-1.13? The last version I compiled was 1.12 I think. I try compiling 1.13 tomorrow.

BTW, I still plan to update the HOWTO after I complete a paper I'm writing. The deadline is just under a week.

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Fri Feb 12, 2010 5:26 pm
by vitaly333
What version are you compiling? GotoBLAS2-1.13?

GotoBLAS2-1.12 and 1.13

Please look at archive with goto library. Is there the file getarch.c? I don't find this file there.

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Fri Feb 12, 2010 8:27 pm
by graphicsRat
vitaly333 wrote:
What version are you compiling? GotoBLAS2-1.13?

GotoBLAS2-1.12 and 1.13
Please look at archive with goto library. Is there the file getarch.c? I don't find this file there.


I just successfully compiled GotoBLAS2-1.13 (available here).

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Sat Feb 13, 2010 10:39 am
by vitaly333
I just successfully compiled GotoBLAS2-1.13

I can't do it. When i try did it, using Cygwin make.exe, I get:
Code: Select all
make: *** No rule to make target 'getarch.c', needed by 'getarch'. Stop.
Makefile.system:41: Makefile.conf: No such file or directory
Makefile.system:551: Makefile.: No such file or directory
make: *** No rule to make target 'Makefile.'. Stop

What's wrong?

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Sat Feb 13, 2010 4:40 pm
by graphicsRat
vitaly333 wrote:
I just successfully compiled GotoBLAS2-1.13

I can't do it. When i try did it, using Cygwin make.exe, I get:
Code: Select all
make: *** No rule to make target 'getarch.c', needed by 'getarch'. Stop.
Makefile.system:41: Makefile.conf: No such file or directory
Makefile.system:551: Makefile.: No such file or directory
make: *** No rule to make target 'Makefile.'. Stop

What's wrong?


Use MINGW/MSYS.

Install MINGW first -- http://sourceforge.net/projects/mingw/files/
then MSYS http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe

... then run make in MSYS. (MSYS is a shell.)

PS: it appears the last stage of the build requires Perl, so you may have to install Perl (from activestate Perl for example) and hard link the name "perl" to the bin folder. I'll explain how to do this if its necessary.

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Tue Feb 16, 2010 9:46 am
by vitaly333
When I try compile it under msys and mingw i get error:
Code: Select all
make: *** No rule to make target 'getarch.c', needed by 'getarch'. Stop.
Makefile.system:41 Makefile.conf: No such file or directory
C:\msys\1.0\bin\make.exe: *** couldn't commit memory for cygwin heap, Win32 error 487

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Tue Feb 16, 2010 9:10 pm
by graphicsRat
vitaly333 wrote:When I try compile it under msys and mingw i get error:
Code: Select all
make: *** No rule to make target 'getarch.c', needed by 'getarch'. Stop.
Makefile.system:41 Makefile.conf: No such file or directory
C:\msys\1.0\bin\make.exe: *** couldn't commit memory for cygwin heap, Win32 error 487


Two questions:

1. Do you have the latest version of GotoBLAS?
2. How do you launch MSYS?

BTW, did you remember to change directory to the location where you unpacked GotoBLAS?

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Wed Feb 17, 2010 9:30 am
by vitaly333
1. Yes. v 1.13
2. via mysys.bat and then i go to directory /home/gotoblas (where I copied the unpacked files) and try to make library

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Thu Feb 18, 2010 8:56 pm
by graphicsRat
vitaly333 wrote:2. via mysys.bat and then i go to directory /home/gotoblas (where I copied the unpacked files) and try to make library


Why not though the start menu e.g. Start -> Programs -> MINGW -> MSYS .

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Fri Feb 19, 2010 6:04 am
by SeByDocKy
Hello,

I just compiled fine the last build of gotoblas 2 (1.13) with Cygwin + GCC (4.3x) and I obtained the .dll and the .lib thanks to "make dll". However, when I say to Matlab to use this .dll in by changing the blas.spec file, Matlab (2009b) is telling me that it don't find the .dll (correctly copied in the correct folder of matlab). With GotoBlas 1, I always did like that ... and it worked.

However, I would like to compile GoToBlas with Mingw but I believe that the gcc is still a (3.4x) branch ?. There are some speed impact using either GCC or mingw ?


S├ębastien

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Mon Feb 22, 2010 12:23 pm
by vitaly333
Why not though the start menu e.g. Start -> Programs -> MINGW -> MSYS .

no difference

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Mon Feb 22, 2010 4:14 pm
by graphicsRat
SeByDocKy wrote:I just compiled fine the last build of gotoblas 2 (1.13) with Cygwin + GCC (4.3x) and I obtained the .dll and the .lib thanks to "make dll". However, when I say to Matlab to use this .dll in by changing the blas.spec file, Matlab (2009b) is telling me that it don't find the .dll (correctly copied in the correct folder of matlab). With GotoBlas 1, I always did like that ... and it worked.


Try putting your dll in the Windows system32 folder. (Note, I don't use Matlab.)

SeByDocKy wrote:However, I would like to compile GoToBlas with Mingw but I believe that the gcc is still a (3.4x) branch ?. There are some speed impact using either GCC or mingw ?


I don't know. Why not give it a try and send us feedback.

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Mon Feb 22, 2010 4:16 pm
by graphicsRat
vitaly333 wrote:
Why not though the start menu e.g. Start -> Programs -> MINGW -> MSYS .

no difference


As you can see, it works on SeByDocKy's machine. Keep looking you'll find the problem.

For help,I can't properly link the lapack!

PostPosted: Thu Mar 11, 2010 11:00 pm
by chengyue
Dear Admin:
I followed the lapack-for windows on http://icl.cs.utk.edu/lapack-for-window ... #libraries
using Prebuilt libraries lapackd.lib and reference BLASd.lib in microsoft visual studio 2008.
I set the input lib path including inter fortran complier lib and input lib name both in debug and release mode
when I builded the sample file,I received the linking error:

error LNK2001: unresolved external symbol _dgesv_

I carefully checked if I using C++ calling C lib,and tryed the external "C",but aslo the same error.

I followed the Easy Windows Build using CMake to build the lib,but the CMake could just generate Visual Studio 2005 project,So
build the lib!

When I linked the library in VS2005,I also got the same link error.

error LNK2001: unresolved external symbol _dgesv_

Finally, I sereached the library on the google and found in
http://www.tecgraf.puc-rio.br/~ismael/C ... ds/Lapack/
downloaded the prebuilded lib and succeeded.

I guess it may be some error when I build the library,Could you tell me how
can I solve them problem

Thank you very much

Re: HOWTO LAPACK/CLAPACK for Windows

PostPosted: Thu Mar 11, 2010 11:13 pm
by admin
If I understand clearly you have Visual Studio 2008, and Intel Fortran compiler installed on your machine. This is very good.
You goal is to link the LAPACK Fortran Library to a C program. Is that correct?

Under Visual Studio, could you run the LAPACK testing please?
The CMAKE package is the easiest way to go.

Regards
Julie