public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/41977]  New: gfortran -fopenp and ACML_MP seem incompatible
@ 2009-11-07 17:36 nmm1 at cam dot ac dot uk
  2010-05-07 16:41 ` [Bug fortran/41977] gfortran -fopenmp " dfranke at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: nmm1 at cam dot ac dot uk @ 2009-11-07 17:36 UTC (permalink / raw)
  To: gcc-bugs

gfortran -fopenmp is incompatible with -lacml_mp under at least some
circumstances.  The program is LAPACK Cholesky and its solver, converted
to Fortran 90 and instrumented for a course.  It fails with 4.4.1 in ACML
(i.e. the LAPACK call returns an erroneous error value), and in 4.3.2
the solver (which does NOT call ACML) takes 10 times as long as it should
do.  Omitting the -fopenmp and using -lacml instead both work perfectly;
i.e. it fails ONLY if both -fopenmp and -lacml_mp are used.  Oh, and it
works with -llapack, too.  Oh, joy.

Here is some grobble:

gosset$gfortran -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/home/nmm/gfortran --disable-shared
--disable-threads --disable-bootstrap -enable-languages=fortran
--enable-werror=yes --enable-checking=all --disable-decimal-float
Thread model: single
gcc version 4.4.1 (GCC)
gosset$/usr/bin/gfortran -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.3
--enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
--with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap
--with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.3
--enable-linux-futex --without-system-libunwind --with-cpu=generic
--build=x86_64-suse-linux
Thread model: posix
gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux)

gfortran -Wall -std=f2003 -pedantic -O3 -fopenmp -o Cholesky_f \
    Answers/Cholesky/one.f90 -lacml_mp
./Cholesky_one_f fred_f_1000

The source is fairly short and clean, but fred_f_1000 is 16 MB.
The 4.4.1 failure shows with a 160 MB test file, but not the 4.3.2
one.


Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email:  nmm1@cam.ac.uk
Tel.:  +44 1223 334761    Fax:  +44 1223 334679


-- 
           Summary: gfortran -fopenp and ACML_MP seem incompatible
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nmm1 at cam dot ac dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41977


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-10  9:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-41977-4@http.gcc.gnu.org/bugzilla/>
2010-10-10  9:56 ` [Bug fortran/41977] gfortran -fopenmp and ACML_MP seem incompatible fxcoudert at gcc dot gnu.org
2009-11-07 17:36 [Bug fortran/41977] New: gfortran -fopenp " nmm1 at cam dot ac dot uk
2010-05-07 16:41 ` [Bug fortran/41977] gfortran -fopenmp " dfranke at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).