-
Notifications
You must be signed in to change notification settings - Fork 31
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
OOM compiling devSVG.cpp in C++17 #137
Comments
I must admit this is above my head but the easy fix seems to turn C++11 back on and inform CRAN of the reasons? |
CRAN does not want this, and removing this is exactly what caused the problem |
* Use base R `deparse()` * Update NEWS * Pin vdiffr due to r-lib/vdiffr#137
What's the gcc version there? I tested this on Fedora with gcc 13.2.1 and, while the compilation takes a lot more time with C++17 compared to e.g. C++14, it takes only a minimal amount of memory. |
Just checked on a |
I think the most reasonable fix is to add |
@Enchufa2 Good idea but on old R versions on Windows I'm getting:
I'll probably go back to C++11. |
Thank you for helping pinpoint the problematic GCC versions by the way. Good to know it seems fixed with more recent GCCs. |
* This commit aims to solve issue 41. Now the default value for `q_taylor_vector` is 8 for non linear layers and 1 for the linear ones. Also, check weight constraints has been removed from exports and a new internal function called `check_weight_dimensions` has been created. Additional tests have also been added. * pin to vdiffr@1.0.5 (see r-lib/vdiffr/issues/137) --------- Co-authored-by: Iñaki Úcar <iucar@fedoraproject.org>
FYI: "switching" the
|
I'm trying to get a vdiffr update on CRAN, and this time it looks like it will go through :-) |
On CRAN! |
vdiffr 1.0.7 is out and r-lib/vdiffr#137 is closed so we no longer need this.
Since the switch to c++17 your CI hangs trying to compile
devSVG.cpp
for r-release and r-devel and also pkgdown. The latest versions of R now default to C++17, which causes a massive memory usage, at least on Ubuntu 22.04.Tested locally that the compilation of
devSVG.cpp
requires about 12GB mem and 10 minutes on ubuntu-22.04 in x64. I am not sure if this is a bug in GCC or expected. I am seeing the same problem on r-universe:The text was updated successfully, but these errors were encountered: