Eispack, compiling and running the program

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

Eispack, compiling and running the program

Postby GNOW MAS » Sun Apr 24, 2011 11:48 am

Hi, I am a beginner in using the solvers such as Lapack, Eispack
I am using ssh shell for connecting to the computers of my department.

My program is written in F95 code. I know the codes for calling a routine in my program.
However, I dont know how to compile and run the program. How can I link to eispack when I run it?

normally, when I compile a program, I'll type
f95 -o output file.f95
And then I run "output"
output > data.txt

But if I have to call the routines, what should I type for compiling and running the program??

This is the directory of Eispack
/home/staff/user321/eispack


Thank you very much !!!!!!
GNOW MAS
 
Posts: 10
Joined: Sun Apr 24, 2011 11:31 am

Re: Eispack, compiling and running the program

Postby admin » Mon Apr 25, 2011 6:07 am

First you may want to use LAPACK (Eigensolvers are in LAPACK).
Code: Select all
Download LAPACK from http://www.netlib.org/lapack
tar xfvz lapack.tgz
cd lapack-X.X.X (X.X.X being the LAPACK version)
cp make.inc.example make.inc
make blaslib (to get the Reference BLAS)
make


To link your program with LAPACK
Code: Select all
f95 -o output file.f95 /YOURPATHTOLAPACKDIRECTORY/lapack_LINUX.a /YOURPATHTOLAPACKDIRECTORY/blas_LINUX.a

Let me know if you run into some problems
Julie
admin
Site Admin
 
Posts: 501
Joined: Wed Dec 08, 2004 7:07 pm

Re: Eispack, compiling and running the program

Postby GNOW MAS » Mon Apr 25, 2011 9:51 am

Thank you very much !!!
It seems that it is running properly
your instruction is really useful

I want to know that where can I get these kind of instruction on linking to LAPACK
GNOW MAS
 
Posts: 10
Joined: Sun Apr 24, 2011 11:31 am

Re: Eispack, compiling and running the program

Postby admin » Tue Apr 26, 2011 6:39 am

Everything is inside the installation guide: http://www.netlib.org/lapack/lawnspdf/lawn81.pdf
It has not been updated for a while but the basics are the same.
And of course, do not hesitate to post on the forum.
Julie
admin
Site Admin
 
Posts: 501
Joined: Wed Dec 08, 2004 7:07 pm


Return to User Discussion

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron