Page 1 of 1

lapack-3.1.1

PostPosted: Sun Aug 03, 2008 5:31 am
by Zahra
Hi all,

I have installed lapack-3.1.1 on my linux machin on the home directory (/home/lapack-3.1.1). Lapack folder includes these parts:

blas_LINUX.a html lapack_LINUX.a make.inc manpages SRC tmglib_LINUX.a
BLAS COPYING INSTALL Makefile make.inc.example README TESTING

But I can't link my code with this installed library. Can anyone help me with the suitable command needed?


All the best,
Zahra

Re: lapack-3.1.1

PostPosted: Mon Aug 04, 2008 1:31 pm
by Julie
You should use something like:
Code: Select all
"Fortran compiler" -o myprog -c myprog.f "pathtolapacklibrary"/lapack.a "pathtoblaslibrary"/blaslibrary.a

the blaslibrary could be the ref blas (provided with the lapack package) or any optimized blas library (goto, atlas, acml. mkl, etc...)

For example:
Code: Select all
gfortran -o myprog -c myprog.f /home/user/lib/lapack.a /home/user/lib/refblas.a

Re: lapack-3.1.1

PostPosted: Mon Aug 04, 2008 4:08 pm
by Zahra
Thanks Julie. It worked.