Re: [R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-11-21 Thread Ivan Krylov
В Mon, 20 Nov 2023 21:34:55 -0500 Andrew Robbins via R-package-devel пишет: > In my (pending) package, I currently have a compile-time check for > POSIX-threaded OpenBLAS which calls openblas_set_num_threads before > and after OpenMP blocks to stop this behavior from occurring. This may be not e

Re: [R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-11-21 Thread Andrew Robbins via R-package-devel
Hi all, While we're on the topic of BLAS thread handling, there's also the matter of OpenBLAS's two threading implementations. Depending on how the library is built, it can either use OpenMP or it can use POSIX threading. This can cause issues in packages that call into BLAS functions in an

Re: [R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-11-03 Thread Vladimir Dergachev
On Wed, 25 Oct 2023, Ivan Krylov wrote: Summary: at the end of this message is a link to an R package implementing an interface for managing the use of execution units in R packages. As a package maintainer, would you agree to use something like this? Does it look sufficiently reasonable to b

Re: [R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-11-02 Thread Ivan Krylov
В Wed, 25 Oct 2023 13:54:53 -0700 "Reed A. Cartwright" пишет: > For a comparison, I'd recommend looking at how GNU make does parallel > processing. It uses the concept of job server and job slots. What I > like about it is that it is implemented at the OS level because make > needs to support int

Re: [R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-10-25 Thread Reed A. Cartwright
Hi Ivan, Interesting package, and I'll provide more feedback later. For a comparison, I'd recommend looking at how GNU make does parallel processing. It uses the concept of job server and job slots. What I like about it is that it is implemented at the OS level because make needs to support intera

[R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-10-25 Thread Ivan Krylov
Summary: at the end of this message is a link to an R package implementing an interface for managing the use of execution units in R packages. As a package maintainer, would you agree to use something like this? Does it look sufficiently reasonable to become a part of R? Read on for why I made thes