add distributed checking
This commit is contained in:
parent
be50e7b632
commit
849b20b7c8
@ -46,6 +46,9 @@ RABIT_DLL int RabitGetRank();
|
|||||||
/*! \brief get total number of process */
|
/*! \brief get total number of process */
|
||||||
RABIT_DLL int RabitGetWorldSize();
|
RABIT_DLL int RabitGetWorldSize();
|
||||||
|
|
||||||
|
/*! \brief get rank of current process */
|
||||||
|
RABIT_DLL int RabitIsDistributed();
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief print the msg to the tracker,
|
* \brief print the msg to the tracker,
|
||||||
* this function can be used to communicate the information of the progress to
|
* this function can be used to communicate the information of the progress to
|
||||||
|
|||||||
@ -178,6 +178,10 @@ int RabitGetWorldSize() {
|
|||||||
return rabit::GetWorldSize();
|
return rabit::GetWorldSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int RabitIsDistributed() {
|
||||||
|
return rabit::IsDistributed();
|
||||||
|
}
|
||||||
|
|
||||||
void RabitTrackerPrint(const char *msg) {
|
void RabitTrackerPrint(const char *msg) {
|
||||||
std::string m(msg);
|
std::string m(msg);
|
||||||
rabit::TrackerPrint(m);
|
rabit::TrackerPrint(m);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user