Hi,
I am trying to use LAPACK for the first time and I am trying to install
CLAPACK on Apple G5 using the BLAS included with CLAPACK. Everything went fine
until executed step 7 in README.install:
---------------------------------------------------------------------------------
(7) Build the archive containing the eigensystem routines, compile
eigenroutine TIMING code, and the linear system TIMING code
by doing:
cd CLAPACK/TIMING; make
---------------------------------------------------------------------------------
Doing so I got the following message:
-------------------------------------------------------------------------------
Timing square REAL LAPACK linear equations routines
/xlintims < stime.in > stime.out 2>&1
-------------------------------------------------------------------------------
After this the program kept writing the file stime.out for a long time and
then exited with the make error.
For the sake of trying I tried installing it on a LINUX system and everything
went like a breeze. Then I compared stime.out generated on G5 and LINUX. In the
G5 stime.out, the following text was written in the beginning:
-------------------------------------------------------------------------------
LAPACK VERSION 3.0, released June 30, 1999
LAPACK timing, REAL square matrices
The following parameter values will be used:
M: 50 100 200 300 400 500
N: 50 100 200 300 400 500
K: 1 2 16 100
NB: 1 16 32 48 64
NX: 0 48 128 128 128
LDA: 513
The minimum time a subroutine will be timed = .000 seconds
-------------------------------------------------------------------------------
while the stime.out generated by LINUX had:
-------------------------------------------------------------------------------
LAPACK VERSION 3.0, released June 30, 1999
LAPACK timing, REAL square matrices
The following parameter values will be used:
M: 10 20 40 60 80
N: 10 20 40 60 80
K: 20 80
NB: 1 8
NX: 0 8
LDA: 81
The minimum time a subroutine will be timed = .050 seconds
-------------------------------------------------------------------------------
Seems like issuing the command "cd CLAPACK/TIMING; make" on G5 runs the
timing on the large test systems systems. So I tried doing it explicitly, i.e.
issue "make small" but it still ran the timing for large test system and I got
the same result with "make large".
Below if the make.inc file that I used without the optimization flags
-------------------------------------------------------------------------------
# LAPACK make include file. #
# LAPACK, Version 3.0 #
# June 30, 1999 #
####################################################################
#
# The machine (platform) identifier to append to the library names
#
PLAT = _OSX-070724
#
# Modify the CC and CFLAGS 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.
#
#######################################################
# This is used to compile C libary
CC = gcc
CFLAGS =
LOADER = gcc
LOADOPTS = $(CFLAGS)
NOOPT =
DRVCFLAGS = $(CFLAGS)
F2CCFLAGS = $(CFLAGS)
#######################################################################
#
# 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 = ../../blas$(PLAT).a
#BLASLIB = ../../libfblaswr.a -L/usr/sww/opt/SUNWspro/lib
-xlic_lib=sunperf
#BLASLIB = -L/usr/sww/opt/SUNWspro/lib -Bstatic -xlic_lib=sunperf
-Bdynamic
#BLASLIB = -L/home/eecs/dbindel/work/ATLAS/lib/SunOS_SunUSX \
# ../../libcblaswr.a -lcblas -latlas
LAPACKLIB = lapack$(PLAT).a
F2CLIB = ../../F2CLIBS/libF77.a ../../F2CLIBS/libI77.a
TMGLIB = tmglib$(PLAT).a
EIGSRCLIB = eigsrc$(PLAT).a
LINSRCLIB = linsrc$(PLAT).a
-------------------------------------------------------------------------------
I also tried installing with -funroll-all-loops -O3 flags but with same
result.
Please help me figure out what I am doing wrong.
Thanks
Gaurav Pranami
Graduate Student
Chemical Engineering Dept.
Iowa State University
|