"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "6a792d16b4a6b620653a7ef6b22ffd174886d291"
Commit befaa1bb authored by Nikita Titov's avatar Nikita Titov Committed by Guolin Ke
Browse files

[docs][ci] updated link to AMD APP SDK in docs and Travis cleanup (#1447)

* updated link to AMD APP SDK

* less cd commands
parent 92a45beb
...@@ -19,9 +19,9 @@ if [[ $TASK == "check-docs" ]]; then ...@@ -19,9 +19,9 @@ if [[ $TASK == "check-docs" ]]; then
fi fi
conda install sphinx "sphinx_rtd_theme>=0.3" # html5validator conda install sphinx "sphinx_rtd_theme>=0.3" # html5validator
pip install rstcheck pip install rstcheck
cd python-package cd $TRAVIS_BUILD_DIR/python-package
rstcheck --report warning `find . -type f -name "*.rst"` || exit -1 rstcheck --report warning `find . -type f -name "*.rst"` || exit -1
cd ../docs cd $TRAVIS_BUILD_DIR/docs
rstcheck --report warning --ignore-directives=autoclass,autofunction `find . -type f -name "*.rst"` || exit -1 rstcheck --report warning --ignore-directives=autoclass,autofunction `find . -type f -name "*.rst"` || exit -1
make html || exit -1 make html || exit -1
find ./_build/html/ -type f -name '*.html' -exec \ find ./_build/html/ -type f -name '*.html' -exec \
...@@ -52,7 +52,7 @@ conda install numpy nose scipy scikit-learn pandas matplotlib pytest ...@@ -52,7 +52,7 @@ conda install numpy nose scipy scikit-learn pandas matplotlib pytest
if [[ $TASK == "sdist" ]]; then if [[ $TASK == "sdist" ]]; then
cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1 cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1
cd $TRAVIS_BUILD_DIR/python-package/dist && pip install lightgbm-$LGB_VER.tar.gz -v || exit -1 pip install $TRAVIS_BUILD_DIR/python-package/dist/lightgbm-$LGB_VER.tar.gz -v || exit -1
pytest $TRAVIS_BUILD_DIR/tests/python_package_test || exit -1 pytest $TRAVIS_BUILD_DIR/tests/python_package_test || exit -1
exit 0 exit 0
elif [[ $TASK == "bdist" ]]; then elif [[ $TASK == "bdist" ]]; then
...@@ -73,7 +73,7 @@ if [[ $TASK == "gpu" ]]; then ...@@ -73,7 +73,7 @@ if [[ $TASK == "gpu" ]]; then
grep -q 'std::string device_type = "gpu"' $TRAVIS_BUILD_DIR/include/LightGBM/config.h || exit -1 # make sure that changes were really done grep -q 'std::string device_type = "gpu"' $TRAVIS_BUILD_DIR/include/LightGBM/config.h || exit -1 # make sure that changes were really done
if [[ $METHOD == "pip" ]]; then if [[ $METHOD == "pip" ]]; then
cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1 cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1
cd $TRAVIS_BUILD_DIR/python-package/dist && pip install lightgbm-$LGB_VER.tar.gz -v --install-option=--gpu --install-option="--boost-root=$HOME/miniconda/envs/test-env/" --install-option="--opencl-include-dir=$AMDAPPSDK/include/" || exit -1 pip install $TRAVIS_BUILD_DIR/python-package/dist/lightgbm-$LGB_VER.tar.gz -v --install-option=--gpu --install-option="--boost-root=$HOME/miniconda/envs/test-env/" --install-option="--opencl-include-dir=$AMDAPPSDK/include/" || exit -1
pytest $TRAVIS_BUILD_DIR/tests/python_package_test || exit -1 pytest $TRAVIS_BUILD_DIR/tests/python_package_test || exit -1
exit 0 exit 0
fi fi
...@@ -83,7 +83,7 @@ mkdir build && cd build ...@@ -83,7 +83,7 @@ mkdir build && cd build
if [[ $TASK == "mpi" ]]; then if [[ $TASK == "mpi" ]]; then
cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1 cd $TRAVIS_BUILD_DIR/python-package && python setup.py sdist || exit -1
cd $TRAVIS_BUILD_DIR/python-package/dist && pip install lightgbm-$LGB_VER.tar.gz -v --install-option=--mpi || exit -1 pip install $TRAVIS_BUILD_DIR/python-package/dist/lightgbm-$LGB_VER.tar.gz -v --install-option=--mpi || exit -1
cd $TRAVIS_BUILD_DIR/build cd $TRAVIS_BUILD_DIR/build
cmake -DUSE_MPI=ON .. cmake -DUSE_MPI=ON ..
elif [[ $TASK == "gpu" ]]; then elif [[ $TASK == "gpu" ]]; then
...@@ -95,7 +95,7 @@ fi ...@@ -95,7 +95,7 @@ fi
make _lightgbm || exit -1 make _lightgbm || exit -1
cd $TRAVIS_BUILD_DIR/python-package && python setup.py install --precompile || exit -1 cd $TRAVIS_BUILD_DIR/python-package && python setup.py install --precompile || exit -1
cd $TRAVIS_BUILD_DIR && pytest . || exit -1 pytest $TRAVIS_BUILD_DIR || exit -1
if [[ $TASK == "regular" ]]; then if [[ $TASK == "regular" ]]; then
conda install python-graphviz conda install python-graphviz
......
...@@ -287,7 +287,7 @@ Keep in mind that using the integrated graphics card is not directly possible wi ...@@ -287,7 +287,7 @@ Keep in mind that using the integrated graphics card is not directly possible wi
.. _Intel SDK for OpenCL: https://software.intel.com/en-us/articles/opencl-drivers .. _Intel SDK for OpenCL: https://software.intel.com/en-us/articles/opencl-drivers
.. _our GitHub repo: https://github.com/Microsoft/LightGBM/releases/download/v2.0.12/AMD-APP-SDKInstaller-v3.0.130.135-GA-linux64.tar.bz2 .. _our GitHub repo: https://github.com/Microsoft/LightGBM/releases/download/v2.0.12/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
.. _NVIDIA CUDA Toolkit: https://developer.nvidia.com/cuda-downloads .. _NVIDIA CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment