add more data types

This commit is contained in:
tqchen
2015-01-12 20:45:07 -08:00
parent 5a457d69fc
commit 61626aaf85
4 changed files with 33 additions and 6 deletions

View File

@@ -95,8 +95,12 @@ IEngine *GetEngine(void) {
inline MPI::Datatype GetType(mpi::DataType dtype) {
using namespace mpi;
switch (dtype) {
case kChar: return MPI::CHAR;
case kUChar: return MPI::BYTE;
case kInt: return MPI::INT;
case kUInt: return MPI::UNSIGNED;
case kLong: return MPI::LONG;
case kULong: return MPI::UNSIGNED_LONG;
case kFloat: return MPI::FLOAT;
case kDouble: return MPI::DOUBLE;
}