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
314342ce
Commit
314342ce
authored
Jan 03, 2018
by
Nikita Titov
Committed by
Guolin Ke
Jan 03, 2018
Browse files
[ci] boost_root and opencl_include_dir as pip options (#1161)
* boost_root as pip option * opencl_include_dir as pip option
parent
28cdf612
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
.travis/test.sh
.travis/test.sh
+1
-3
No files found.
.travis/test.sh
View file @
314342ce
...
@@ -86,11 +86,9 @@ fi
...
@@ -86,11 +86,9 @@ fi
if
[[
${
TASK
}
==
"gpu"
]]
;
then
if
[[
${
TASK
}
==
"gpu"
]]
;
then
conda
install
--yes
-c
conda-forge
boost
=
1.63.0
conda
install
--yes
-c
conda-forge
boost
=
1.63.0
if
[[
${
METHOD
}
==
"pip"
]]
;
then
if
[[
${
METHOD
}
==
"pip"
]]
;
then
export
PATH
=
"
$AMDAPPSDK
/include/:
$PATH
"
export
BOOST_ROOT
=
"
$HOME
/miniconda/envs/test-env/"
sed
-i
's/const std::string kDefaultDevice = "cpu";/const std::string kDefaultDevice = "gpu";/'
../include/LightGBM/config.h
sed
-i
's/const std::string kDefaultDevice = "cpu";/const std::string kDefaultDevice = "gpu";/'
../include/LightGBM/config.h
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
||
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
cd
$TRAVIS_BUILD_DIR
&&
pytest tests/python_package_test
||
exit
-1
cd
$TRAVIS_BUILD_DIR
&&
pytest tests/python_package_test
||
exit
-1
exit
0
exit
0
fi
fi
...
...
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