|
[Sponsors] |
November 24, 2009, 20:07 |
gfortran and LAPACK
|
#1 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
hey
cany anybody tell me how i can install LAPACK with gfortran.... i have a code tht has lapack libararies used in it and i want to run it with gfortran.. kindly let me know step by step procedure... i will be very much grateful ... kind regards |
|
November 27, 2009, 18:02 |
Lapack with gfortran
|
#2 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
You have 3 options:
1. Get a Linux, you will have all you need: gfortran, Blas, Lapack. 2. Use a Windows machine with Cygwin, when you install Cygwin make sure to check gfortran, Blas and Lapack. PROBABLY the most convenient solution for a Windows user. 3. Stand alone gfortran on a Windows machine. You must:
gfortran foo.f90 libblas.a liblapack.a or (not sure about the order) gfortran foo.f90 liblapack.a libblas.a 5. You should end up with something like a.exe wich is your executable. Happy number crunching. Do |
|
November 28, 2009, 09:34 |
thanks
|
#3 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
hey
thank you very very much for detailed answer.. one question.... after compiling BLAS u said to compile actualy library .... the command for that should i have to type it in SRC directory as well .. if not then where i need to write this command.. thanks once again.. i appreciate ur help.. was really lost in all this lapack and Blas installation.. cheers and have a good day |
|
November 28, 2009, 11:40 |
|
#4 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Lapack contains:
a few folders - one of them is SRC ( the source of Lapack) and one is Blas that contains himself a SRC (the source of Blas). So, if you have Lapack on your C drive, for compiling Blas you will write your commands in: C:\Lapack\Blas\src and for compiling Lapack in C:\Lapack\src Do |
|
November 29, 2009, 22:29 |
ok
|
#5 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
thanks a lot man .. i will do it.. if i run in any problem.. ill ask again.. i appreciate ur help
have a good day |
|
November 30, 2009, 13:33 |
|
#6 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
hey
i know tht my gfortran works properly as i am able to compile the programs from there and get the results.. but when i write this commond gfortran -c *.f it says tht gfortran is not recognised....thoug gfortran is there.. do u know whts going on?? kind regards |
|
November 30, 2009, 16:45 |
|
#7 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
i think i have somehow messed up with my gfortran.. whts the easiest way to install it as satand alone and not with cygwin...
kind regards |
|
November 30, 2009, 17:26 |
Link to gfortran
|
#8 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
||
December 1, 2009, 02:11 |
|
#9 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
thanks man... it is working now so will give the lapack installing a shot now..
regards |
|
December 1, 2009, 20:31 |
|
#10 |
Senior Member
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17 |
hey
i have installed the lapack and i do see the two libariries so i think installation is done ok... do u have any small fortran program tht i can use to check if lapack is installed or not?? or any reference from where i can get a small code to check the installation.. thanks kind regards |
|
December 29, 2010, 14:44 |
|
#11 | |
Member
sarangarajan
Join Date: Sep 2009
Posts: 31
Rep Power: 17 |
Hey
Thanks!. It worked pretty well Quote:
|
||
|
|