allow timeout to 0 to eanble immediate exit (#125)
This commit is contained in:
parent
d22e0809a8
commit
2f25347168
@ -219,7 +219,7 @@ void AllreduceBase::SetParam(const char *name, const char *val) {
|
|||||||
}
|
}
|
||||||
if (!strcmp(name, "rabit_timeout_sec")) {
|
if (!strcmp(name, "rabit_timeout_sec")) {
|
||||||
timeout_sec = atoi(val);
|
timeout_sec = atoi(val);
|
||||||
utils::Assert(timeout_sec > 0, "rabit_timeout_sec should be greater than 0 second");
|
utils::Assert(timeout_sec >= 0, "rabit_timeout_sec should be non negative second");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user