The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Makefiles to compile LAPACK 3.1.1 under Windows (32 and 64)

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

Makefiles to compile LAPACK 3.1.1 under Windows (32 and 64)

Postby shutov » Mon Apr 16, 2007 9:47 am

I found that I had to run Cygwin to compile new libraries, but I really wanted to use MS Visual Studio 2005 with Intel Fortran 9.1 for that, so I had to redesign all the makefiles and add some batch files to make it work. I have 2 setups - for ia32 and for em64t. You may need to change some paths in *.bat files to make it compile, like using 'Program Files' directory instead of 'Program Files (x86)'.
I post zip file with all directory structures and makefiles here, you just need to overwrite your sources with it. But I cannot guarantee the link will stay for long time, so you may copy it and share it too.
http://www.freewebtown.com/stellar/lapack-3.1.1_windows_makefile.zip
shutov
 
Posts: 4
Joined: Mon Apr 16, 2007 9:17 am
Location: Saint Louis, Missouri, USA

in addition

Postby shutov » Mon Apr 16, 2007 10:11 am

Also, you may need to change HOME parameter in make_win*.inc files to point to your copy of the sources, and FFLAGS also there to describe what kind of the output symbols you need (uppercase/lowercase, with trailing underscore or not).
shutov
 
Posts: 4
Joined: Mon Apr 16, 2007 9:17 am
Location: Saint Louis, Missouri, USA

Postby grant8 » Wed Apr 18, 2007 4:41 am

hi,

thankyou for providing the zip file!!

in the batch file, i changed the ifortvars line to:
call "%IFORT_COMPILER91%\ia32\bin\ifortvars.bat"
that part seems to work OK.

inside make_win32.inc, i changed HOME to specify the directory where the batch file lives.

i'm not sure what to do about BLASLIB inside make_win32.inc. is anything required there? initially i would like to link to the reference BLAS, and later on, i would like to link to a vendor BLAS.

currently nmake says "fatal error U1073: don't know how to make lsame.obj"

cheers,
grant
grant8
 
Posts: 3
Joined: Mon Apr 16, 2007 8:56 am

Postby shutov » Wed Apr 18, 2007 8:57 am

BLASLIB variable is OK the way it is.
The idea how to make lsame.obj (from lsame.f, which is 1st in INSTALL directory's makefile) NMAKE gets from the last line of /install/makefile file, which is ".f.obj: ; $(FORTRAN) $(OPTS) /c $<". I use NMAKE from Visual Studio 2005, and it recognizes it well. I also tested it with NMAKE from Visual Studio 6, also successfully. I suppose you copied all the makefiles to the proper places in the corresponding directories, not only the top level? Check if you have that line in the makefile from INSTALL directory.
shutov
 
Posts: 4
Joined: Mon Apr 16, 2007 9:17 am
Location: Saint Louis, Missouri, USA


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests