help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rebuild of Octave-3.6.4 lost the use of ARPACK eigs


From: louis scott
Subject: Re: Rebuild of Octave-3.6.4 lost the use of ARPACK eigs
Date: Fri, 27 Dec 2013 22:58:46 +0000

Most helpful indeed Carlo, thanks.  I went back and housecleaned the older arpack libraries. Unfortunately, I can have arpack, or I can have ATLAS on all 4 cores :\

a = rand(4000, 4000);
octave:2> tic, det(a*inv(a)), toc
ans = NaN (known issue with det timing and the use of 4 cores matters here)
Elapsed time is 131.196 seconds.   vs 10 seconds before.


tic, eigs(a,7), toc
warning: eigs: Only 3 of the 7 requested eigenvalues converged
ans =

   0.0000e+00 + 0.0000e+00i
   0.0000e+00 + 0.0000e+00i
   0.0000e+00 + 0.0000e+00i
   0.0000e+00 + 0.0000e+00i
   2.0002e+03 + 0.0000e+00i
  -1.6360e+01 - 8.3687e+00i
  -1.6360e+01 + 8.3687e+00i

Elapsed time is 50.19 seconds.

Using: 
  ./configure --prefix=/usr/local/octave-3.6.4   \
  --with-fltk-prefix=/usr/local/fltk-1.3.2/lib   \
  --with-arpack-libdir=/usr/local/lib \
  --with-qrupdate-libdir=/usr/lib/qrupdate       \
  --with-blas="-lptcblas -lptf77blas -latlas" `: IF APPLICABLE` \
  LDFLAGS="-L/usr/local/lib"

I get eigs and the warnings and failure below.

Using:
  ./configure --prefix=/usr/local/octave-3.6.4   \
  --with-fltk-prefix=/usr/local/fltk-1.3.2/lib   \
  --with-arpack-libdir=/usr/local/lib \
  --with-qrupdate-libdir=/usr/lib/qrupdate       \
  --with-blas="-lptcblas -lptf77blas -latlas" `: IF APPLICABLE` \
  CPPFLAGS="-I/usr/local/atlas-3.10.1/include"                 \
  LDFLAGS="-L/usr/local/atlas-3.10.1/lib -L/usr/local/lib"

I get ATLAS running on  4 cores, but the  conflict below prevents the use of arpack.


configure:56375: checking for dseupd in -larpack
configure:56382: gfortran -o conftest -O -L/usr/local/lib -L/usr/local/lib conftest.f -larpack -llapack -lblas  -L/usr/local/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath -lm   >&5
/usr/bin/ld: warning: liblapack.so.3gf, needed by /usr/local/lib/libarpack.so, may conflict with liblapack.so.3
configure:56382: $? = 0
configure:56387: result: yes
configure:56398: checking whether the arpack library works
configure:56553: g++ -o conftest -g -O2   -L/usr/local/lib -L/usr/local/lib conftest.cpp -larpack -llapack -lblas  -L/usr/local/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6 -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.6/../../.. -lgfortran -lm -lquadmath -lm   >&5
/usr/bin/ld: warning: liblapack.so.3gf, needed by /usr/local/lib/libarpack.so, may conflict with liblapack.so.3
configure:56553: $? = 0
configure:56553: ./conftest
configure:56553: $? = 0
configure:56563: result: yes
 :
 :
configure:56948: checking for getpwnam
configure:56948: gcc -o conftest -g -O2 -pthread  -L/usr/local/lib conftest.c -lm   >&5
configure:56948: $? = 0
configure:56948: result: yes
configure:57167: checking for mode_t
configure:57167: result: yes
configure:57178: checking for off_t
configure:57178: gcc -c -g -O2 -pthread  conftest.c >&5
configure:57178: $? = 0
configure:57178: gcc -c -g -O2 -pthread  conftest.c >&5
conftest.c: In function 'main':
conftest.c:618:20: error: expected _expression_ before ')' token
configure:57178: $? = 1
configure: failed program was:
| /* confdefs.h */



On Fri, Dec 27, 2013 at 2:46 PM, c. <address@hidden> wrote:

On 27 Dec 2013, at 14:50, lascott <address@hidden> wrote:

> help eigs
> 'eigs' is a function from the file
> /usr/local/octave-3.6.4/lib/octave/3.6.4/oct/x86_64-unknown-linux-gnu/eigs.oct

If ARPACK is not found at configure time the file eigs.oct is still there but all it does is print the error message you saw.
So the problem is actually that your arpack install was not fount

> ./configure --prefix=/usr/local/octave-3.6.4                 \
>  --with-fltk-prefix=/usr/local/fltk-1.3.2                     \
>  --with-arpack-libdir=/usr/local/arpack-ng-3.1.3              \

this line is wrong, if you configured arpack with "./configure --prefix=/usr/local/"
the arpack library library will be placed into /usr/local/arpack-ng-3.1.3/lib

>  --with-qrupdate-libdir=/usr/lib/qrupdate                     \
>  --enable-readline                                             \
>  --enable-shared                                               \
>  --with-blas="-lptcblas -lptf77blas -latlas" `: IF APPLICABLE` \
>  CPPFLAGS="-I/usr/local/atlas-3.10.1/include"                 \
>  LDFLAGS="-L/usr/local/atlas-3.10.1/lib -L/usr/local/arpack-ng-3.1.3"

same as above.
before running make, check the screen output of configure and the file config.log
to make sure that your arpack installation was correctly detected.

HTH,
c.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]