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
Fix R CRAN failures. #7404
Fix R CRAN failures. #7404
Conversation
Thanks. May I suggest to hold this PR until we see all the checks for 1.5.0.1 on this page: https://cran.r-project.org/web/checks/check_results_xgboost.html. It might take a few days, and we have until Nov 22nd to patch. |
There are additional issues with valgrind: https://www.stats.ox.ac.uk/pub/bdr/memtests/valgrind/xgboost/00check.log:
I didn't remember CRAN has complained about valgrind issues (let's see if they do this time), but if it is fixable on our side maybe we can also try? |
I did not reproduce the error using valgrind. The patch simply adds tolerance.
Need to find out what's not initialized.
Leak in libgomp? Not sure if there's anything we can do.
std::vector should manage the memory as RAII. Not sure if there's anything we can do. |
Ran valgrind with valgrind: 3.15.0 |
@hcho3 Do you think we can free some budget for running valgrind with gtest on CI once we remove CUDA10? |
@trivialfis We can just use GitHub Actions for this? |
But then we will skip all GPU code path. |
@trivialfis I don't think CRAN tests are run for any GPU code path |
I want to run valgrind with c++ tests. But there are some warnings whenever GPU code is executed, so we might just limit it to CPU only for now:
|
I think this PR should contain all the fixes in XGBoost. |
@hetong007 I looked into the 2 memory leak reports, first one is from libgomp, the second one is from the |
How about this: let's wait for all results from different platforms in the check page, and fix whatever we can, then submit a patch (1.5.0.2). After this patch, let's see how CRAN may complaint further. |
Got it. Thanks for guiding the release. |
I see most CRAN results are available with no new issue. I'm merging this PR. |
Thanks, I will backport it and bump the version |
* Remove hist builder dtor. * Initialize values. * Tolerance. * Remove the use of nthread in col maker.
Seems CRAN checks are all finished. Please instruct when to submit (before 22nd). |
I will run through all the tests again today |
* Remove hist builder dtor. * Initialize values. * Tolerance. * Remove the use of nthread in col maker.
@hetong007 Let me know if there's anything else I can do to help. |
It is undergoing checks by the CRAN team. Will update here. |
On CRAN now. From the status page I see the row with |
Excellent! |
Related: #7260 (comment)
I did not reproduce the warning using clang-14, might be missing some flags in my config or it's just a bug in clang-12 used by CRAN test. Anyway, this is a cleanup that removes unnecessary code.