This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

-fexternal-blas together with -fdefault-real-8


Hi,
I just tried to compile the simple program

program test
implicit none
real, dimension(3,3) :: A
A = matmul(A,A)
end program test

with
$ gfortran-4.7 -fexternal-blas -fdefault-real-8 test.f95
/tmp/cc3ij1CL.o: In function `MAIN__':
test.f95:(.text+0x14e): undefined reference to `sgemm_'
collect2: Fehler: ld gab 1 als Ende-Status zurück

looks like matmul is replaced with sgemm and not with dgemm

of course, if I use real(8) instead of real, matmul is replaced with
dgemm and everything works great

$gfortran-4.7 --version
GNU Fortran (GCC) 4.7.1
Copyright (C) 2012 Free Software Foundation, Inc.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]