Cannot find -lgoto when installing CLAPACK

Post here if you have a question about linking your program with LAPACK or ScaLAPACK library

Cannot find -lgoto when installing CLAPACK

Postby fSnt123 » Fri Aug 19, 2011 7:57 am

Hi all,
I am installing CLAPACK 3.2.1 on OpenSUSE 11.4. I have followed steps in http://www.netlib.org/clapack/readme.install,however I'm stuck now at steps 6, when I tried to play
cd CLAPACK/TESTING/MATGEN; make
cd CLAPACK/TESTING; make
It returned errors,then I try to
cd CLAPACK; make;
The same errors have shown up.

/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/bin/ld: cannot find -lgoto
collect2: ld returned 1 exit status
make[2]: *** [../xlintsts] Error 1
make[2]: Leaving directory `/home/funzi/Downloads/CLAPAC/CLAPACK-3.2.1/TESTING/LIN'
make[1]: *** [xlintsts] Error 2
make[1]: Leaving directory `/home/funzi/Downloads/CLAPAC/CLAPACK-3.2.1/TESTING'
make: *** [lapack_testing] Error 2

Thank you for any suggestion.
fSnt123
 
Posts: 3
Joined: Fri Aug 19, 2011 7:34 am

Re: Cannot find -lgoto when installing CLAPACK

Postby fSnt123 » Fri Aug 19, 2011 11:09 am

I have solved the previous problem by installing Gotoblas2. However, there is another one when I am trying to run some testing
unzi@linux-kn49:~/Downloads/CLAPAC/CLAPACK-3.2.1/TESTING> make
ZEC: Testing COMPLEX16 Eigen Condition Routines
./xeigtstz < zec.in > zec.out 2>&1
/bin/sh: line 1: 5658 Segmentation fault ./xeigtstz < zec.in > zec.out 2>&1
make: *** [zec.out] Error 139

Actually, the testing is error. Everytime I run "make" it show a test case and the result is error. All said "Segmentation faullt"
fSnt123
 
Posts: 3
Joined: Fri Aug 19, 2011 7:34 am

Re: Cannot find -lgoto when installing CLAPACK

Postby fSnt123 » Sat Aug 20, 2011 2:19 pm

Haven't solved the "Segmentation fault" problem yet. However, when I tried the code from CLAPACK FAQ Section 1.9. The program was working :)
Still have no idea about this problems. Any suggestion is very appreciated.
Thanks
fSnt123
 
Posts: 3
Joined: Fri Aug 19, 2011 7:34 am

Re: Cannot find -lgoto when installing CLAPACK

Postby error5772 » Sat Oct 22, 2011 4:22 am

Hi!

Did you copy the compiled lib to a directory the linker searches? In my
LINUX (64bit) it is:
/usr/local/lib64 filename: "libgoto.a"
and I link with:
-lgoto -lpthreads and maybe -lgfortran

I also had problems with Goto-BLAS and found the number of threads to
be the reason! If you compile your Goto-BLAS and edit "Makefile.rule" with
NUM_THREADS = #cpu-cores - 1
the Goto-BLAS should always work and not "jump out of the threads" with
"segmentation fault". If it works you can compile some other version of
libgoto2.a and name them "libgoto#threads.a" with different numbers of
threads, but at some point the probability for a seg.-faults is very high and
if you use:
NUM_THREADS = 2*#cpu-cores
it will always "jump out of the threads", because you have to leave at least
one thread for the system. You can also recompile with:
USE_SIMPLE_THREADED_LEVEL3 = 1
to use more threads, but it still gives sementation faults sometimes - try again.

Good luck!

Michael

P.S. Why CLAPACK? Just compile LAPACK-3.3.1 with "gfortran" and call
the Fortran-Routines directly as in the header "lapacke.h" of LAPACKE
done. This is a new possibility in the gcc/gfortran-compiler bundle. Just
look at "Algorithm/Data" and topic "How large matrix can LAPACK support"
If you do not use "INTERFACE64 = 1"(Goto-BLAS), -fdefault-integer-8 (LAPACK)
everything works fine (even "make blas_testing, make lapack_testing")!
error5772
 
Posts: 19
Joined: Thu Sep 01, 2011 5:02 am


Return to Linking Problem

Who is online

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