Last active
August 3, 2017 19:55
-
-
Save kdoran/5b4bbb936bdbeffc8c4d7ab6ab3ffd12 to your computer and use it in GitHub Desktop.
Installing lightgbm on Ubuntu 16 Xenial with GPU Support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get update | |
apt-get install -y python-pip nginx npm nodejs-legacy supervisor opencl-headers libboost-all-dev libboost-dev libboost-system-dev libboost-filesystem-dev ocl-icd-libopencl1 ocl-icd-opencl-dev git | |
apt-get install software-properties-common | |
add-apt-repository ppa:george-edison55/cmake-3.x | |
apt-get update | |
export BOOST_ROOT=/usr/include/boost | |
sudo apt-get install cmake | |
# this is where it gets ugly, tried: sudo add-apt-repository ppa:kylelutz/compute; sudo apt-get install boost-compute; with no dice. | |
# kept getting: boost/compute/core.hpp: No such file or directory | |
cd /tmp/ | |
git clone git://github.com/kylelutz/compute.git | |
mv /tmp/compute/include/boost/compute /usr/include/boost | |
mv /tmp/compute/include/boost/compute.hpp /usr/include/boost/ | |
pip install --upgrade pip | |
pip install virtualenv | |
virtualenv -p python3 ~/venv | |
. ~/venv/bin/activate | |
pip install lightgbm --install-option=--gpu |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment