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