Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
befaa1bb
Commit
befaa1bb
authored
Jun 13, 2018
by
Nikita Titov
Committed by
Guolin Ke
Jun 13, 2018
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
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
.travis/test.sh
.travis/test.sh
+6
-6
docs/GPU-Targets.rst
docs/GPU-Targets.rst
+1
-1
No files found.
.travis/test.sh
View file @
befaa1bb
...
@@ -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
...
...
docs/GPU-Targets.rst
View file @
befaa1bb
...
@@ -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.13
5
-GA-linux64.tar.bz2
.. _our GitHub repo: https://github.com/Microsoft/LightGBM/releases/download/v2.0.12/AMD-APP-SDKInstaller-v3.0.130.13
6
-GA-linux64.tar.bz2
.. _NVIDIA CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
.. _NVIDIA CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment