HOWTO LAPACK/CLAPACK for Windows

Open discussion regarding features, bugs, issues, vendors, etc.

Did it work?

Yes
39
76%
No
12
24%
 
Total votes : 51

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Thu Feb 11, 2010 8:47 pm

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.
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby vitaly333 » Fri Feb 12, 2010 5:26 pm

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.
vitaly333
 
Posts: 16
Joined: Mon Oct 19, 2009 9:57 am

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Fri Feb 12, 2010 8:27 pm

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).
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby vitaly333 » Sat Feb 13, 2010 10:39 am

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?
vitaly333
 
Posts: 16
Joined: Mon Oct 19, 2009 9:57 am

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Sat Feb 13, 2010 4:40 pm

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.
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby vitaly333 » Tue Feb 16, 2010 9:46 am

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
vitaly333
 
Posts: 16
Joined: Mon Oct 19, 2009 9:57 am

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Tue Feb 16, 2010 9:10 pm

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?
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby vitaly333 » Wed Feb 17, 2010 9:30 am

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
vitaly333
 
Posts: 16
Joined: Mon Oct 19, 2009 9:57 am

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Thu Feb 18, 2010 8:56 pm

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 .
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby SeByDocKy » Fri Feb 19, 2010 6:04 am

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
SeByDocKy
 
Posts: 1
Joined: Fri Feb 19, 2010 5:51 am

Re: HOWTO LAPACK/CLAPACK for Windows

Postby vitaly333 » Mon Feb 22, 2010 12:23 pm

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

no difference
vitaly333
 
Posts: 16
Joined: Mon Oct 19, 2009 9:57 am

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Mon Feb 22, 2010 4:14 pm

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.
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby graphicsRat » Mon Feb 22, 2010 4:16 pm

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.
graphicsRat
 
Posts: 84
Joined: Wed Mar 25, 2009 3:08 pm

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

Postby chengyue » Thu Mar 11, 2010 11:00 pm

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
chengyue
 
Posts: 4
Joined: Thu Feb 25, 2010 10:45 pm

Re: HOWTO LAPACK/CLAPACK for Windows

Postby admin » Thu Mar 11, 2010 11:13 pm

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
admin
Site Admin
 
Posts: 468
Joined: Wed Dec 08, 2004 7:07 pm

PreviousNext

Return to User Discussion

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests

cron