If I configure in R-patched and R-devel, with the same options to configure, then R-patched says checking for ATL_xerbla in -latlas... yes checking for cblas_dgemm in -lcblas... yes checking for dgemm_ in -lf77blas... yes which R-devel says checking for ATL_xerbla in -latlas... yes checking for cblas_dgemm in -lcblas... yes checking for dgemm in -lf77blas... no This is on the same computer and using the same libraries. Observe in R-patched we check for dgemm_ and in R-devel for dgemm. Is that what is intended ? ==Jan de Leeuw; Professor and Chair, UCLA Department of Statistics; US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554 phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu homepage: http://www.stat.ucla.edu/~deleeuw ======================================================= No matter where you go, there you are. --- Buckaroo Banzai http://www.stat.ucla.edu/~deleeuw/sounds/nomatter.au ======================================================= -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Jan de Leeuw writes:> If I configure in R-patched and R-devel, with the same options to > configure, then R-patched says> checking for ATL_xerbla in -latlas... yes > checking for cblas_dgemm in -lcblas... yes > checking for dgemm_ in -lf77blas... yes> which R-devel says> checking for ATL_xerbla in -latlas... yes > checking for cblas_dgemm in -lcblas... yes > checking for dgemm in -lf77blas... no> This is on the same computer and using the same libraries. Observe > in R-patched we check for dgemm_ and in R-devel for dgemm. Is that > what is intended ?Don't think so :-) The code in r-devel runs the BLAS tests before it has figure out the characteristics of the Fortran compiler. Argh. Will fix. -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 13 Feb 2002, Jan de Leeuw wrote:> If I configure in R-patched and R-devel, with the same options to > configure, then R-patched says > > checking for ATL_xerbla in -latlas... yes > checking for cblas_dgemm in -lcblas... yes > checking for dgemm_ in -lf77blas... yes > > which R-devel says > > checking for ATL_xerbla in -latlas... yes > checking for cblas_dgemm in -lcblas... yes > checking for dgemm in -lf77blas... no > > This is on the same computer and using the same libraries. Observe > in R-patched we check for dgemm_ and in R-devel for dgemm. Is that > what is intended ?Confirmed here. It seems related to the change to autoconf 2.5x, but it is not working as intended. The configure code has if test "${r_cv_prog_f77_append_underscore}" = yes \ || test -n "${F2C}"; then dgemm_func=dgemm_ else dgemm_func=dgemm fi ... AC_CHECK_LIB(f77blas, $dgemm_func, BLAS_LIBS="-lf77blas $BLAS_LIBS", , $BLAS_LIBS $FLIBS) and r_cv_prog_f77_append_underscore is being set correctly, but only later in the configure. I think that comes from following the autoconf recommended order of tests (libraries, headers, ...), but we need an exception here. -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> Prof Brian D Ripley writes:> On Wed, 13 Feb 2002, Jan de Leeuw wrote: >> If I configure in R-patched and R-devel, with the same options to >> configure, then R-patched says >> >> checking for ATL_xerbla in -latlas... yes >> checking for cblas_dgemm in -lcblas... yes >> checking for dgemm_ in -lf77blas... yes >> >> which R-devel says >> >> checking for ATL_xerbla in -latlas... yes >> checking for cblas_dgemm in -lcblas... yes >> checking for dgemm in -lf77blas... no >> >> This is on the same computer and using the same libraries. Observe >> in R-patched we check for dgemm_ and in R-devel for dgemm. Is that >> what is intended ?> Confirmed here. It seems related to the change to autoconf 2.5x, > but it is not working as intended. The configure code has> if test "${r_cv_prog_f77_append_underscore}" = yes \ > || test -n "${F2C}"; then > dgemm_func=dgemm_ > else > dgemm_func=dgemm > fi > ... > AC_CHECK_LIB(f77blas, $dgemm_func, > BLAS_LIBS="-lf77blas $BLAS_LIBS", , $BLAS_LIBS $FLIBS)> and r_cv_prog_f77_append_underscore is being set correctly, but only > later in the configure. I think that comes from following the > autoconf recommended order of tests (libraries, headers, ...), but we > need an exception here.Right. The recipe has checks for programs checks for libraries checks for header files checks for types checks for structures checks for compiler characteristics checks for library functions and this is mostly based on the idea that everything happens in C. Will move the BLAS tests to section library functions. -k -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._