Re: [R-pkg-devel] Using FORTRAN libraries and compiler options
On 14 November 2019 at 16:42, Rampal S. Etienne wrote: | I couldn't find a call to dgemm in the mvtnorm package. Do you have | other suggestions for packages that may be calling this? The mirror of CRAN at GitHub allows convenient search. Looking for 'user:cran dgemm' give 620+ code hits; the page allows you to click on Fortran to further strict leading to this URL for i) user:cran ii) dgemm iii) type=code and iv) l=Fortran: https://github.com/search?l=Fortran=user%3Acran+dgemm=Code Hth, Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Using FORTRAN libraries and compiler options
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 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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > -- Sent from Gmail Mobile [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Re: [R-pkg-devel] Using FORTRAN libraries and compiler options
Hello! Have you tried compiling with the -lblas -llapack options, please? Then you can use the appropriate subroutine. Thanks, Erin On Mon, Nov 11, 2019 at 9:40 AM Rampal S. Etienne 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@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > -- Erin Hodgess, PhD mailto: erinm.hodg...@gmail.com [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel