[R-pkg-devel] Using FORTRAN libraries and compiler options

Rampal S. Etienne r@mp@|et|enne @end|ng |rom gm@||@com
Thu Nov 14 16:42:56 CET 2019


I couldn't find a call to dgemm in the mvtnorm package. Do you have
other suggestions for packages that may be calling this?

Rampal


On 11-11-2019 17:44, Avraham Adler wrote:
> If I’m not mistaken, dgemm is a BLAS call. That should be accessible
> from Fortran via an external call. I think the mvtnorm package calls
> BLAS/LAPACK from Fortran if that helps. 
>
> Avi
>
> On Mon, Nov 11, 2019 at 6:40 AM Rampal S. Etienne
> <rampaletienne using gmail.com <mailto:rampaletienne using gmail.com>> wrote:
>
>     Hello,
>
>     I am using FORTRAN code with the deSolve package. However, the code
>     still runs slowly. Googling tells me that there are two options to
>     speed
>     up my code:
>
>     1. Compile with option -O3
>
>     2. Use the library dgemm.
>
>     I understand that this can be set in makevars. However, as I have
>     limited experience with FORTRAN (never loaded libraries or set
>     compiling
>     options), I was wondering whether anyone can give me a hint on how to
>     set this. I have just a single FORTRAN file (with multiple
>     subroutines).
>
>     Cheers, Rampal
>
>     ______________________________________________
>     R-package-devel using r-project.org
>     <mailto:R-package-devel using r-project.org> mailing list
>     https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
> -- 
> Sent from Gmail Mobile


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list