[Rd] gfortran and BLAS on AMD64 Linux

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue 09 Aug 2005 - 09:25:58 GMT


Linux users are used to all compilers using the same linkage conventions (those of pcc) whereas users of other platforms are used to the idea that code from different compilers cannot in general be mixed.

This is no longer true for gfortran on AMD64. Given a double complex function like

       double complex function zdotc(n,zx,incx,zy,incy)

gfortran returns the result in a 128-bit XMM SSE register, whereas g77 (and gcc using Rcomplex) would return the result in memory.

The result is that a BLAS compiled with g77 or gcc is not compatible with R compiled with gfortran and attempts to use the combination results in memory corruption.

We have already seen 3 instances of this

It may be possible to devise a configure test for 2.2.0, but meanwhile be aware of the problem.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Tue Aug 09 19:29:45 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:37 GMT