I have some better news. While we established that 'in theory' setting the
environment variable OMP_NUM_THREADS would help (and I maintain that it is a
great PITA that CRAN does not do so as a general fix for this issue) it does
*not help* once R is started. OpenMP only considers the variable o
From: Dirk Eddelbuettel
Sent: Friday, October 27, 2023 16:28
To: Helske, Jouni
Cc: Dirk Eddelbuettel ; Ivan Krylov ;
r-package-devel@r-project.org ; Conrad Sanderson
Subject: Re: [R-pkg-devel] Too many cores used in examples (not caused by
data.table)
Hi Jouni,
On 27 October 2023 at
Hi Jouni,
On 27 October 2023 at 13:02, Helske, Jouni wrote:
| Actually, the OMP_NUM_THREADS worked for vignettes and testthat tests, but
| didn't help with the examples. However, I just wrapped the problematic example
Now I am confused.
What is your understanding of why it helps in one place a
lske, Jouni
Cc: Dirk Eddelbuettel ; Ivan Krylov ;
r-package-devel@r-project.org ; Conrad Sanderson
Subject: Re: [R-pkg-devel] Too many cores used in examples (not caused by
data.table)
Jouni,
My CRANberriesFeed reports a new bssm package at CRAN, congratulations for
sorting this out. [1,2] The
Jouni,
My CRANberriesFeed reports a new bssm package at CRAN, congratulations for
sorting this out. [1,2] The OMP_NUM_THREADS setting is indeed all it takes,
and it _does_ seem to be read even from a running session: i.e. you can set
this inside an R session and the OpenMP code considers it in t
: Re: [R-pkg-devel] Too many cores used in examples (not caused by
data.table)
On 24 October 2023 at 08:15, Dirk Eddelbuettel wrote:
|
| On 24 October 2023 at 15:55, Ivan Krylov wrote:
| | � Tue, 24 Oct 2023 10:37:48 +
| | "Helske, Jouni" �:
| |
| | > Examples with CPU tim
On 24 October 2023 at 08:15, Dirk Eddelbuettel wrote:
|
| On 24 October 2023 at 15:55, Ivan Krylov wrote:
| | В Tue, 24 Oct 2023 10:37:48 +
| | "Helske, Jouni" пишет:
| |
| | > Examples with CPU time > 2.5 times elapsed time
| | > user system elapsed ratio
| | > exchange 1.196
o: Helske, Jouni
Cc: r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] Too many cores used in examples (not caused by
data.table)
В Thu, 19 Oct 2023 05:57:54 +
"Helske, Jouni" пишет:
But I just realised that bssm uses Armadillo via RcppArmadillo, which
uses OpenMP by defaul
On 24 October 2023 at 15:55, Ivan Krylov wrote:
| В Tue, 24 Oct 2023 10:37:48 +
| "Helske, Jouni" пишет:
|
| > Examples with CPU time > 2.5 times elapsed time
| > user system elapsed ratio
| > exchange 1.196 0.04 0.159 7.774
|
| I've downloaded the archived copy of the packag
0.159 7.774
Not sure what to try next.
Best,
Jouni
From: Ivan Krylov
Sent: Friday, October 20, 2023 16:54
To: Helske, Jouni
Cc: r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] Too many cores used in examples (not caused by
data.table)
В Thu, 19 Oct 2023 05:57:54 +
"H
В Tue, 24 Oct 2023 10:37:48 +
"Helske, Jouni" пишет:
> Examples with CPU time > 2.5 times elapsed time
> user system elapsed ratio
> exchange 1.196 0.04 0.159 7.774
I've downloaded the archived copy of the package from the CRAN FTP
server, installed it and tried:
library(bssm)
sure what to try next.
>
> Best,
> Jouni
>
> From: Ivan Krylov
> Sent: Friday, October 20, 2023 16:54
> To: Helske, Jouni
> Cc: r-package-devel@r-project.org
> Subject: Re: [R-pkg-devel] Too many cores used in examples (not caused by
> data.table)
>
>
e what to try next.
Best,
Jouni
From: Ivan Krylov
Sent: Friday, October 20, 2023 16:54
To: Helske, Jouni
Cc: r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] Too many cores used in examples (not caused by
data.table)
� Thu, 19 Oct 2023 05:57:54 +
&
В Thu, 19 Oct 2023 05:57:54 +
"Helske, Jouni" пишет:
> But I just realised that bssm uses Armadillo via RcppArmadillo, which
> uses OpenMP by default for some elementwise operations. So, I wonder
> if that could be the culprit?
I wasn't able to reproduce the NOTE either, despite manually set
On 19 October 2023 at 05:57, Helske, Jouni wrote:
| I am having difficulties in getting the latest version of the bssm
(https://github.com/helske/bssm) package to CRAN, as the pretest issues a NOTE
that the package uses too many cores in some of the examples ("Examples with
CPU time > 2.5 time
Hi,
I am having difficulties in getting the latest version of the bssm
(https://github.com/helske/bssm) package to CRAN, as the pretest issues a NOTE
that the package uses too many cores in some of the examples ("Examples with
CPU time > 2.5 times elapsed time"). I've seen plenty of discussion
16 matches
Mail list logo