-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Refactor rabit tests #6096
Refactor rabit tests #6096
Conversation
Somehow there are duplicated tests defined in cc files and cpp files. |
52a9b5b
to
f54d79b
Compare
f54d79b
to
f28c6fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a first round of review.
You also need to change line 287 of the root CMakeLists.txt: We should install rabit
along with objxgboost
when BUILD_STATIC_LIB
is on. So add it to the variable INSTALL_TARGETS
. The reason is that Rabit is a dependency of xgboost
, and when you install a static lib, you need to install all of its dependencies.
I'll do another round of review tomorrow, as I am about to go to bed now. |
@hcho3 Thanks for the explanation. Let me do some tests, I think it's possible to link multiple static libraries into one. |
You can turn rabit into an object library, so that librabit.a won't need to be installed. Even then, we'd still need to declare rabit in the export set of INSTALL(TARGETS) command, so my previous recommendation still applies. |
Got it, so I need to restore the installation logic. |
No, you can reuse the installation logic in the root CMakeLists.txt. Just modify INSTALL_TARGETS variable in line 287. No need to maintain installation logic in two places. |
8f3b168
to
39eb4bb
Compare
@hcho3 Thanks again. Modified the script to install it along with objxgboost when building static library. |
Codecov Report
@@ Coverage Diff @@
## master #6096 +/- ##
=======================================
Coverage 78.52% 78.52%
=======================================
Files 12 12
Lines 3069 3069
=======================================
Hits 2410 2410
Misses 659 659 Continue to review full report at Codecov.
|
make install
#6092 .