Install LightGBM

Yongsang Yoon·2022년 5월 16일
0

Linux

목록 보기
6/7

Light GBM GPU 설치하자.

Preparation

sudo apt update
sudo apt-get install --no-install-recommends git cmake build-essential libboost-dev libboost-system-dev libboost-filesystem-dev
sudo apt install cmake

그리고 CUDA 11.0 이상의 버전이 설치되어 있어야 한다고 함.

Building

git clone --recursive https://github.com/microsoft/LightGBM
cd LightGBM
mkdir build
cd build
cmake -DUSE_GPU=1 ..
make -j6

TroubleShooting

Error Target "lightgbm_objs" of type OBJECT_LIBRARY may not be linked into

cmake 버전이 안맞아서 그런다. 아래 링크에서 3.22버전으로 설치해서 하면된다.
https://cmake.org/download/

Reference

profile
I'm a student

0개의 댓글