Skip to content

Commit

Permalink
Add cuda102 docker support and updated gquant version (#84)
Browse files Browse the repository at this point in the history
updated docker build and version number
  • Loading branch information
jbaron authored May 22, 2020
1 parent 90494fb commit ba8bd80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ dist/
build/
gquant.egg-info/
*.swp
docker/Dockerfile.Rapids
docker/gQuant
18 changes: 11 additions & 7 deletions docker/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ esac
echo -e "\nPlease, select your cuda version:\n" \
" - '1' for cuda 9.2\n" \
" - '2' for cuda 10.0\n" \
" - '3' for cuda 10.1.2"
" - '3' for cuda 10.1.2\n" \
" - '4' for cuda 10.2"

read -p "Enter your option and hit return [1]-3: " CUDA_VERSION
read -p "Enter your option and hit return [1]-4: " CUDA_VERSION

RAPIDS_VERSION="0.13"

Expand All @@ -44,6 +45,10 @@ case $CUDA_VERSION in
echo "cuda 10.1.2 selected."
CONTAINER_VER='10.1'
;;
4)
echo "cuda 10.2 selected."
CONTAINER_VER='10.2'
;;
*)
echo "cuda 9.2 selected."
CONTAINER_VER='9.2'
Expand All @@ -60,6 +65,7 @@ cp -r ../task_example ./gQuant
cp ../setup.cfg ./gQuant
cp ../setup.py ./gQuant
cp ../LICENSE ./gQuant
cp ../download_data.sh ./gQuant
rsync -av --progress ../notebooks ./gQuant --exclude data --exclude .cache --exclude many-small --exclude storage --exclude dask-worker-space --exclude __pycache__

gquant_ver=$(grep version gQuant/setup.py | sed "s/^.*version='\([^;]*\)'.*/\1/")
Expand All @@ -84,15 +90,13 @@ RUN source activate rapids \
&& cd /rapids/gQuant \
&& pip install .
RUN source activate rapids \
&& conda install -y -c conda-forge dask-labextension recommonmark numpydoc sphinx_rtd_theme pudb \
python-graphviz bqplot=0.11.5 nodejs=11.11.0 jupyterlab=0.35.4 ipywidgets=7.4.2 pytables mkl numexpr \
pydot
&& conda install -y -c conda-forge python-graphviz bqplot nodejs ipywidgets pytables mkl numexpr pydot
#
# required set up
#
RUN source activate rapids \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager@0.38.1 --no-build \
&& jupyter labextension install bqplot@0.4.5 --no-build \
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build \
&& jupyter labextension install bqplot --no-build \
&& mkdir /.local /.jupyter /.config /.cupy \
&& chmod 777 /.local /.jupyter /.config /.cupy
RUN source activate rapids \
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='gquant',
version='0.3',
version='0.4',
description='gquant - RAPIDS Financial Services Algorithms',
author='NVIDIA Corporation',
packages=find_packages(include=['gquant', 'gquant.*']),
Expand Down

0 comments on commit ba8bd80

Please sign in to comment.