From 9a8211f668ddf46d04af898f3a63bf377767b580 Mon Sep 17 00:00:00 2001 From: Philip Hyunsu Cho Date: Wed, 9 May 2018 18:55:29 -0700 Subject: [PATCH] Update dmlc-core submodule (#3221) * Update dmlc-core submodule * Fix dense_parser to work with the latest dmlc-core * Specify location of Google Test * Add more source files in dmlc-minimum to get latest dmlc-core working * Update dmlc-core submodule --- CMakeLists.txt | 2 +- amalgamation/dmlc-minimum0.cc | 2 ++ dmlc-core | 2 +- plugin/dense_parser/dense_libsvm.cc | 5 +++-- tests/travis/run_test.sh | 4 ++-- 5 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 22e8c4760..53ddae1c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,7 +106,7 @@ endif() # dmlc-core add_subdirectory(dmlc-core) -set(LINK_LIBRARIES dmlccore rabit) +set(LINK_LIBRARIES dmlc rabit) if(USE_CUDA) diff --git a/amalgamation/dmlc-minimum0.cc b/amalgamation/dmlc-minimum0.cc index bce61129e..d8594aa82 100644 --- a/amalgamation/dmlc-minimum0.cc +++ b/amalgamation/dmlc-minimum0.cc @@ -7,6 +7,8 @@ #include "../dmlc-core/src/io/recordio_split.cc" #include "../dmlc-core/src/io/input_split_base.cc" #include "../dmlc-core/src/io/local_filesys.cc" +#include "../dmlc-core/src/io/filesys.cc" +#include "../dmlc-core/src/io/indexed_recordio_split.cc" #include "../dmlc-core/src/data.cc" #include "../dmlc-core/src/io.cc" #include "../dmlc-core/src/recordio.cc" diff --git a/dmlc-core b/dmlc-core index b5bec5481..dadcd97fd 160000 --- a/dmlc-core +++ b/dmlc-core @@ -1 +1 @@ -Subproject commit b5bec5481df86e8e6728d8bd80a61d87ef3b2cd5 +Subproject commit dadcd97fdceb5f395e963b2a637f6ed377f59fc4 diff --git a/plugin/dense_parser/dense_libsvm.cc b/plugin/dense_parser/dense_libsvm.cc index 4c14a1038..0dd2d0419 100644 --- a/plugin/dense_parser/dense_libsvm.cc +++ b/plugin/dense_parser/dense_libsvm.cc @@ -69,7 +69,7 @@ class DensifyParser : public dmlc::Parser { std::vector dense_value_; }; -template +template Parser * CreateDenseLibSVMParser(const std::string& path, const std::map& args, @@ -82,5 +82,6 @@ CreateDenseLibSVMParser(const std::string& path, } } // namespace data -DMLC_REGISTER_DATA_PARSER(uint32_t, dense_libsvm, data::CreateDenseLibSVMParser); +DMLC_REGISTER_DATA_PARSER(uint32_t, real_t, dense_libsvm, + data::CreateDenseLibSVMParser); } // namespace dmlc diff --git a/tests/travis/run_test.sh b/tests/travis/run_test.sh index be35eb8cb..9844246d8 100755 --- a/tests/travis/run_test.sh +++ b/tests/travis/run_test.sh @@ -118,7 +118,7 @@ if [ ${TASK} == "cmake_test" ]; then # Build/test without AVX mkdir build && cd build - cmake .. -DGOOGLE_TEST=ON + cmake .. -DGOOGLE_TEST=ON -DGTEST_ROOT=../gtest/ make cd .. ./testxgboost @@ -126,7 +126,7 @@ if [ ${TASK} == "cmake_test" ]; then # Build/test with AVX mkdir build && cd build - cmake .. -DGOOGLE_TEST=ON -DUSE_AVX=ON + cmake .. -DGOOGLE_TEST=ON -DUSE_AVX=ON -DGTEST_ROOT=../gtest/ make cd .. ./testxgboost