Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Erin Hodgess
Yes it does use MPI. You can get the pbd from GitHub, as a backup. Thanks On Sat, Oct 9, 2021 at 2:23 PM Vladimir Dergachev wrote: > > > On Sat, 9 Oct 2021, Erin Hodgess wrote: > > > Have you thought about using C or c++, please? > > Yes, indeed, the core of the package is written in C, with s

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Erin Hodgess wrote: Have you thought about using C or c++, please?  Yes, indeed, the core of the package is written in C, with some C++ for sorting (which turned out to be rather interesting). Beyound writing optimized C there are two ways to speed up execution on a

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Erin Hodgess
Have you thought about using C or c++, please? Also, there are packages called pbdDMAT from Drew Schmidt at U of Tenn which might help. On Sat, Oct 9, 2021 at 8:39 AM Vladimir Dergachev wrote: > > > On Sat, 9 Oct 2021, Ivan Krylov wrote: > > > В Thu, 7 Oct 2021 21:58:08 -0400 (EDT) > > Vladimir

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Viechtbauer, Wolfgang (SP) wrote: One thing I did not see mentioned in this thread (pun intended) so far: For what kind of computations is multithreading supposed to be used within the package being developed? If the computations involve a lot of linear/matrix algebra,

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Dirk Eddelbuettel wrote: On 9 October 2021 at 12:08, Ben Bolker wrote: |FWIW there is some machinery in the glmmTMB package for querying, | setting, etc. the number of OpenMP threads. | | https://github.com/glmmTMB/glmmTMB/search?q=omp https://cloud.r-project.org/pac

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Ben Bolker wrote: FWIW there is some machinery in the glmmTMB package for querying, setting, etc. the number of OpenMP threads. https://github.com/glmmTMB/glmmTMB/search?q=omp Great, thank you ! Vladimir Dergachev On 10/9/21 11:45 AM, Vladimir Dergachev wrote:

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Viechtbauer, Wolfgang (SP)
One thing I did not see mentioned in this thread (pun intended) so far: For what kind of computations is multithreading supposed to be used within the package being developed? If the computations involve a lot of linear/matrix algebra, then one could just use R with other linear algebra routines

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Dirk Eddelbuettel
On 9 October 2021 at 12:08, Ben Bolker wrote: |FWIW there is some machinery in the glmmTMB package for querying, | setting, etc. the number of OpenMP threads. | | https://github.com/glmmTMB/glmmTMB/search?q=omp https://cloud.r-project.org/package=RhpcBLASctl Dirk -- https://dirk.eddelbu

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Ben Bolker
FWIW there is some machinery in the glmmTMB package for querying, setting, etc. the number of OpenMP threads. https://github.com/glmmTMB/glmmTMB/search?q=omp On 10/9/21 11:45 AM, Vladimir Dergachev wrote: On Sat, 9 Oct 2021, Jeff Newmiller wrote: Keep in mind that by embedding this decisi

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Jeff Newmiller wrote: Keep in mind that by embedding this decision into your package you may be consuming a resource (cores) that may be more efficiently allocated by an application-level partitioning. of available resources. I for one am not a fan of this kind of thinki

Re: [R-pkg-devel] vignette on CRAN missing equations

2021-10-09 Thread Duncan Murdoch
Those display equations aren't in the vignette I see if I call browseVignettes("glmmTMB"). Looking in the tarball, I don't see them in inst/doc/covstruct.html Are you sure they were in the file that you submitted? I suspect this is a problem in the way you built the tarball, rather than a

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Jeff Newmiller
Keep in mind that by embedding this decision into your package you may be consuming a resource (cores) that may be more efficiently allocated by an application-level partitioning. of available resources. I for one am not a fan of this kind of thinking, and it makes system requirements for your p

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Gábor Csárdi wrote: On Sat, Oct 9, 2021 at 8:52 AM Ivan Krylov wrote: [...] * pthread or openmp ? I am particularly concerned about interaction with other packages. I have seen that using pthread and openmp libraries simultaneously can result in incorrectly pinned thr

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Ivan Krylov wrote: В Thu, 7 Oct 2021 21:58:08 -0400 (EDT) Vladimir Dergachev пишет: * My understanding from reading documentation and source code is that there is no dedicated support in R yet, but there are packages that use multithreading. Are there any plans for m

[R-pkg-devel] vignette on CRAN missing equations

2021-10-09 Thread Mollie Brooks
[CROSSPOST from glmmTMB issue #767 https://github.com/glmmTMB/glmmTMB/issues/767] Hi devel list, I recently noticed that a vignette is missing a couple of equations when installed from CRAN and when displayed by CRAN. The code renders as expected with the equations when I knit it on my own comput

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Gábor Csárdi
On Sat, Oct 9, 2021 at 8:52 AM Ivan Krylov wrote: [...] > >* pthread or openmp ? I am particularly concerned about > > interaction with other packages. I have seen that using pthread and > > openmp libraries simultaneously can result in incorrectly pinned > > threads. > > pthreads-based code c