NickFort
Technical User
- Jun 10, 2010
- 113
Hi all,
I'm back with another question. I think the title of this thread does need a bit of explanation.
I've downloaded LAPACK (which contains the BLAS source) and LAPACK95 from netlib.org.
As I understand it, LAPACK95 depends on LAPACK, which in turn depends on BLAS.
I want to compile all of this myself; there are Makefiles for all three (none of which works with Windows out of the box, and there is a modification to the Makefile at and a few others) BUT, despite this convenience, I'd still like to compile them myself, as an exercise.
What I've done so far is:
BLAS
LAPACK
With LAPACK, there are a few files in the INSTALL folder that are dependencies of the source files in the SRC folder, which I just copy over to the SRC folder.
The above does compile.
I haven't compiled LAPACK95 yet, and I can't test this yet because I need to wait, but does it sound about right? Do I need the -mrtd option? I've read the GCC manual, but I can't for the life of me figure out what it actually does; all I know is that it's something to do with calling conventions. Does it just set calling convention to stdcall?
I expect that the BLAS portion above is probably OK, but can I just link BLAS to LAPACK with the -L.?
Thanks,
NF
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.
I'm back with another question. I think the title of this thread does need a bit of explanation.
I've downloaded LAPACK (which contains the BLAS source) and LAPACK95 from netlib.org.
As I understand it, LAPACK95 depends on LAPACK, which in turn depends on BLAS.
I want to compile all of this myself; there are Makefiles for all three (none of which works with Windows out of the box, and there is a modification to the Makefile at and a few others) BUT, despite this convenience, I'd still like to compile them myself, as an exercise.
What I've done so far is:
BLAS
Code:
$ gfortran *.f -c -O3
$ gfortran -shared *.o -o libblas.dll
LAPACK
Code:
$ gfortran *.f -c -O3
$ gfortran -shared *.o -o liblapack.dll -L. libblas.dll
With LAPACK, there are a few files in the INSTALL folder that are dependencies of the source files in the SRC folder, which I just copy over to the SRC folder.
The above does compile.
I haven't compiled LAPACK95 yet, and I can't test this yet because I need to wait, but does it sound about right? Do I need the -mrtd option? I've read the GCC manual, but I can't for the life of me figure out what it actually does; all I know is that it's something to do with calling conventions. Does it just set calling convention to stdcall?
I expect that the BLAS portion above is probably OK, but can I just link BLAS to LAPACK with the -L.?
Thanks,
NF
--------------------------------------
Background: Chemical engineer, familiar mostly with MATLAB, but now branching out into real programming.