Xtra-Computing / thundergbm

ThunderGBM: Fast GBDTs and Random Forests on GPUs
Apache License 2.0
692 stars 87 forks source link

build thundergbm #6

Closed mmobai closed 5 years ago

mmobai commented 5 years ago

src/thundergbm/CMakeFiles/thundergbm.dir/build.make:147: recipe for target 'src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_tree.cu.o' failed ...

I have download the latest version of ThunderGBM, but it still can't make it. can you tell me how to fix it? Thank you very much!

zeyiwen commented 5 years ago

Did you clone cub? It seems there are some files in cub missing. Please make sure you execute the following command (cf. instructions on installation).

git submodule init cub && git submodule update
mmobai commented 5 years ago

Did you clone cub? It seems there are some files in cub missing. Please make sure you execute the following command (cf. instructions on installation).

git submodule init cub && git submodule update

Thank you ,I have cloned the cub just now,but I have another problem ,you can see it

zeyiwen commented 5 years ago

Please remove the build folder and repeat the instructions for building the code.

mmobai commented 5 years ago

Please remove the build folder and repeat the instructions for building the code.

I do that as you say, but it still has the same problem.

92 errors detected in the compilation of "/tmp/tmpxft_000066e6_00000000-7_objective_function.cpp1.ii". ...

shijianjian commented 5 years ago

@zeyiwen Hi, I got problem with boost. I use boost 1.69.0 and cmake 3.13.3

zeyiwen commented 5 years ago

Looks like your boost library is not properly installed. You may take a look at this issue, and other similar posts to fix your boost library installation.

shijianjian commented 5 years ago

@zeyiwen I have resolved the problem. I think it is about C++ compiler version error. Then the following error appears. It built with errors, is it alright?

[  3%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_tree.cu.o
[  6%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/builder/thundergbm_generated_function_builder.cu.o
[ 10%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/builder/thundergbm_generated_exact_tree_builder.cu.o
[ 13%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/builder/thundergbm_generated_shard.cu.o
[ 16%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/builder/thundergbm_generated_hist_tree_builder.cu.o
[ 20%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/builder/thundergbm_generated_tree_builder.cu.o
[ 23%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/metric/thundergbm_generated_metric.cu.o
[ 26%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_hist_cut.cu.o
[ 30%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/metric/thundergbm_generated_multiclass_metric.cu.o
[ 33%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/metric/thundergbm_generated_pointwise_metric.cu.o
[ 36%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/objective/thundergbm_generated_multiclass_obj.cu.o
[ 40%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/objective/thundergbm_generated_objective_function.cu.o
[ 43%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_predictor.cu.o
[ 46%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_row_sampler.cu.o
[ 50%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_sparse_columns.cu.o
[ 53%] Building NVCC (Device) object src/thundergbm/CMakeFiles/thundergbm.dir/thundergbm_generated_trainer.cu.o
/usr/local/lib/boost/include/boost/mpl/print.hpp(64): warning: integer conversion resulted in a change of sign

.....
Scanning dependencies of target thundergbm
[ 56%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/dataset.cpp.o
[ 60%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/metric/rank_metric.cpp.o
[ 63%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/objective/ranking_obj.cpp.o
[ 66%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/parser.cpp.o
[ 73%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/quantile_sketch.cpp.o
[ 73%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/scikit_tgbm.cpp.o
[ 76%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/syncmem.cpp.o
[ 80%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/util/common.cpp.o
[ 83%] Building CXX object src/thundergbm/CMakeFiles/thundergbm.dir/util/log.cpp.o
[ 86%] Linking CXX shared library ../../lib/libthundergbm.so
[ 86%] Built target thundergbm
Scanning dependencies of target thundergbm-predict
Scanning dependencies of target thundergbm-train
[ 90%] Building CXX object src/thundergbm/CMakeFiles/thundergbm-predict.dir/thundergbm_predict.cpp.o
[ 93%] Building CXX object src/thundergbm/CMakeFiles/thundergbm-train.dir/thundergbm_train.cpp.o
[ 96%] Linking CXX executable ../../bin/thundergbm-train
[100%] Linking CXX executable ../../bin/thundergbm-predict
[100%] Built target thundergbm-train
[100%] Built target thundergbm-predict
zeyiwen commented 5 years ago

You have built the code without errors. They are warnings... It should work.

lvpinrui commented 5 years ago

@zeyiwen嗨,我有提升问题。 我使用boost 1.69.0和cmake 3.13.3

...

How did you solve it?

zeyiwen commented 5 years ago

This problem should be solved now. So, we like to close it.