Add cupy to Windows CI (#5797)
* Add cupy to Windows CI * Update Jenkinsfile-win64 Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu> * Update Jenkinsfile-win64 Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu> * Update tests/python-gpu/test_gpu_prediction.py Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu> Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
parent
38ee514787
commit
abdf894fcf
@ -137,8 +137,9 @@ def TestWin64GPU(args) {
|
|||||||
conda activate && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i"
|
conda activate && for /R %%i in (python-package\\dist\\*.whl) DO python -m pip install "%%i"
|
||||||
"""
|
"""
|
||||||
echo "Installing Python dependencies..."
|
echo "Installing Python dependencies..."
|
||||||
|
def cuda_short_ver = args.cuda_target.replaceAll('_', '')
|
||||||
bat """
|
bat """
|
||||||
conda activate && conda install -y hypothesis && conda upgrade scikit-learn pandas numpy hypothesis
|
conda activate && conda install -y hypothesis && conda upgrade scikit-learn pandas numpy hypothesis && python -m pip install cupy-${cuda_short_ver}
|
||||||
"""
|
"""
|
||||||
echo "Running Python tests..."
|
echo "Running Python tests..."
|
||||||
bat """
|
bat """
|
||||||
|
|||||||
@ -147,6 +147,9 @@ class TestGPUPredict(unittest.TestCase):
|
|||||||
copied_predt = cp.array(booster.predict(d))
|
copied_predt = cp.array(booster.predict(d))
|
||||||
return cp.all(copied_predt == inplace_predt)
|
return cp.all(copied_predt == inplace_predt)
|
||||||
|
|
||||||
|
# Don't do this on Windows, see issue #5793
|
||||||
|
if sys.platform.startswith("win"):
|
||||||
|
pytest.skip('Multi-threaded in-place prediction with cuPy is not working on Windows')
|
||||||
for i in range(10):
|
for i in range(10):
|
||||||
run_threaded_predict(X, rows, predict_dense)
|
run_threaded_predict(X, rows, predict_dense)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user