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] 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

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

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

2021-10-08 Thread Ivan Krylov
В 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 multithreading > support in future R vers

[R-pkg-devel] multithreading in packages

2021-10-08 Thread Vladimir Dergachev
I am considering adding multithreading support in my package, and would appreciate any suggestions/comments/opinions on what is the right way to do this. * My understanding from reading documentation and source code is that there is no dedicated support in R yet, but there are packages t