Installing lapack on 64 bit machine

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

Installing lapack on 64 bit machine

Postby Zahra » Sat Jun 02, 2012 9:28 am

Dear all,

I want to install the lapack library in a red hat linux system which is a 64 bit machine. Can any one help me on what version of lapack I should use and what kind of the instruction I must follow?

All the bests,
Zahra
Zahra
 
Posts: 13
Joined: Fri May 09, 2008 1:11 pm

Re: Installing lapack on 64 bit machine

Postby admin » Fri Jun 08, 2012 11:42 am

Just download, extract and type make!
But first, you will have to configure your make.inc accordingly, which compiler you want to use and so on.
But other than that, there is no specifics.

An easy way is just to grb the lapack package from red hat via rpm.

Julie
admin
Site Admin
 
Posts: 488
Joined: Wed Dec 08, 2004 7:07 pm

Re: Installing lapack on 64 bit machine

Postby cottrell » Tue Jun 12, 2012 2:58 pm

yum install lapack-devel
cottrell
 
Posts: 68
Joined: Thu Jan 15, 2009 1:40 pm

Re: Installing lapack on 64 bit machine

Postby rogermoore » Mon Jun 18, 2012 2:35 am

Or you can download tgz file and install:

wget http://getyourlink/lapack.tgz
tar zxvf lapack.tgz
cd LAPACK
wget http://getyourlink/lapack-dev/lapack--3.0--patch--10042002.tgz
tar zxvf lapack--3.0--patch--10042002.tgz
mv INSTALL/make.inc.LINUX make.inc
make install blaslib lib
mv lapack_LINUX.a liblapack.a
mv blas_LINUX.a librefblas.a
rogermoore
 
Posts: 1
Joined: Mon Jun 18, 2012 2:03 am

Re: Installing lapack on 64 bit machine

Postby Zahra » Thu Jul 05, 2012 5:24 am

Thanks for your replies. The version of my linux is

Red Hat Enterprise Linux Server release 5.5 (Tikanga)

but I couldn't find any lapack package in "http://rpmfind.net/linux/rpm2html/search.php?query=lapack&submit=Search+..."
related to this version. Can I use the other one? which will be more suitable for this version?

Bests
Zahra
 
Posts: 13
Joined: Fri May 09, 2008 1:11 pm

Re: Installing lapack on 64 bit machine

Postby Zahra » Thu Jul 05, 2012 6:01 am

When I compile the code it returns

/usr/bin/ld: warning: i386 architecture of input file `/home/z_shomali/lapack-3.1.1/lapack_LINUX.a(zunm2r.o)' is incompatible with i386:x86-64 output

and when I run it, it gives segmentation fault.
would you please help me with the problem?
Zahra
 
Posts: 13
Joined: Fri May 09, 2008 1:11 pm

Re: Installing lapack on 64 bit machine

Postby Zahra » Thu Jul 05, 2012 6:31 am

Also I should add that I use the following make file


# See the INSTALL/ directory for more examples.
#
SHELL = /sbin/sh
#
# The machine (platform) identifier to append to the library names
#
PLAT = _LINUX
#
# Modify the FORTRAN and OPTS definitions to refer to the
# compiler and desired compiler options for your machine. NOOPT
# refers to the compiler options desired when NO OPTIMIZATION is
# selected. Define LOADER and LOADOPTS to refer to the loader and
# desired load options for your machine.
#
FORTRAN = g77 -m64
OPTS = -funroll-all-loops -O3
DRVOPTS = $(OPTS)
NOOPT =
LOADER = g77
LOADOPTS =
#
# Timer for the SECOND and DSECND routines
#
# Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
TIMER = EXT_ETIME
# For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
# TIMER = EXT_ETIME_
# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME
# TIMER = INT_ETIME
# If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...)
# SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME
# TIMER = INT_CPU_TIME
# If neither of this works...you can use the NONE value... In that case, SECOND and DSECND will always return 0
# TIMER = NONE
#
# The archiver and the flag(s) to use when building archive (library)
# If you system has no ranlib, set RANLIB = echo.
#
ARCH = ar
ARCHFLAGS= cr
RANLIB = ranlib
#
# The location of the libraries to which you will link. (The
# machine-specific, optimized BLAS library should be used whenever
# possible.)
#
BLASLIB = /home/z_shomali/lapack-3.1.1/blas$(PLAT).a
LAPACKLIB = /home/z_shomali/lapack-3.1.1/lapack$(PLAT).a
TMGLIB = /home/z_shomali/lapack-3.1.1/tmglib$(PLAT).a
EIGSRCLIB = /home/z_shomali/lapack-3.1.1/eigsrc$(PLAT).a
LINSRCLIB = /home/z_shomali/lapack-3.1.1/linsrc$(PLAT).a
Zahra
 
Posts: 13
Joined: Fri May 09, 2008 1:11 pm

Re: Installing lapack on 64 bit machine

Postby jnaka2012 » Thu Jul 26, 2012 1:15 am

rogermoore wrote:Or you can download tgz file and install:

wget http://getyourlink/lapack.tgz
tar zxvf lapack.tgz
cd LAPACK
wget http://getyourlink/lapack-dev/lapack--3.0--patch--10042002.tgz
tar zxvf lapack--3.0--patch--10042002.tgz
mv INSTALL/make.inc.LINUX make.inc
make install blaslib lib
mv lapack_LINUX.a liblapack.a
mv blas_LINUX.a librefblas.a



Hi, I followed the same rule and used mv INSTALL/make.inc.ifort make.inc
Got these error.

somenath@Binder@lapack-3.4.0$make install blaslib lib
make: *** No rule to make target `install'. Stop.
somenath@Binder@lapack-3.4.0$
somenath@Binder@lapack-3.4.0$make blaslib
( cd BLAS/SRC; make )
make[1]: Entering directory `/home/somenath/Downloads/lapack-3.4.0/BLAS/SRC'
ifort -O3 -c isamax.f -o isamax.o
make[1]: ifort: Command not found
make[1]: *** [isamax.o] Error 127
make[1]: Leaving directory `/home/somenath/Downloads/lapack-3.4.0/BLAS/SRC'
make: *** [blaslib] Error 2
somenath@Binder@lapack-3.4.0$
somenath@Binder@lapack-3.4.0$


can you help me.
P.S. ifort is there in my system and perfectly working for simple codes where I dont require lapack or blas
jnaka2012
 
Posts: 3
Joined: Thu Jul 05, 2012 1:30 am

Re: Installing lapack on 64 bit machine

Postby admin » Thu Jul 26, 2012 10:34 am

P.S. ifort is there in my system and perfectly working for simple codes where I dont require lapack or blas


No the ifort command is not working. Maybe th eINTEL compiler is installed, but your machine is no finding it.
Just type ifort in your window terminal.
admin
Site Admin
 
Posts: 488
Joined: Wed Dec 08, 2004 7:07 pm


Return to User Discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests