Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bandaid for rapids-colab.sh script #236

Merged
merged 1 commit into from
Nov 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions utils/rapids-colab.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

set -eu

RAPIDS_VERSION="${1:-0.11}"
XGBOOST_VERSION="${2:-1.0.0_SNAPSHOT}"
RAPIDS_VERSION="${1:-0.10}"

wget -nc https://github.com/rapidsai/notebooks-contrib/raw/master/utils/env-check.py
echo "Checking for GPU type:"
Expand All @@ -23,13 +22,28 @@ if [ ! -f Miniconda3-4.5.4-Linux-x86_64.sh ]; then
echo "Installing RAPIDS $RAPIDS_VERSION packages"
echo "Please standby, this will take a few minutes..."
# install RAPIDS packages
conda install -y --prefix /usr/local \
-c rapidsai-nightly/label/xgboost -c rapidsai-nightly -c nvidia -c conda-forge \
python=3.6 cudatoolkit=10.1 \
cudf=$RAPIDS_VERSION cuml cugraph gcsfs pynvml \
dask-cudf

pip install https://xgboost-ci.net/job/xgboost/job/master/lastSuccessfulBuild/artifact/python-package/dist/xgboost-$XGBOOST_VERSION-py2.py3-none-any.whl

if [ $RAPIDS_VERSION == "0.11" ] ;then
echo "Installing RAPIDS $RAPIDS_VERSION packages from the nightly release channel"
echo "Please standby, this will take a few minutes..."
# install RAPIDS packages
conda install -y --prefix /usr/local \
-c rapidsai-nightly/label/xgboost -c rapidsai-nightly -c nvidia -c conda-forge \
python=3.6 cudatoolkit=10.1 \
cudf=$RAPIDS_VERSION cuml cugraph gcsfs pynvml \
dask-cudf \
xgboost
else
echo "Installing RAPIDS $RAPIDS_VERSION packages from the stable release channel"
echo "Please standby, this will take a few minutes..."
# install RAPIDS packages
conda install -y --prefix /usr/local \
-c rapidsai/label/xgboost -c rapidsai -c nvidia -c conda-forge \
python=3.6 cudatoolkit=10.1 \
cudf=$RAPIDS_VERSION cuml cugraph gcsfs pynvml \
dask-cudf \
xgboost
fi

echo "Copying shared object files to /usr/lib"
# copy .so files to /usr/lib, where Colab's Python looks for libs
Expand Down