Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getDTthreads not limiting threads on CRAN debian server #5677

Closed
sritchie73 opened this issue Aug 23, 2023 · 1 comment
Closed

getDTthreads not limiting threads on CRAN debian server #5677

sritchie73 opened this issue Aug 23, 2023 · 1 comment

Comments

@sritchie73
Copy link
Contributor

One of the packages I have developed (ukbnmr) uses data.table and has recently run afoul of CRAN's new checks on CPU usage, which appears to have been caused in part by data.table spawning >2 threads in some of the example code.

After some discussion on the R-package-devel mailing list, I managed to address the CRAN NOTE by explicitly running setDTthreads(1) when running the examples.

The root cause of the problem seems to be a misconfiguration of the CRAN debian server, which may be missing the relevant environment variable that tells getDTthreads() to not use all available CPUs.

I wanted to draw your attention to this, as this is may potentially cause problems for other packages using data.table as a dependency.

The relevant R-package-devel thread is here: https://stat.ethz.ch/pipermail/r-package-devel/2023q3/009454.html

@sritchie73
Copy link
Contributor Author

Duplicate of #5658

@sritchie73 sritchie73 marked this as a duplicate of #5658 Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant