add link tag
This commit is contained in:
parent
26c87ec6e7
commit
c7d53aecc3
@ -132,4 +132,15 @@ RABIT_DLL void RabitCheckPoint(const char *global_model,
|
|||||||
*/
|
*/
|
||||||
RABIT_DLL int RabitVersionNumber();
|
RABIT_DLL int RabitVersionNumber();
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief a Dummy function,
|
||||||
|
* used to cause force link of C API into the DLL.
|
||||||
|
* \code
|
||||||
|
* // force link rabit C API library.
|
||||||
|
* static int must_link_rabit_ = RabitLinkTag();
|
||||||
|
* \endcode
|
||||||
|
*/
|
||||||
|
RABIT_DLL int RabitLinkTag();
|
||||||
|
|
||||||
#endif // RABIT_C_API_H_
|
#endif // RABIT_C_API_H_
|
||||||
|
|||||||
@ -257,3 +257,7 @@ void RabitCheckPoint(const char *global_model,
|
|||||||
int RabitVersionNumber() {
|
int RabitVersionNumber() {
|
||||||
return rabit::VersionNumber();
|
return rabit::VersionNumber();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int RabitLinkTag() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user