fix assert timeout_sec (#117)
This commit is contained in:
parent
ed9328ceae
commit
8e2c201d23
@ -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(rabit_timeout > 0, "rabit_timeout_sec should be greater than 0 second");
|
utils::Assert(timeout_sec > 0, "rabit_timeout_sec should be greater than 0 second");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*!
|
/*!
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user