Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CUDA] added support for Clang #3886

Merged
merged 2 commits into from
Feb 1, 2021
Merged

[CUDA] added support for Clang #3886

merged 2 commits into from
Feb 1, 2021

Conversation

StrikerRUS
Copy link
Collaborator

@StrikerRUS StrikerRUS commented Jan 31, 2021

Tried with all three CUDA versions we currently use at our CI. Everyone succeed.

9.0
2021-01-31T18:00:41.1108546Z -- The C compiler identification is Clang 3.8.0
2021-01-31T18:00:41.1805484Z -- The CXX compiler identification is Clang 3.8.0
2021-01-31T18:00:42.2117852Z -- The CUDA compiler identification is NVIDIA 9.0.176
2021-01-31T18:00:42.2197746Z -- Detecting C compiler ABI info
2021-01-31T18:00:42.2876923Z -- Detecting C compiler ABI info - done
2021-01-31T18:00:42.2959648Z -- Check for working C compiler: /usr/bin/clang - skipped
2021-01-31T18:00:42.2961819Z -- Detecting C compile features
2021-01-31T18:00:42.2965607Z -- Detecting C compile features - done
2021-01-31T18:00:42.3004076Z -- Detecting CXX compiler ABI info
2021-01-31T18:00:42.3915055Z -- Detecting CXX compiler ABI info - done
2021-01-31T18:00:42.4005777Z -- Check for working CXX compiler: /usr/bin/clang++ - skipped
2021-01-31T18:00:42.4008086Z -- Detecting CXX compile features
2021-01-31T18:00:42.4013343Z -- Detecting CXX compile features - done
2021-01-31T18:00:42.4047721Z -- Detecting CUDA compiler ABI info
2021-01-31T18:00:42.8203082Z -- Detecting CUDA compiler ABI info - done
2021-01-31T18:00:42.8408147Z -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
2021-01-31T18:00:42.8411131Z -- Detecting CUDA compile features
2021-01-31T18:00:42.8415787Z -- Detecting CUDA compile features - done
2021-01-31T18:00:43.1176800Z -- Found OpenMP_C: -fopenmp=libomp (found version "4.0") 
2021-01-31T18:00:43.2259020Z -- Found OpenMP_CXX: -fopenmp=libomp (found version "4.0") 
2021-01-31T18:00:43.2262394Z -- Found OpenMP: TRUE (found version "4.0")  
2021-01-31T18:00:43.2322261Z -- Looking for pthread.h
2021-01-31T18:00:43.3024724Z -- Looking for pthread.h - found
2021-01-31T18:00:43.3026136Z -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
2021-01-31T18:00:43.3724548Z -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
2021-01-31T18:00:43.3725891Z -- Looking for pthread_create in pthreads
2021-01-31T18:00:43.4328108Z -- Looking for pthread_create in pthreads - not found
2021-01-31T18:00:43.4328918Z -- Looking for pthread_create in pthread
2021-01-31T18:00:43.5012170Z -- Looking for pthread_create in pthread - found
2021-01-31T18:00:43.5023093Z -- Found Threads: TRUE  
2021-01-31T18:00:43.5087268Z -- Found CUDA: /usr/local/cuda (found version "9.0") 
2021-01-31T18:00:43.5100978Z -- CMAKE_CUDA_FLAGS: -ccbin /usr/bin/clang++ -Xcompiler=-fopenmp=libomp -Xcompiler=-fPIC -Xcompiler=-Wall -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_70,code=compute_70 -O3 -lineinfo
2021-01-31T18:00:43.5102586Z -- ALLFEATS_DEFINES: -DPOWER_FEATURE_WORKGROUPS=12;-DUSE_CONSTANT_BUF=0;-DENABLE_ALL_FEATURES
2021-01-31T18:00:43.5103691Z -- FULLDATA_DEFINES: -DPOWER_FEATURE_WORKGROUPS=12;-DUSE_CONSTANT_BUF=0;-DENABLE_ALL_FEATURES;-DIGNORE_INDICES
2021-01-31T18:00:43.5114850Z -- Performing Test MM_PREFETCH
2021-01-31T18:00:43.6340876Z -- Performing Test MM_PREFETCH - Success
2021-01-31T18:00:43.6341569Z -- Using _mm_prefetch
2021-01-31T18:00:43.6343113Z -- Performing Test MM_MALLOC
2021-01-31T18:00:43.7385481Z -- Performing Test MM_MALLOC - Success
2021-01-31T18:00:43.7386169Z -- Using _mm_malloc
2021-01-31T18:00:43.7397971Z -- Configuring done
2021-01-31T18:00:43.7438753Z                                                                                          
2021-01-31T18:00:43.7439202Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7439859Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7440878Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7441784Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7442325Z   suppress this warning.
2021-01-31T18:00:43.7442574Z 
2021-01-31T18:00:43.7442972Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256_sp".
2021-01-31T18:00:43.7443824Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7444215Z 
2021-01-31T18:00:43.7453845Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7454532Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7455627Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7456326Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7456830Z   suppress this warning.
2021-01-31T18:00:43.7457079Z 
2021-01-31T18:00:43.7457725Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-fulldata_sp_const".
2021-01-31T18:00:43.7458582Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7458988Z 
2021-01-31T18:00:43.7473410Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7474252Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7475274Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7475960Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7476462Z   suppress this warning.
2021-01-31T18:00:43.7476709Z 
2021-01-31T18:00:43.7477121Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256_sp_const".
2021-01-31T18:00:43.7477986Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7478362Z 
2021-01-31T18:00:43.7503703Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7504333Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7505424Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7506118Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7506804Z   suppress this warning.
2021-01-31T18:00:43.7507055Z 
2021-01-31T18:00:43.7507705Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-fulldata_sp".
2021-01-31T18:00:43.7508523Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7508914Z 
2021-01-31T18:00:43.7516266Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7516877Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7517927Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7518605Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7519108Z   suppress this warning.
2021-01-31T18:00:43.7519358Z 
2021-01-31T18:00:43.7519766Z   CUDA_ARCHITECTURES is empty for target "lightgbm".
2021-01-31T18:00:43.7520580Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7520974Z 
2021-01-31T18:00:43.7558772Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7559436Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7560507Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7561203Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7561707Z   suppress this warning.
2021-01-31T18:00:43.7561958Z 
2021-01-31T18:00:43.7562351Z   CUDA_ARCHITECTURES is empty for target "lightgbm".
2021-01-31T18:00:43.7563171Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7563563Z 
2021-01-31T18:00:43.7574956Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7575578Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7576643Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7577495Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7578041Z   suppress this warning.
2021-01-31T18:00:43.7578290Z 
2021-01-31T18:00:43.7578939Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-allfeats_sp".
2021-01-31T18:00:43.7579768Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7580142Z 
2021-01-31T18:00:43.7586990Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7587597Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7588634Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7589308Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7589823Z   suppress this warning.
2021-01-31T18:00:43.7590057Z 
2021-01-31T18:00:43.7590705Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-allfeats_sp_const".
2021-01-31T18:00:43.7591549Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7591942Z 
2021-01-31T18:00:43.7599476Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7600126Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7601202Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7601898Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7602399Z   suppress this warning.
2021-01-31T18:00:43.7602648Z 
2021-01-31T18:00:43.7603042Z   CUDA_ARCHITECTURES is empty for target "_lightgbm".
2021-01-31T18:00:43.7603858Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7604250Z 
2021-01-31T18:00:43.7640959Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:00:43.7641587Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:00:43.7642628Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:00:43.7643331Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:00:43.7643836Z   suppress this warning.
2021-01-31T18:00:43.7644085Z 
2021-01-31T18:00:43.7644479Z   CUDA_ARCHITECTURES is empty for target "_lightgbm".
2021-01-31T18:00:43.7645292Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:00:43.7645666Z 
2021-01-31T18:00:43.7672762Z -- Generating done
2021-01-31T18:00:43.7687218Z -- Build files have been written to: /LightGBM/build
2021-01-31T18:00:43.7979599Z Scanning dependencies of target histo_16_64_256_sp_const
2021-01-31T18:00:43.7980898Z Scanning dependencies of target histo_16_64_256_sp
2021-01-31T18:00:43.8006827Z Scanning dependencies of target histo_16_64_256-fulldata_sp
2021-01-31T18:00:43.8056676Z [  2%] Building CUDA object CMakeFiles/histo_16_64_256_sp_const.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:00:43.8057836Z Scanning dependencies of target histo_16_64_256-fulldata_sp_const
2021-01-31T18:00:43.8113990Z [  5%] Building CUDA object CMakeFiles/histo_16_64_256_sp.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:00:43.8115325Z [  7%] Building CUDA object CMakeFiles/histo_16_64_256-fulldata_sp.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:00:43.8179755Z [ 10%] Building CUDA object CMakeFiles/histo_16_64_256-fulldata_sp_const.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:00:47.6416185Z [ 10%] Built target histo_16_64_256-fulldata_sp_const
2021-01-31T18:00:47.6536571Z [ 10%] Built target histo_16_64_256_sp_const
2021-01-31T18:00:47.6871106Z [ 10%] Built target histo_16_64_256-fulldata_sp
2021-01-31T18:00:47.6973801Z [ 10%] Built target histo_16_64_256_sp
2021-01-31T18:00:47.7899113Z Scanning dependencies of target _lightgbm
2021-01-31T18:00:47.8019991Z [ 12%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt.cpp.o
2021-01-31T18:00:47.8034174Z [ 17%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt_model_text.cpp.o
2021-01-31T18:00:47.8035027Z [ 15%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt_prediction.cpp.o
2021-01-31T18:00:47.8045799Z [ 20%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o
2021-01-31T18:00:49.6531948Z [ 22%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/prediction_early_stop.cpp.o
2021-01-31T18:00:50.3057795Z [ 25%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/bin.cpp.o
2021-01-31T18:00:50.8253921Z [ 27%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/config.cpp.o
2021-01-31T18:00:51.3740542Z [ 30%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/config_auto.cpp.o
2021-01-31T18:00:51.7485153Z [ 32%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/dataset.cpp.o
2021-01-31T18:00:53.4735526Z [ 35%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/dataset_loader.cpp.o
2021-01-31T18:00:54.4921444Z [ 37%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/file_io.cpp.o
2021-01-31T18:00:55.1649571Z [ 40%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/json11.cpp.o
2021-01-31T18:00:56.5238330Z [ 42%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/metadata.cpp.o
2021-01-31T18:00:56.7931577Z [ 45%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/parser.cpp.o
2021-01-31T18:00:57.8313010Z [ 47%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/train_share_states.cpp.o
2021-01-31T18:00:58.7097367Z [ 50%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/tree.cpp.o
2021-01-31T18:00:58.7949687Z [ 52%] Building CXX object CMakeFiles/_lightgbm.dir/src/metric/dcg_calculator.cpp.o
2021-01-31T18:00:59.5809757Z [ 55%] Building CXX object CMakeFiles/_lightgbm.dir/src/metric/metric.cpp.o
2021-01-31T18:01:00.4886409Z [ 57%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/ifaddrs_patch.cpp.o
2021-01-31T18:01:00.5162327Z [ 60%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linker_topo.cpp.o
2021-01-31T18:01:00.6985986Z [ 62%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linkers_mpi.cpp.o
2021-01-31T18:01:00.7263151Z [ 65%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linkers_socket.cpp.o
2021-01-31T18:01:01.8946677Z [ 67%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/network.cpp.o
2021-01-31T18:01:02.9628664Z [ 70%] Building CXX object CMakeFiles/_lightgbm.dir/src/objective/objective_function.cpp.o
2021-01-31T18:01:03.7416721Z [ 72%] Building CUDA object CMakeFiles/_lightgbm.dir/src/treelearner/cuda_kernel_launcher.cu.o
2021-01-31T18:01:04.1595501Z [ 75%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/cuda_tree_learner.cpp.o
2021-01-31T18:01:04.6557212Z [ 77%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/data_parallel_tree_learner.cpp.o
2021-01-31T18:01:05.3108402Z In file included from /LightGBM/src/treelearner/cuda_tree_learner.cpp:6:
2021-01-31T18:01:05.3113299Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:01:05.3114481Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:01:05.3114983Z           ^
2021-01-31T18:01:05.3115527Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:01:05.3116322Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:01:05.3116829Z         ^
2021-01-31T18:01:05.8129709Z In file included from /LightGBM/src/treelearner/data_parallel_tree_learner.cpp:9:
2021-01-31T18:01:05.8130633Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:01:05.8132400Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:01:05.8133502Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:01:05.8133973Z           ^
2021-01-31T18:01:05.8134829Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:01:05.8135663Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:01:05.8136173Z         ^
2021-01-31T18:01:07.0091626Z [ 80%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/feature_parallel_tree_learner.cpp.o
2021-01-31T18:01:07.2350541Z In file included from /LightGBM/src/treelearner/cuda_tree_learner.cpp:6:
2021-01-31T18:01:07.2352302Z /LightGBM/src/treelearner/cuda_tree_learner.h:202:12: warning: private field 'ptr_pinned_gradients_' is not used [-Wunused-private-field]
2021-01-31T18:01:07.2353136Z     void * ptr_pinned_gradients_ = nullptr;
2021-01-31T18:01:07.2353506Z            ^
2021-01-31T18:01:07.2354462Z /LightGBM/src/treelearner/cuda_tree_learner.h:206:12: warning: private field 'ptr_pinned_hessians_' is not used [-Wunused-private-field]
2021-01-31T18:01:07.2355285Z     void * ptr_pinned_hessians_ = nullptr;
2021-01-31T18:01:07.2355665Z            ^
2021-01-31T18:01:07.8487483Z 3 warnings generated.
2021-01-31T18:01:07.8628224Z [ 82%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o
2021-01-31T18:01:07.8920646Z [ 85%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/linear_tree_learner.cpp.o
2021-01-31T18:01:07.9072155Z [ 87%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/serial_tree_learner.cpp.o
2021-01-31T18:01:08.1614546Z In file included from /LightGBM/src/treelearner/feature_parallel_tree_learner.cpp:8:
2021-01-31T18:01:08.1615540Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:01:08.1617446Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:01:08.1618715Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:01:08.1619298Z           ^
2021-01-31T18:01:08.1619990Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:01:08.1620904Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:01:08.1621514Z         ^
2021-01-31T18:01:08.8025458Z 1 warning generated.
2021-01-31T18:01:08.8164112Z [ 90%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/tree_learner.cpp.o
2021-01-31T18:01:09.9625395Z In file included from /LightGBM/src/treelearner/tree_learner.cpp:7:
2021-01-31T18:01:09.9627399Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:01:09.9628520Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:01:09.9628993Z           ^
2021-01-31T18:01:09.9629557Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:01:09.9630378Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:01:09.9630903Z         ^
2021-01-31T18:01:10.3850389Z 1 warning generated.
2021-01-31T18:01:10.3984595Z [ 92%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/voting_parallel_tree_learner.cpp.o
2021-01-31T18:01:11.5426060Z In file included from /LightGBM/src/treelearner/voting_parallel_tree_learner.cpp:11:
2021-01-31T18:01:11.5427073Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:01:11.5428861Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:01:11.5429942Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:01:11.5430428Z           ^
2021-01-31T18:01:11.5431269Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:01:11.5432104Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:01:11.5432610Z         ^
2021-01-31T18:01:11.9571933Z 1 warning generated.
2021-01-31T18:01:11.9698757Z [ 95%] Building CXX object CMakeFiles/_lightgbm.dir/src/c_api.cpp.o
2021-01-31T18:01:26.1938759Z 1 warning generated.
2021-01-31T18:01:26.2090196Z [ 97%] Linking CUDA device code CMakeFiles/_lightgbm.dir/cmake_device_link.o
2021-01-31T18:01:26.5242521Z [100%] Linking CXX shared library ../lib_lightgbm.so
2021-01-31T18:01:26.7651828Z [100%] Built target _lightgbm
10.0
2021-01-31T18:16:12.3256296Z -- The C compiler identification is Clang 6.0.0
2021-01-31T18:16:12.4082203Z -- The CXX compiler identification is Clang 6.0.0
2021-01-31T18:16:23.3627005Z -- The CUDA compiler identification is NVIDIA 10.0.130
2021-01-31T18:16:23.3700498Z -- Detecting C compiler ABI info
2021-01-31T18:16:23.4481484Z -- Detecting C compiler ABI info - done
2021-01-31T18:16:23.4556705Z -- Check for working C compiler: /usr/bin/clang - skipped
2021-01-31T18:16:23.4558211Z -- Detecting C compile features
2021-01-31T18:16:23.4562534Z -- Detecting C compile features - done
2021-01-31T18:16:23.4598260Z -- Detecting CXX compiler ABI info
2021-01-31T18:16:23.5652656Z -- Detecting CXX compiler ABI info - done
2021-01-31T18:16:23.5738865Z -- Check for working CXX compiler: /usr/bin/clang++ - skipped
2021-01-31T18:16:23.5740926Z -- Detecting CXX compile features
2021-01-31T18:16:23.5745867Z -- Detecting CXX compile features - done
2021-01-31T18:16:23.5777932Z -- Detecting CUDA compiler ABI info
2021-01-31T18:16:24.0962557Z -- Detecting CUDA compiler ABI info - done
2021-01-31T18:16:24.1173135Z -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
2021-01-31T18:16:24.1175847Z -- Detecting CUDA compile features
2021-01-31T18:16:24.1179521Z -- Detecting CUDA compile features - done
2021-01-31T18:16:24.4300215Z -- Found OpenMP_C: -fopenmp=libomp (found version "3.1") 
2021-01-31T18:16:24.5547981Z -- Found OpenMP_CXX: -fopenmp=libomp (found version "3.1") 
2021-01-31T18:16:24.5550870Z -- Found OpenMP: TRUE (found version "3.1")  
2021-01-31T18:16:24.5609478Z -- Looking for pthread.h
2021-01-31T18:16:24.6420344Z -- Looking for pthread.h - found
2021-01-31T18:16:24.6421616Z -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
2021-01-31T18:16:24.7220747Z -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
2021-01-31T18:16:24.7221577Z -- Looking for pthread_create in pthreads
2021-01-31T18:16:24.7900431Z -- Looking for pthread_create in pthreads - not found
2021-01-31T18:16:24.7901241Z -- Looking for pthread_create in pthread
2021-01-31T18:16:24.8653706Z -- Looking for pthread_create in pthread - found
2021-01-31T18:16:24.8662853Z -- Found Threads: TRUE  
2021-01-31T18:16:24.8715435Z -- Found CUDA: /usr/local/cuda (found version "10.0") 
2021-01-31T18:16:24.8727753Z -- CMAKE_CUDA_FLAGS: -ccbin /usr/bin/clang++ -Xcompiler=-fopenmp=libomp -Xcompiler=-fPIC -Xcompiler=-Wall -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -O3 -lineinfo
2021-01-31T18:16:24.8729532Z -- ALLFEATS_DEFINES: -DPOWER_FEATURE_WORKGROUPS=12;-DUSE_CONSTANT_BUF=0;-DENABLE_ALL_FEATURES
2021-01-31T18:16:24.8730607Z -- FULLDATA_DEFINES: -DPOWER_FEATURE_WORKGROUPS=12;-DUSE_CONSTANT_BUF=0;-DENABLE_ALL_FEATURES;-DIGNORE_INDICES
2021-01-31T18:16:24.8737089Z -- Performing Test MM_PREFETCH
2021-01-31T18:16:25.0191854Z -- Performing Test MM_PREFETCH - Success
2021-01-31T18:16:25.0192526Z -- Using _mm_prefetch
2021-01-31T18:16:25.0195016Z -- Performing Test MM_MALLOC
2021-01-31T18:16:25.1374591Z -- Performing Test MM_MALLOC - Success
2021-01-31T18:16:25.1375274Z -- Using _mm_malloc
2021-01-31T18:16:25.1385635Z -- Configuring done
2021-01-31T18:16:25.1416470Z                                                                                          
2021-01-31T18:16:25.1417330Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1417946Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1418995Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1419687Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1420221Z   suppress this warning.
2021-01-31T18:16:25.1420481Z 
2021-01-31T18:16:25.1421130Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-fulldata_sp_const".
2021-01-31T18:16:25.1421977Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1422381Z 
2021-01-31T18:16:25.1427899Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1428570Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1429574Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1430277Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1430812Z   suppress this warning.
2021-01-31T18:16:25.1431053Z 
2021-01-31T18:16:25.1431475Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256_sp".
2021-01-31T18:16:25.1432284Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1432684Z 
2021-01-31T18:16:25.1438571Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1439403Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1440435Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1441220Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1441734Z   suppress this warning.
2021-01-31T18:16:25.1441991Z 
2021-01-31T18:16:25.1442621Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-fulldata_sp".
2021-01-31T18:16:25.1443482Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1443891Z 
2021-01-31T18:16:25.1450589Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1451226Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1452202Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1452903Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1453415Z   suppress this warning.
2021-01-31T18:16:25.1453674Z 
2021-01-31T18:16:25.1454095Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256_sp_const".
2021-01-31T18:16:25.1454931Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1455317Z 
2021-01-31T18:16:25.1462148Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1462757Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1463917Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1464631Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1465197Z   suppress this warning.
2021-01-31T18:16:25.1465440Z 
2021-01-31T18:16:25.1465860Z   CUDA_ARCHITECTURES is empty for target "_lightgbm".
2021-01-31T18:16:25.1466871Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1467279Z 
2021-01-31T18:16:25.1498155Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1498770Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1499749Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1500459Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1500974Z   suppress this warning.
2021-01-31T18:16:25.1501229Z 
2021-01-31T18:16:25.1501650Z   CUDA_ARCHITECTURES is empty for target "_lightgbm".
2021-01-31T18:16:25.1502471Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1503032Z 
2021-01-31T18:16:25.1512105Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1512803Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1513876Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1514587Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1515103Z   suppress this warning.
2021-01-31T18:16:25.1515363Z 
2021-01-31T18:16:25.1515771Z   CUDA_ARCHITECTURES is empty for target "lightgbm".
2021-01-31T18:16:25.1516606Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1516992Z 
2021-01-31T18:16:25.1545924Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1546702Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1547798Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1548507Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1549046Z   suppress this warning.
2021-01-31T18:16:25.1549287Z 
2021-01-31T18:16:25.1549707Z   CUDA_ARCHITECTURES is empty for target "lightgbm".
2021-01-31T18:16:25.1550529Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1550932Z 
2021-01-31T18:16:25.1558912Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1559534Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1560583Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1561276Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1561791Z   suppress this warning.
2021-01-31T18:16:25.1562049Z 
2021-01-31T18:16:25.1562713Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-allfeats_sp_const".
2021-01-31T18:16:25.1563574Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1563982Z 
2021-01-31T18:16:25.1570556Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:16:25.1571205Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:16:25.1572199Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:16:25.1572937Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:16:25.1573447Z   suppress this warning.
2021-01-31T18:16:25.1573704Z 
2021-01-31T18:16:25.1574330Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-allfeats_sp".
2021-01-31T18:16:25.1575180Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:16:25.1575582Z 
2021-01-31T18:16:25.1597195Z -- Generating done
2021-01-31T18:16:25.1611404Z -- Build files have been written to: /LightGBM/build
2021-01-31T18:16:25.1871446Z Scanning dependencies of target histo_16_64_256-fulldata_sp_const
2021-01-31T18:16:25.1878839Z Scanning dependencies of target histo_16_64_256-fulldata_sp
2021-01-31T18:16:25.1923263Z Scanning dependencies of target histo_16_64_256_sp_const
2021-01-31T18:16:25.1968356Z Scanning dependencies of target histo_16_64_256_sp
2021-01-31T18:16:25.1992136Z [  2%] Building CUDA object CMakeFiles/histo_16_64_256-fulldata_sp_const.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:16:25.2001277Z [  5%] Building CUDA object CMakeFiles/histo_16_64_256-fulldata_sp.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:16:25.2011571Z [  7%] Building CUDA object CMakeFiles/histo_16_64_256_sp_const.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:16:25.2052483Z [ 10%] Building CUDA object CMakeFiles/histo_16_64_256_sp.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:16:29.7346149Z [ 10%] Built target histo_16_64_256-fulldata_sp_const
2021-01-31T18:16:29.7573942Z [ 10%] Built target histo_16_64_256_sp_const
2021-01-31T18:16:29.7972132Z [ 10%] Built target histo_16_64_256_sp
2021-01-31T18:16:29.8187767Z [ 10%] Built target histo_16_64_256-fulldata_sp
2021-01-31T18:16:29.9049728Z Scanning dependencies of target _lightgbm
2021-01-31T18:16:29.9167369Z [ 15%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt_model_text.cpp.o
2021-01-31T18:16:29.9168233Z [ 15%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o
2021-01-31T18:16:29.9179289Z [ 17%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt_prediction.cpp.o
2021-01-31T18:16:29.9184223Z [ 20%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt.cpp.o
2021-01-31T18:16:31.7290760Z [ 22%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/prediction_early_stop.cpp.o
2021-01-31T18:16:32.2129441Z [ 25%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/bin.cpp.o
2021-01-31T18:16:33.1173896Z [ 27%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/config.cpp.o
2021-01-31T18:16:33.7081226Z [ 30%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/config_auto.cpp.o
2021-01-31T18:16:34.0445027Z [ 32%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/dataset.cpp.o
2021-01-31T18:16:35.8417190Z [ 35%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/dataset_loader.cpp.o
2021-01-31T18:16:36.9614601Z [ 37%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/file_io.cpp.o
2021-01-31T18:16:37.4408605Z [ 40%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/json11.cpp.o
2021-01-31T18:16:39.0981252Z [ 42%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/metadata.cpp.o
2021-01-31T18:16:39.3264752Z [ 45%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/parser.cpp.o
2021-01-31T18:16:40.5384779Z [ 47%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/train_share_states.cpp.o
2021-01-31T18:16:41.2817261Z [ 50%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/tree.cpp.o
2021-01-31T18:16:41.3927718Z [ 52%] Building CXX object CMakeFiles/_lightgbm.dir/src/metric/dcg_calculator.cpp.o
2021-01-31T18:16:42.2108006Z [ 55%] Building CXX object CMakeFiles/_lightgbm.dir/src/metric/metric.cpp.o
2021-01-31T18:16:43.2362717Z [ 57%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/ifaddrs_patch.cpp.o
2021-01-31T18:16:43.2737625Z [ 60%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linker_topo.cpp.o
2021-01-31T18:16:43.3746029Z [ 62%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linkers_mpi.cpp.o
2021-01-31T18:16:43.4144303Z [ 65%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linkers_socket.cpp.o
2021-01-31T18:16:44.5372196Z [ 67%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/network.cpp.o
2021-01-31T18:16:45.6766606Z [ 70%] Building CXX object CMakeFiles/_lightgbm.dir/src/objective/objective_function.cpp.o
2021-01-31T18:16:46.3097459Z [ 72%] Building CUDA object CMakeFiles/_lightgbm.dir/src/treelearner/cuda_kernel_launcher.cu.o
2021-01-31T18:16:47.0214251Z [ 75%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/cuda_tree_learner.cpp.o
2021-01-31T18:16:47.7959066Z [ 77%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/data_parallel_tree_learner.cpp.o
2021-01-31T18:16:48.1767080Z In file included from /LightGBM/src/treelearner/cuda_tree_learner.cpp:6:
2021-01-31T18:16:48.1768963Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:16:48.1770085Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:16:48.1770587Z           ^
2021-01-31T18:16:48.1771152Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:16:48.1771984Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:16:48.1772501Z         ^
2021-01-31T18:16:48.9635765Z In file included from /LightGBM/src/treelearner/data_parallel_tree_learner.cpp:9:
2021-01-31T18:16:48.9636715Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:16:48.9638513Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:16:48.9639919Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:16:48.9640401Z           ^
2021-01-31T18:16:48.9640980Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:16:48.9641793Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:16:48.9642316Z         ^
2021-01-31T18:16:49.9233405Z In file included from /LightGBM/src/treelearner/cuda_tree_learner.cpp:6:
2021-01-31T18:16:49.9235106Z /LightGBM/src/treelearner/cuda_tree_learner.h:202:12: warning: private field 'ptr_pinned_gradients_' is not used [-Wunused-private-field]
2021-01-31T18:16:49.9235967Z     void * ptr_pinned_gradients_ = nullptr;
2021-01-31T18:16:49.9236351Z            ^
2021-01-31T18:16:49.9237348Z /LightGBM/src/treelearner/cuda_tree_learner.h:206:12: warning: private field 'ptr_pinned_hessians_' is not used [-Wunused-private-field]
2021-01-31T18:16:49.9238194Z     void * ptr_pinned_hessians_ = nullptr;
2021-01-31T18:16:49.9238572Z            ^
2021-01-31T18:16:50.6183280Z 3 warnings generated.
2021-01-31T18:16:50.6341073Z [ 80%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/feature_parallel_tree_learner.cpp.o
2021-01-31T18:16:50.6922451Z [ 82%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o
2021-01-31T18:16:50.7271665Z [ 85%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/linear_tree_learner.cpp.o
2021-01-31T18:16:50.8431799Z [ 87%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/serial_tree_learner.cpp.o
2021-01-31T18:16:51.7701398Z In file included from /LightGBM/src/treelearner/feature_parallel_tree_learner.cpp:8:
2021-01-31T18:16:51.7702382Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:16:51.7704165Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:16:51.7705319Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:16:51.7705819Z           ^
2021-01-31T18:16:51.7706957Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:16:51.7716560Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:16:51.7717135Z         ^
2021-01-31T18:16:51.9158195Z 1 warning generated.
2021-01-31T18:16:51.9313509Z [ 90%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/tree_learner.cpp.o
2021-01-31T18:16:53.0703525Z In file included from /LightGBM/src/treelearner/tree_learner.cpp:7:
2021-01-31T18:16:53.0705674Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:16:53.0707046Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:16:53.0707541Z           ^
2021-01-31T18:16:53.0708111Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:16:53.0708950Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:16:53.0709461Z         ^
2021-01-31T18:16:53.8524706Z 1 warning generated.
2021-01-31T18:16:53.8681016Z [ 92%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/voting_parallel_tree_learner.cpp.o
2021-01-31T18:16:54.8728489Z 1 warning generated.
2021-01-31T18:16:54.8897782Z [ 95%] Building CXX object CMakeFiles/_lightgbm.dir/src/c_api.cpp.o
2021-01-31T18:16:55.0247568Z In file included from /LightGBM/src/treelearner/voting_parallel_tree_learner.cpp:11:
2021-01-31T18:16:55.0248486Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:16:55.0250573Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:16:55.0251715Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:16:55.0252205Z           ^
2021-01-31T18:16:55.0252783Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:16:55.0253603Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:16:55.0254126Z         ^
2021-01-31T18:17:11.3182604Z 1 warning generated.
2021-01-31T18:17:11.3373133Z [ 97%] Linking CUDA device code CMakeFiles/_lightgbm.dir/cmake_device_link.o
2021-01-31T18:17:11.6737821Z [100%] Linking CXX shared library ../lib_lightgbm.so
2021-01-31T18:17:11.8997159Z [100%] Built target _lightgbm
11.2
2021-01-31T18:08:33.1869088Z -- The C compiler identification is Clang 10.0.0
2021-01-31T18:08:33.3798222Z -- The CXX compiler identification is Clang 10.0.0
2021-01-31T18:08:34.4448206Z -- The CUDA compiler identification is NVIDIA 11.2.67
2021-01-31T18:08:34.4520208Z -- Detecting C compiler ABI info
2021-01-31T18:08:34.5900659Z -- Detecting C compiler ABI info - done
2021-01-31T18:08:34.5968549Z -- Check for working C compiler: /usr/bin/clang - skipped
2021-01-31T18:08:34.5970580Z -- Detecting C compile features
2021-01-31T18:08:34.5974970Z -- Detecting C compile features - done
2021-01-31T18:08:34.6010516Z -- Detecting CXX compiler ABI info
2021-01-31T18:08:34.7238384Z -- Detecting CXX compiler ABI info - done
2021-01-31T18:08:34.7332275Z -- Check for working CXX compiler: /usr/bin/clang++ - skipped
2021-01-31T18:08:34.7333784Z -- Detecting CXX compile features
2021-01-31T18:08:34.7338647Z -- Detecting CXX compile features - done
2021-01-31T18:08:34.7372078Z -- Detecting CUDA compiler ABI info
2021-01-31T18:08:35.4464748Z -- Detecting CUDA compiler ABI info - done
2021-01-31T18:08:35.4673135Z -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc - skipped
2021-01-31T18:08:35.4675882Z -- Detecting CUDA compile features
2021-01-31T18:08:35.4679525Z -- Detecting CUDA compile features - done
2021-01-31T18:08:35.7914380Z -- Found OpenMP_C: -fopenmp=libomp (found version "4.5") 
2021-01-31T18:08:35.9206615Z -- Found OpenMP_CXX: -fopenmp=libomp (found version "4.5") 
2021-01-31T18:08:35.9208382Z -- Found OpenMP: TRUE (found version "4.5")  
2021-01-31T18:08:35.9332793Z -- Looking for pthread.h
2021-01-31T18:08:36.0152230Z -- Looking for pthread.h - found
2021-01-31T18:08:36.0153520Z -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
2021-01-31T18:08:36.1012499Z -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
2021-01-31T18:08:36.1013327Z -- Looking for pthread_create in pthreads
2021-01-31T18:08:36.1672051Z -- Looking for pthread_create in pthreads - not found
2021-01-31T18:08:36.1672868Z -- Looking for pthread_create in pthread
2021-01-31T18:08:36.2440817Z -- Looking for pthread_create in pthread - found
2021-01-31T18:08:36.2449965Z -- Found Threads: TRUE  
2021-01-31T18:08:36.2512963Z -- Found CUDA: /usr/local/cuda (found version "11.2") 
2021-01-31T18:08:36.2525301Z -- CMAKE_CUDA_FLAGS: -ccbin /usr/bin/clang++ -Xcompiler=-fopenmp=libomp -Xcompiler=-fPIC -Xcompiler=-Wall -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_62,code=sm_62 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=compute_75 -O3 -lineinfo
2021-01-31T18:08:36.2526999Z -- ALLFEATS_DEFINES: -DPOWER_FEATURE_WORKGROUPS=12;-DUSE_CONSTANT_BUF=0;-DENABLE_ALL_FEATURES
2021-01-31T18:08:36.2528377Z -- FULLDATA_DEFINES: -DPOWER_FEATURE_WORKGROUPS=12;-DUSE_CONSTANT_BUF=0;-DENABLE_ALL_FEATURES;-DIGNORE_INDICES
2021-01-31T18:08:36.2535061Z -- Performing Test MM_PREFETCH
2021-01-31T18:08:36.4193805Z -- Performing Test MM_PREFETCH - Success
2021-01-31T18:08:36.4194515Z -- Using _mm_prefetch
2021-01-31T18:08:36.4196538Z -- Performing Test MM_MALLOC
2021-01-31T18:08:36.5421635Z -- Performing Test MM_MALLOC - Success
2021-01-31T18:08:36.5422375Z -- Using _mm_malloc
2021-01-31T18:08:36.5432477Z -- Configuring done
2021-01-31T18:08:36.5465054Z                                                                                          
2021-01-31T18:08:36.5465922Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5466721Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5467780Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5468485Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5469003Z   suppress this warning.
2021-01-31T18:08:36.5469260Z 
2021-01-31T18:08:36.5469677Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256_sp_const".
2021-01-31T18:08:36.5470522Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5470921Z 
2021-01-31T18:08:36.5479050Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5479706Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5480840Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5481543Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5482051Z   suppress this warning.
2021-01-31T18:08:36.5482306Z 
2021-01-31T18:08:36.5482707Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256_sp".
2021-01-31T18:08:36.5483539Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5483931Z 
2021-01-31T18:08:36.5492082Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5492723Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5493837Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5494527Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5495053Z   suppress this warning.
2021-01-31T18:08:36.5495294Z 
2021-01-31T18:08:36.5495960Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-allfeats_sp_const".
2021-01-31T18:08:36.5496796Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5497192Z 
2021-01-31T18:08:36.5505114Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5505723Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5507155Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5507882Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5508392Z   suppress this warning.
2021-01-31T18:08:36.5508646Z 
2021-01-31T18:08:36.5509319Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-allfeats_sp".
2021-01-31T18:08:36.5510142Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5510538Z 
2021-01-31T18:08:36.5518607Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5519239Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5520246Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5520946Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5521454Z   suppress this warning.
2021-01-31T18:08:36.5521707Z 
2021-01-31T18:08:36.5522332Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-fulldata_sp".
2021-01-31T18:08:36.5523169Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5523749Z 
2021-01-31T18:08:36.5531735Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5532385Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5533366Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5534051Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5534575Z   suppress this warning.
2021-01-31T18:08:36.5534828Z 
2021-01-31T18:08:36.5535482Z   CUDA_ARCHITECTURES is empty for target "histo_16_64_256-fulldata_sp_const".
2021-01-31T18:08:36.5536329Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5536709Z 
2021-01-31T18:08:36.5545047Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5545655Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5546841Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5547534Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5548058Z   suppress this warning.
2021-01-31T18:08:36.5548297Z 
2021-01-31T18:08:36.5548708Z   CUDA_ARCHITECTURES is empty for target "_lightgbm".
2021-01-31T18:08:36.5549524Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5549921Z 
2021-01-31T18:08:36.5582558Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5583201Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5584281Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5584987Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5585497Z   suppress this warning.
2021-01-31T18:08:36.5585747Z 
2021-01-31T18:08:36.5586157Z   CUDA_ARCHITECTURES is empty for target "_lightgbm".
2021-01-31T18:08:36.5587453Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5587863Z 
2021-01-31T18:08:36.5596129Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5596774Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5597850Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5598539Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5599061Z   suppress this warning.
2021-01-31T18:08:36.5599316Z 
2021-01-31T18:08:36.5599713Z   CUDA_ARCHITECTURES is empty for target "lightgbm".
2021-01-31T18:08:36.5600533Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5600915Z 
2021-01-31T18:08:36.5635659Z CMake Warning (dev) in CMakeLists.txt:
2021-01-31T18:08:36.5636304Z   Policy CMP0104 is not set: CMAKE_CUDA_ARCHITECTURES now detected for NVCC,
2021-01-31T18:08:36.5637584Z   empty CUDA_ARCHITECTURES not allowed.  Run "cmake --help-policy CMP0104"
2021-01-31T18:08:36.5638306Z   for policy details.  Use the cmake_policy command to set the policy and
2021-01-31T18:08:36.5638830Z   suppress this warning.
2021-01-31T18:08:36.5639069Z 
2021-01-31T18:08:36.5639482Z   CUDA_ARCHITECTURES is empty for target "lightgbm".
2021-01-31T18:08:36.5640324Z This warning is for project developers.  Use -Wno-dev to suppress it.
2021-01-31T18:08:36.5640720Z 
2021-01-31T18:08:36.5663525Z -- Generating done
2021-01-31T18:08:36.5678238Z -- Build files have been written to: /LightGBM/build
2021-01-31T18:08:36.5934595Z Scanning dependencies of target histo_16_64_256_sp_const
2021-01-31T18:08:36.5943159Z Scanning dependencies of target histo_16_64_256-fulldata_sp
2021-01-31T18:08:36.5971267Z Scanning dependencies of target histo_16_64_256-fulldata_sp_const
2021-01-31T18:08:36.6004820Z [  2%] Building CUDA object CMakeFiles/histo_16_64_256_sp_const.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:08:36.6026568Z [  5%] Building CUDA object CMakeFiles/histo_16_64_256-fulldata_sp.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:08:36.6044189Z Scanning dependencies of target histo_16_64_256_sp
2021-01-31T18:08:36.6051900Z [  7%] Building CUDA object CMakeFiles/histo_16_64_256-fulldata_sp_const.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:08:36.6135726Z [ 10%] Building CUDA object CMakeFiles/histo_16_64_256_sp.dir/src/treelearner/kernels/histogram_16_64_256.cu.o
2021-01-31T18:08:41.0584976Z [ 10%] Built target histo_16_64_256_sp_const
2021-01-31T18:08:41.0682832Z [ 10%] Built target histo_16_64_256-fulldata_sp_const
2021-01-31T18:08:41.1076042Z [ 10%] Built target histo_16_64_256-fulldata_sp
2021-01-31T18:08:41.1108446Z [ 10%] Built target histo_16_64_256_sp
2021-01-31T18:08:41.1915536Z Scanning dependencies of target _lightgbm
2021-01-31T18:08:41.2025049Z [ 12%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/boosting.cpp.o
2021-01-31T18:08:41.2026067Z [ 15%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt.cpp.o
2021-01-31T18:08:41.2027032Z [ 17%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt_prediction.cpp.o
2021-01-31T18:08:41.2041056Z [ 20%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/gbdt_model_text.cpp.o
2021-01-31T18:08:43.0172678Z [ 22%] Building CXX object CMakeFiles/_lightgbm.dir/src/boosting/prediction_early_stop.cpp.o
2021-01-31T18:08:43.5264158Z [ 25%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/bin.cpp.o
2021-01-31T18:08:44.6137484Z [ 27%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/config.cpp.o
2021-01-31T18:08:45.1724312Z [ 30%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/config_auto.cpp.o
2021-01-31T18:08:45.5161137Z [ 32%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/dataset.cpp.o
2021-01-31T18:08:47.4361030Z [ 35%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/dataset_loader.cpp.o
2021-01-31T18:08:48.5887057Z [ 37%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/file_io.cpp.o
2021-01-31T18:08:49.1021074Z [ 40%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/json11.cpp.o
2021-01-31T18:08:50.8044629Z [ 42%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/metadata.cpp.o
2021-01-31T18:08:51.1011084Z [ 45%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/parser.cpp.o
2021-01-31T18:08:52.3690370Z [ 47%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/train_share_states.cpp.o
2021-01-31T18:08:53.0933480Z [ 50%] Building CXX object CMakeFiles/_lightgbm.dir/src/io/tree.cpp.o
2021-01-31T18:08:53.2569211Z [ 52%] Building CXX object CMakeFiles/_lightgbm.dir/src/metric/dcg_calculator.cpp.o
2021-01-31T18:08:54.2053481Z [ 55%] Building CXX object CMakeFiles/_lightgbm.dir/src/metric/metric.cpp.o
2021-01-31T18:08:55.3007624Z [ 57%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/ifaddrs_patch.cpp.o
2021-01-31T18:08:55.3293613Z [ 60%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linker_topo.cpp.o
2021-01-31T18:08:55.6049928Z [ 62%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linkers_mpi.cpp.o
2021-01-31T18:08:55.6326114Z [ 65%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/linkers_socket.cpp.o
2021-01-31T18:08:56.6596275Z [ 67%] Building CXX object CMakeFiles/_lightgbm.dir/src/network/network.cpp.o
2021-01-31T18:08:57.9549927Z [ 70%] Building CXX object CMakeFiles/_lightgbm.dir/src/objective/objective_function.cpp.o
2021-01-31T18:08:58.4934169Z [ 72%] Building CUDA object CMakeFiles/_lightgbm.dir/src/treelearner/cuda_kernel_launcher.cu.o
2021-01-31T18:08:59.4219546Z [ 75%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/cuda_tree_learner.cpp.o
2021-01-31T18:09:00.0504550Z [ 77%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/data_parallel_tree_learner.cpp.o
2021-01-31T18:09:00.5986508Z In file included from /LightGBM/src/treelearner/cuda_tree_learner.cpp:6:
2021-01-31T18:09:00.5988514Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:09:00.5989919Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:09:00.5990400Z           ^
2021-01-31T18:09:00.5990970Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:09:00.5991775Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:09:00.6027361Z         ^
2021-01-31T18:09:01.2309803Z In file included from /LightGBM/src/treelearner/data_parallel_tree_learner.cpp:9:
2021-01-31T18:09:01.2310625Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:09:01.2312450Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:09:01.2313650Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:09:01.2314135Z           ^
2021-01-31T18:09:01.2314700Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:09:01.2315519Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:09:01.2316023Z         ^
2021-01-31T18:09:02.3979661Z In file included from /LightGBM/src/treelearner/cuda_tree_learner.cpp:6:
2021-01-31T18:09:02.3981548Z /LightGBM/src/treelearner/cuda_tree_learner.h:202:12: warning: private field 'ptr_pinned_gradients_' is not used [-Wunused-private-field]
2021-01-31T18:09:02.3982396Z     void * ptr_pinned_gradients_ = nullptr;
2021-01-31T18:09:02.3982810Z            ^
2021-01-31T18:09:02.3983774Z /LightGBM/src/treelearner/cuda_tree_learner.h:206:12: warning: private field 'ptr_pinned_hessians_' is not used [-Wunused-private-field]
2021-01-31T18:09:02.3984602Z     void * ptr_pinned_hessians_ = nullptr;
2021-01-31T18:09:02.3984956Z            ^
2021-01-31T18:09:02.7640400Z [ 80%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/feature_parallel_tree_learner.cpp.o
2021-01-31T18:09:03.1589745Z 3 warnings generated.
2021-01-31T18:09:03.1731680Z [ 82%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o
2021-01-31T18:09:03.2015914Z [ 85%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/linear_tree_learner.cpp.o
2021-01-31T18:09:03.4766617Z [ 87%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/serial_tree_learner.cpp.o
2021-01-31T18:09:03.9398041Z In file included from /LightGBM/src/treelearner/feature_parallel_tree_learner.cpp:8:
2021-01-31T18:09:03.9398884Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:09:03.9400759Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:09:03.9402230Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:09:03.9402761Z           ^
2021-01-31T18:09:03.9403326Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:09:03.9404146Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:09:03.9404652Z         ^
2021-01-31T18:09:04.4120977Z 1 warning generated.
2021-01-31T18:09:04.4259733Z [ 90%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/tree_learner.cpp.o
2021-01-31T18:09:05.5969092Z In file included from /LightGBM/src/treelearner/tree_learner.cpp:7:
2021-01-31T18:09:05.5973582Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:09:05.5974743Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:09:05.5975225Z           ^
2021-01-31T18:09:05.5975824Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:09:05.5976947Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:09:05.5977465Z         ^
2021-01-31T18:09:06.1560299Z 1 warning generated.
2021-01-31T18:09:06.1723137Z [ 92%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/voting_parallel_tree_learner.cpp.o
2021-01-31T18:09:07.3305904Z In file included from /LightGBM/src/treelearner/voting_parallel_tree_learner.cpp:11:
2021-01-31T18:09:07.3306879Z In file included from /LightGBM/src/treelearner/parallel_tree_learner.h:15:
2021-01-31T18:09:07.3308771Z /LightGBM/src/treelearner/cuda_tree_learner.h:48:11: warning: 'Train' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
2021-01-31T18:09:07.3309868Z     Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree);
2021-01-31T18:09:07.3310367Z           ^
2021-01-31T18:09:07.3310948Z /LightGBM/src/treelearner/serial_tree_learner.h:78:9: note: overridden virtual function is here
2021-01-31T18:09:07.3311779Z   Tree* Train(const score_t* gradients, const score_t *hessians, bool is_first_tree) override;
2021-01-31T18:09:07.3312283Z         ^
2021-01-31T18:09:07.4910907Z 1 warning generated.
2021-01-31T18:09:07.5046462Z [ 95%] Building CXX object CMakeFiles/_lightgbm.dir/src/c_api.cpp.o
2021-01-31T18:09:25.7544041Z 1 warning generated.
2021-01-31T18:09:25.7707070Z [ 97%] Linking CUDA device code CMakeFiles/_lightgbm.dir/cmake_device_link.o
2021-01-31T18:09:26.0477530Z [100%] Linking CXX shared library ../lib_lightgbm.so
2021-01-31T18:09:26.3151385Z [100%] Built target _lightgbm

else()
PROJECT(lightgbm LANGUAGES C CXX)
endif()
PROJECT(lightgbm LANGUAGES C CXX)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CMAKE_CUDA_HOST_COMPILER should be set before PROJECT (with CUDA language) command but CMAKE_CXX_COMPILER is available after PROJECT command execution.

Once the CUDA language is enabled, the CMAKE_CUDA_HOST_COMPILER variable is read-only and changes to it are undefined behavior.
https://cmake.org/cmake/help/latest/variable/CMAKE_CUDA_HOST_COMPILER.html

And CMake stores path to that default compiler executable in the CMAKE_C_COMPILER variable.
https://stackoverflow.com/a/63944545

@@ -117,6 +113,8 @@ else()
endif(USE_MPI)

if(USE_CUDA)
SET(CMAKE_CUDA_HOST_COMPILER "${CMAKE_CXX_COMPILER}")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested here way to set custom compiler via two lines

set(CMAKE_CUDA_HOST_COMPILER "${CMAKE_CXX_COMPILER}")
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -ccbin ${CMAKE_CXX_COMPILER}")

results in

nvcc fatal : redefinition of argument 'compiler-bindir'

with old CUDA version. So I believe setting only CMAKE_CUDA_HOST_COMPILER is enough:

This maps to the nvcc -ccbin option.
https://cmake.org/cmake/help/latest/variable/CMAKE_CUDA_HOST_COMPILER.html


The following dependencies should be installed before compilation:

- **CUDA** libraries. Please refer to `this detailed guide`_.
- **CUDA** libraries. Please refer to `this detailed guide`_. Pay great attention to the minimum required versions of host compilers listed in the table from that guide and use only recommended versions of compilers.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should re-type this table in our CMakeLists.txt for each supported CUDA version.

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree! We're likely to make a mistake trying to replicate this all in CMakeLists.txt, and for the limited benefit of raising a more informative error message.

Copy link
Collaborator

@guolinke guolinke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks! By the way I do have a laptop with an NVIDIA graphics card and I've been wanting to learn more about CUDA, so if there are ever small tasks I can help on please feel free to assign them to me. My primary focus for the near future will be on the Dask module, but happy to help with the CUDA stuff wherever I can.

@StrikerRUS
Copy link
Collaborator Author

@jameslamb Thank you very much! I think you can start from investigating why Dask works(?) fine on CUDA but fails on OpenCL.

@StrikerRUS StrikerRUS merged commit b8cfaf6 into master Feb 1, 2021
@StrikerRUS StrikerRUS deleted the clang_cuda branch February 1, 2021 11:58
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants