fix windows run

This commit is contained in:
Tianqi Chen
2014-11-23 22:12:55 -08:00
parent 77ffd0465b
commit fde580b08e
5 changed files with 43 additions and 18 deletions

View File

@@ -235,7 +235,7 @@ class SyncManager {
if (i != parent_index) {
reducer(links[i].buffer_head + start,
sendrecvbuf + size_up_reduce,
nread / type_nbytes,
static_cast<int>(nread / type_nbytes),
MPI::Datatype(type_nbytes));
}
}
@@ -522,7 +522,7 @@ ReduceHandle::ReduceHandle(void) : handle(NULL), htype(NULL) {
ReduceHandle::~ReduceHandle(void) {}
int ReduceHandle::TypeSize(const MPI::Datatype &dtype) {
return dtype.type_size;
return static_cast<int>(dtype.type_size);
}
void ReduceHandle::Init(ReduceFunction redfunc, size_t type_n4bytes, bool commute) {
utils::Assert(handle == NULL, "cannot initialize reduce handle twice");