-
Notifications
You must be signed in to change notification settings - Fork 4k
GPU build fails for lightgbm target #2126
Copy link
Copy link
Open
Labels
Description
Error message
[ 95%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/tree_learner.cpp.o
[ 96%] Linking CXX executable ../lightgbm
CMakeFiles/lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o: In function `boost::compute::command_queue::command_queue(boost::compute::context const&, boost::compute::device const&, unsigned long)':
/home/travis/build/Microsoft/LightGBM/src/treelearner/gpu_tree_learner.cpp:(.text._ZN5boost7compute13command_queueC2ERKNS0_7contextERKNS0_6deviceEm[_ZN5boost7compute13command_queueC2ERKNS0_7contextERKNS0_6deviceEm]+0xee): undefined reference to `clCreateCommandQueueWithProperties'
CMakeFiles/lightgbm.dir/src/treelearner/gpu_tree_learner.cpp.o: In function `boost::compute::kernel::set_arg_svm_ptr(unsigned long, void*)':
/home/travis/build/Microsoft/LightGBM/src/treelearner/gpu_tree_learner.cpp:(.text._ZN5boost7compute6kernel15set_arg_svm_ptrEmPv[_ZN5boost7compute6kernel15set_arg_svm_ptrEmPv]+0xb): undefined reference to `clSetKernelArgSVMPointer'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../lightgbm] Error 1
make[1]: *** [CMakeFiles/lightgbm.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 98%] Building CXX object CMakeFiles/_lightgbm.dir/src/treelearner/voting_parallel_tree_learner.cpp.o
[100%] Linking CXX shared library ../lib_lightgbm.so
[100%] Built target _lightgbm
make: *** [all] Error 2
Full logs:
- https://travis-ci.org/Microsoft/LightGBM/jobs/523007683,
- https://dev.azure.com/lightgbm-ci/lightgbm-ci/_build/results?buildId=1859&view=logs&jobId=9ce42e5d-f31a-544a-a6de-dc42f8c013ed&taskId=b696def5-78ae-590c-4234-04332342ba2d&lineStart=281&lineEnd=282&colStart=1&colEnd=1.
Reproducible examples
Remove _lightgbm at this line:
If we try to build all targets (_lightgbm and lightgbm), then GPU build fails with the same error as in #458 and #1047.
@huanzhang12 Do you have any ideas why it happens?
Reactions are currently unavailable