Skip to content

[GPU] [C++] building with Boost 1.86+ fails #6786

@nipnipj

Description

@nipnipj

I'm using Archlinux and I'm trying to use the following command lines to install lightgbm in R.
I already installed opencl-amd from AUR.

git clone --recursive https://github.com/microsoft/LightGBM
cd LightGBM
Rscript build_r.R --use-gpu --no-build-vignettes

Then I get the following error message

-- Looking for CL_VERSION_3_0
-- Looking for CL_VERSION_3_0 - not found
-- Looking for CL_VERSION_2_2
-- Looking for CL_VERSION_2_2 - not found
-- Looking for CL_VERSION_2_1
-- Looking for CL_VERSION_2_1 - not found
-- Looking for CL_VERSION_2_0
-- Looking for CL_VERSION_2_0 - not found
-- Looking for CL_VERSION_1_2
-- Looking for CL_VERSION_1_2 - not found
-- Looking for CL_VERSION_1_1
-- Looking for CL_VERSION_1_1 - not found
-- Looking for CL_VERSION_1_0
-- Looking for CL_VERSION_1_0 - not found
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find OpenCL (missing: OpenCL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindOpenCL.cmake:177 (find_package_handle_standard_args)
  CMakeLists.txt:190 (find_package)

They output of clinfo --list is:

Platform #0: Intel(R) OpenCL
 `-- Device #0: Intel(R) Core(TM) i5-10600K CPU @ 4.10GHz
Platform #1: rusticl
 `-- Device #0: AMD Radeon RX 6650 XT (radeonsi, navi23, LLVM 19.1.6, DRM 3.59)
Platform #2: AMD Accelerated Parallel Processing
 `-- Device #0: gfx1032

I'm wodering whether there is a way to indicate the gpu platform and device to this Rscript build_r.R and try to build LGBM. Or what's the correct way to build LGBM in R with gpu support when using an AMD gpu.

On other applications I can indicate what gpu platform and device I want to use. Thus I can confirm the the GPU is working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggpu (OpenCL)Issue is related to the OpenCL-based GPU variant.r-package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions