Skip to content

[GPU] [AMD] [R-package] Trying to install. #6876

@nipnipj

Description

@nipnipj

Trying to install with Rscript build_r.R --use-gpu --no-build-vignettes results in

[ 67%] Building CXX object CMakeFiles/lightgbm_objs.dir/src/treelearner/data_parallel_tree_learner.cpp.o
In file included from /usr/include/CL/cl.h:20,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/cl.hpp:19,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/config.hpp:16,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/buffer.hpp:14,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/core.hpp:18,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/src/treelearner/gpu_tree_learner.h:33,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/src/treelearner/parallel_tree_learner.h:15,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/src/treelearner/data_parallel_tree_learner.cpp:9:
/usr/include/CL/cl_version.h:22:104: note: ‘#pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)’
   22 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 300 (OpenCL 3.0)")
      |                                                                                                        ^
In file included from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/program.hpp:35,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/kernel.hpp:24,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/memory_object.hpp:16,
                 from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/buffer.hpp:17:
/tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/detail/sha1.hpp: In member function ‘boost::compute::detail::sha1::operator std::string()’:
/tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/detail/sha1.hpp:41:26: error: cannot convert ‘unsigned int [5]’ to ‘unsigned char (&)[20]’
   41 |             h.get_digest(digest);
      |                          ^~~~~~
      |                          |
      |                          unsigned int [5]
In file included from /tmp/RtmpZ97d0s/R.INSTALL4fba378ec539/lightgbm/src/external_libs/compute/include/boost/compute/detail/sha1.hpp:18:
/usr/include/boost/uuid/detail/sha1.hpp:179:43: note:   initializing argument 1 of ‘void boost::uuids::detail::sha1::get_digest(unsigned char (&)[20])’
  179 | inline void sha1::get_digest(digest_type& digest)
      |                              ~~~~~~~~~~~~~^~~~~~
make[3]: *** [CMakeFiles/lightgbm_objs.dir/build.make:415: CMakeFiles/lightgbm_objs.dir/src/treelearner/data_parallel_tree_learner.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:93: CMakeFiles/lightgbm_objs.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:165: CMakeFiles/_lightgbm.dir/rule] Error 2
make: *** [Makefile:195: _lightgbm] Error 2
Error in .run_shell_command(build_cmd, build_args) : 
  Command failed with exit code: 2
* removing ‘/home/cuysaurus/R/x86_64-pc-linux-gnu-library/4.4/lightgbm’
Error in .run_shell_command(install_cmd, install_args) : 
  Command failed with exit code: 1
Execution halted

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions