[Rd] confint Attempts to Use All Server CPUs by Default
Ivan Krylov
|kry|ov @end|ng |rom d|@root@org
Tue May 21 12:00:28 CEST 2024
В Tue, 21 May 2024 08:00:11 +0000
Dario Strbenac via R-devel <r-devel using r-project.org> пишет:
> Would a less resource-intensive value, such as 1, be a safer default
> CPU value for confint?
Which confint() method do you have in mind? There is at least four of
them by default in R, and many additional classes could make use of
stats:::confint.default by implementing vcov().
> Also, there is no mention of such parallel processing in ?confint, so
> it was not clear at first where to look for performance degradation.
> It could at least be described in the manual page so that users would
> know that export OPENBLAS_NUM_THREADS=1 is a solution.
There isn't much R can do about the behaviour of the BLAS, because
there is no standard interface to set the number of threads. Some BLASes
(like ATLAS) don't even offer it as a tunable number at all [*].
A system administrator could link the installation of R against
FlexiBLAS [**], provide safe defaults in the environment variables and
educate the users about its tunables [***], but that's a choice just
like it had been a choice to link R against a parallel variant of
OpenBLAS on a shared computer. This is described in R Installation and
Administration, section A.3.1 [****].
--
Best regards,
Ivan
[*]
https://math-atlas.sourceforge.net/faq.html#tnum
[**]
https://www.mpi-magdeburg.mpg.de/projects/flexiblas
[***]
https://search.r-project.org/CRAN/refmans/flexiblas/html/flexiblas-threads.html
[****]
https://cran.r-project.org/doc/manuals/R-admin.html#BLAS
More information about the R-devel
mailing list