allow duplicated bootstrap allreduce overwrite previous results (#128)
* allow timeout to 0 to eanble immediate exit * disable duplicated signature check, overwrite results with same key
This commit is contained in:
@@ -108,7 +108,9 @@ int AllreduceRobust::SetBootstrapCache(const std::string &key, const void *buf,
|
||||
break;
|
||||
}
|
||||
}
|
||||
_assert(index == -1, "immutable cache key already exists");
|
||||
// we should consider way to support duplicated signatures
|
||||
// https://github.com/dmlc/xgboost/issues/5012
|
||||
// _assert(index == -1, "immutable cache key already exists");
|
||||
_assert(type_nbytes*count > 0, "can't set empty cache");
|
||||
void* temp = cachebuf.AllocTemp(type_nbytes, count);
|
||||
cachebuf.PushTemp(cur_cache_seq, type_nbytes, count);
|
||||
|
||||
Reference in New Issue
Block a user