add sync module

This commit is contained in:
tqchen
2015-01-18 21:31:09 -08:00
parent 152e08974d
commit ba0b950a84
10 changed files with 42 additions and 29 deletions

View File

@@ -11,8 +11,7 @@
#include <cmath>
#include <climits>
#include <algorithm>
// rabit library for synchronization
#include <rabit.h>
#include "../sync/sync.h"
#include "./evaluation.h"
#include "./helper_utils.h"

View File

@@ -10,8 +10,7 @@
#include <utility>
#include <string>
#include <limits>
// rabit library for synchronization
#include <rabit.h>
#include "../sync/sync.h"
#include "../utils/io.h"
#include "../utils/base64.h"
#include "./objective.h"

12
src/sync/sync.h Normal file
View File

@@ -0,0 +1,12 @@
#ifndef XGBOOST_SYNC_H_
#define XGBOOST_SYNC_H_
/*!
* \file sync.h
* \brief the synchronization module of rabit
* redirects to subtree rabit header
* \author Tianqi Chen
*/
#include "../../subtree/rabit/include/rabit.h"
#endif // XGBOOST_SYNC_H_

View File

@@ -8,7 +8,7 @@
#include <vector>
#include <algorithm>
#include <limits>
#include <rabit.h>
#include "../sync/sync.h"
#include "../utils/random.h"
#include "../utils/quantile.h"

View File

@@ -6,7 +6,7 @@
* and construct a tree
* \author Tianqi Chen
*/
#include <rabit.h>
#include "../sync/sync.h"
#include "../utils/bitmap.h"
#include "../utils/io.h"
#include "./updater_colmaker-inl.hpp"

View File

@@ -7,7 +7,7 @@
*/
#include <vector>
#include <algorithm>
#include <rabit.h>
#include "../sync/sync.h"
#include "../utils/quantile.h"
#include "../utils/group_data.h"
#include "./updater_basemaker-inl.hpp"

View File

@@ -7,7 +7,7 @@
*/
#include <vector>
#include <limits>
#include <rabit.h>
#include "../sync/sync.h"
#include "./param.h"
#include "./updater.h"
#include "../utils/omp.h"

View File

@@ -7,7 +7,7 @@
*/
#include <vector>
#include <limits>
#include <rabit.h>
#include "../sync/sync.h"
#include "./updater.h"
namespace xgboost {

View File

@@ -4,7 +4,7 @@
#include <ctime>
#include <string>
#include <cstring>
#include <rabit.h>
#include "./sync/sync.h"
#include "io/io.h"
#include "utils/utils.h"
#include "utils/config.h"