Building ATLAS for various FORTRAN compiler

View: New views
4 Messages — Rating Filter:   Alert me  

Building ATLAS for various FORTRAN compiler

by Berthold "Höllmann" :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I'm trying to build ATLAS for various FORTRAN compiler on one
platform. My ideas was to reuse "libatlas.a", "libcblas.a", and
"libtstatlas.a", and to rename "liblapack.a", and "libf77blas.a" to
"liblapack_g77.a", "liblapack_ifc100.a", "liblapack_ifc101.a", etc.,
and "libf77blas_g77.a", "libf77blas_ifc100.a", "libf77blas_ifc101.a",
etc.

I first call

>  ../configure --prefix=$INSTALL_PREFIX \
        --with-netlib-lapack=/data/tmp/hoel/lapack-$LAPACK_VER/lapack_${OSVER}_g77.a \
        -C if g77
> make build

Then I reconfigure with a compiler specific lapack library and give
the compiler for this Lapack compilation. I do

> ( cd interfaces/blas/C/src/ ; rm -f *.o *.grd )
> ( cd interfaces/blas/F77/src/ ; rm -f *.o *.grd ; make lib )
> ( cd interfaces/lapack/C/src/ ; rm -f *.o *.grd )
> ( cd interfaces/lapack/F77/src/ ; rm -f *.o *.grd ; make lib )
> make build
> make check

...

/usr/local/fitools/bin/ifc71 -O3 -align -mp1 -IPF-fma -openmp -fPIC  -o xsinvtst sinvtst.o \
                   /data/tmp/hoel/atlas3.8.0/build/lib/libtstatlas.a /data/tmp/hoel/atlas3.8.0/build/lib/liblapack.a /data/tmp/hoel/atlas3.8.0/build/lib/libcblas.a /data/tmp/hoel/atlas3.8.0/build/lib/libatlas.a -lm
sinvtst.o(.text+0x913): In function `test_inv':
invtst.c: undefined reference to `ATL_sgetrf'
sinvtst.o(.text+0x93b):invtst.c: undefined reference to `ATL_sgetri'
sinvtst.o(.text+0x981):invtst.c: undefined reference to `ATL_spotrf'
sinvtst.o(.text+0x9a5):invtst.c: undefined reference to `ATL_strtri'
sinvtst.o(.text+0x9c5):invtst.c: undefined reference to `ATL_slauum'
make[3]: *** [xsinvtst] Fehler 1

What is the trick to make this work?

Kind regards

Berthold Höllmann
--
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: berthold.hoellmann@...
Internet: http://www.gl-group.com



This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail.


If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.

Germanischer Lloyd AG, 31393 AG HH, Hamburg, Vorstand: Dr. Hermann J. Klein, Dr. Joachim Segatz, Vorsitzender des Aufsichtsrats: Dr. Wolfgang Peiner

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

Re: Building ATLAS for various FORTRAN compiler

by Clint Whaley :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Did you try the directions:
   http://math-atlas.sourceforge.net/errata.html#MultF77

If you have further difficulties, maybe you want to open up a support request,
as described:
   http://math-atlas.sourceforge.net/faq.html#help

Cheers,
Clint

**************************************************************************
** R. Clint Whaley, PhD ** Assist Prof, UTSA ** www.cs.utsa.edu/~whaley **
**************************************************************************

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

Re: Building ATLAS for various FORTRAN compiler

by Berthold "Höllmann" :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Clint Whaley <whaley@...> writes:

> Did you try the directions:
>    http://math-atlas.sourceforge.net/errata.html#MultF77

I followed these directions, but it does not cope with the building of
the lapack library.


   make clean
   make lib

in BLDdir/interfaces/lapack/F77/src/ is not sufficient, the routines
from BLDdir/src/lapack and BLDdir/src/blas/*/* are missing in the
generated libraries. I found out, the *.grd files in the
aforementioned have to be deleted to make the generated FORTRAN
work.

I am working on a script that builds tests and renames
libf77blas.[a,so] and liblapack.[a,so] for various versions of the
INTEL FORTRAN -, the PGI FORTRAN -, and the GNU FORTRAN compiler. The
script is not wholly working yet, but I'm making progress.

Kind regards

Berthold Höllmann
--
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: berthold.hoellmann@...
Internet: http://www.gl-group.com



This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail.


If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.

Germanischer Lloyd AG, 31393 AG HH, Hamburg, Vorstand: Dr. Hermann J. Klein, Dr. Joachim Segatz, Vorsitzender des Aufsichtsrats: Dr. Wolfgang Peiner

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel

Re: Building ATLAS for various FORTRAN compiler

by Berthold "Höllmann" :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Berthold \"Höllmann\"" <berthold.hoellmann@...> writes:

> Clint Whaley <whaley@...> writes:
>
>> Did you try the directions:
>>    http://math-atlas.sourceforge.net/errata.html#MultF77
>
> I followed these directions, but it does not cope with the building of
> the lapack library.
>
>
>    make clean
>    make lib
>
> in BLDdir/interfaces/lapack/F77/src/ is not sufficient, the routines
>>From BLDdir/src/lapack and BLDdir/src/blas/*/* are missing in the
> generated libraries. I found out, the *.grd files in the
> aforementioned have to be deleted to make the generated FORTRAN
> work.
>
> I am working on a script that builds tests and renames
> libf77blas.[a,so] and liblapack.[a,so] for various versions of the
> INTEL FORTRAN -, the PGI FORTRAN -, and the GNU FORTRAN compiler. The
> script is not wholly working yet, but I'm making progress.

In order to support the PGI FORTRAN compiler I had to extend the
configuration program to enable linking of C main programs using the
FORTRAN compiler:

>diff -c CONFIG/src/SpewMakeInc.c~ CONFIG/src/SpewMakeInc.c
*** CONFIG/src/SpewMakeInc.c~   2007-10-10 22:40:21.000000000 +0200
--- CONFIG/src/SpewMakeInc.c    2008-02-06 14:36:31.714723356 +0100
***************
*** 673,678 ****
--- 673,680 ----
     fprintf(fpout, "   FCLINKFLAGS = $(FLINKFLAGS)");
     if (strstr(comps[F77_], "ifort") && !OSIsWin(OS))
        fprintf(fpout, " -nofor_main");
+    if (strstr(comps[F77_], "pgf90") && !OSIsWin(OS))
+       fprintf(fpout, " -Mnomain");
     fprintf(fpout, "\n   ARCHIVER = ar\n");
     fprintf(fpout, "   ARFLAGS  = r\n");
     if (OS == OSOSX && MachIsPPC(mach))


Kind regards

Berthold Höllmann
--
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: berthold.hoellmann@...
Internet: http://www.gl-group.com



This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail.


If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.

Germanischer Lloyd AG, 31393 AG HH, Hamburg, Vorstand: Dr. Hermann J. Klein, Dr. Joachim Segatz, Vorsitzender des Aufsichtsrats: Dr. Wolfgang Peiner

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Math-atlas-devel mailing list
Math-atlas-devel@...
https://lists.sourceforge.net/lists/listinfo/math-atlas-devel