Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ATLAS question

4 views
Skip to first unread message

Uwe.S...@num.uni-sb.de

unread,
Jun 28, 2000, 3:00:00 AM6/28/00
to
hi,

i try to use atlas for multipliying two matrices using the
dgemm()-function. when i call the compiler with

g77 dgt.f -o dtg -lf77blas

i get the following error-message:

libf77blas.a(ATL_F77wrap_dgemm.o): In function `atl_f77wrap_dgemm__':
ATL_F77wrap_dgemm.o(.text+0x54): undefined reference to `ATL_dgemm'

what have i done wrong ?

thanks for any help, yours, uwe.

--
Uwe Schmitt | Institut für Angewandte Mathematik
Uwe.S...@num.uni-sb.de | Universität des Saarlandes
phone: +49 (0)681/302-2468 | Geb. 36.1, Zi. 4.17
fax: +49 (0)681/302-4435 | PF 151150
private: +49 (0)681/397052 | D-66041 Saarbrücken

George Coulouris

unread,
Jun 28, 2000, 3:00:00 AM6/28/00
to
In article <8jcn3b$69ppn$1...@hades.rz.uni-sb.de>, Uwe.S...@num.uni-sb.de wrote:
[snip]

> libf77blas.a(ATL_F77wrap_dgemm.o): In function `atl_f77wrap_dgemm__':
> ATL_F77wrap_dgemm.o(.text+0x54): undefined reference to `ATL_dgemm'

I believe you need to link with -latlas as well as -lf77blas.

--
George Coulouris - http://www.tc.cornell.edu/~glc5/

Uwe.S...@num.uni-sb.de

unread,
Jun 28, 2000, 3:00:00 AM6/28/00
to
George Coulouris <geo...@snork.capybara.org> wrote:
| In article <8jcn3b$69ppn$1...@hades.rz.uni-sb.de>, Uwe.S...@num.uni-sb.de wrote:
| [snip]
|> libf77blas.a(ATL_F77wrap_dgemm.o): In function `atl_f77wrap_dgemm__':
|> ATL_F77wrap_dgemm.o(.text+0x54): undefined reference to `ATL_dgemm'

| I believe you need to link with -latlas as well as -lf77blas.

thanks, that was it.

it also works if i link libblasopt.a alone.

Uwe.S...@num.uni-sb.de

unread,
Jun 29, 2000, 3:00:00 AM6/29/00
to
Uwe.S...@num.uni-sb.de wrote:
| George Coulouris <geo...@snork.capybara.org> wrote:
| | In article <8jcn3b$69ppn$1...@hades.rz.uni-sb.de>, Uwe.S...@num.uni-sb.de wrote:
| | [snip]
| |> libf77blas.a(ATL_F77wrap_dgemm.o): In function `atl_f77wrap_dgemm__':
| |> ATL_F77wrap_dgemm.o(.text+0x54): undefined reference to `ATL_dgemm'

| | I believe you need to link with -latlas as well as -lf77blas.

| thanks, that was it.

my problem was the order of the invication of the librarys !

if i use

g77 dgt.f libf77blas.a libatlas.a

i get no errormessage. but if i use

g77 dgt.f libatlas.a libf77blas.a

i get some errormessages about unresolved symbols.

strange, isn't it ?

Raymond Toy

unread,
Jun 29, 2000, 3:00:00 AM6/29/00
to
>>>>> "Uwe" == Uwe Schmitt <Uwe.S...@num.uni-sb.de> writes:


Uwe> my problem was the order of the invication of the librarys !

Uwe> if i use

Uwe> g77 dgt.f libf77blas.a libatlas.a

Uwe> i get no errormessage. but if i use

Uwe> g77 dgt.f libatlas.a libf77blas.a

Uwe> i get some errormessages about unresolved symbols.

Uwe> strange, isn't it ?

If this is Unix, that's the way libraries are scanned. Libraries are
examined exactly once.

Ray

0 new messages