This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
-fexternal-blas together with -fdefault-real-8
- From: Simon Reinhardt <simon dot reinhardt at stud dot uni-regensburg dot de>
- To: fortran at gcc dot gnu dot org
- Date: Sun, 02 Sep 2012 12:11:23 +0200
- Subject: -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.