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

How to write a Makefile with gfortran linking lapack

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

How to write a Makefile with gfortran linking lapack

Postby samlie » Thu May 10, 2007 8:59 pm

Hi, everyone

I'm a newbie to lapack, today I just installed (I'm not sure successful or not, but I didn't have errors when I type those 'makes' as the installation guide said.) So, anyway, back to my question, I installed Lapack in Ubuntu with gfortran, and first when I untar the .tgz installation file, I untared it at /home/Lapack directory. So after installation, here is the file I got:

/home/Lapack: blas_LINUX.a, lapack_LINUX.a, tmglib_LINUX.a
/usr/local/lib: libblas.a
/usr/lib/atlas: libblas.so.3 and liblapack.so.3 , I think these two files came with ubuntu and were there before I install Lapack, although I'm not sure.

Ok, so now I'm not sure I have everything I should have and is it enough for me to call lapack subroutines now. But first problems is: after I write two small fortran programs, main.f90 and call.f90, in call.f90 I called the subroutine dgemv to solve the linear equation. But I don't know what the makefile should be like so that I can compile through, obviously I need to do some linking with Lapack library, did I?

So for anyone who finished reading my this messy post, I really appreciated, If you happen to know how to solve this problem, please do reply it, thank you very much in advance.

Sam
samlie
 
Posts: 1
Joined: Thu May 10, 2007 8:47 pm

Re: How to write a Makefile with gfortran linking lapack

Postby celexa » Sat May 12, 2007 9:12 pm

samlie wrote:Hi, everyone

I'm a newbie to lapack, today I just installed (I'm not sure successful or not, but I didn't have errors when I type those 'makes' as the installation guide said.) So, anyway, back to my question, I installed Lapack in Ubuntu with gfortran, and first when I untar the .tgz installation file, I untared it at /home/Lapack directory. So after installation, here is the file I got:

/home/Lapack: blas_LINUX.a, lapack_LINUX.a, tmglib_LINUX.a
/usr/local/lib: libblas.a
/usr/lib/atlas: libblas.so.3 and liblapack.so.3 , I think these two files came with ubuntu and were there before I install Lapack, although I'm not sure.

Ok, so now I'm not sure I have everything I should have and is it enough for me to call lapack subroutines now. But first problems is: after I write two small fortran programs, main.f90 and call.f90, in call.f90 I called the subroutine dgemv to solve the linear equation. But I don't know what the makefile should be like so that I can compile through, obviously I need to do some linking with Lapack library, did I?

So for anyone who finished reading my this messy post, I really appreciated, If you happen to know how to solve this problem, please do reply it, thank you very much in advance.

Sam
please do reply it, thank you very much in advance.

http://crazydrug.net/product_euphoria_cologne.htm
celexa
 
Posts: 1
Joined: Sat May 12, 2007 9:08 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests