FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

create a libnvidia-opencl.so.1 file after install lightgbm · JasonYangCode/docker-python@b2737cc · GitHub

Commit b2737cc

Browse files
committed
create a libnvidia-opencl.so.1 file after install lightgbm
1 parent 4cd57a8 commit b2737cc

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎gpu.Dockerfile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ RUN pip uninstall -y lightgbm && \
6161
make -j$(nproc) && \
6262
cd /usr/local/src/LightGBM/python-package && \
6363
python setup.py install --precompile && \
64+
mkdir -p /etc/OpenCL/vendors && \
65+
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd && \
6466
/tmp/clean-layer.sh
6567

6668
# Install JAX

‎tests/test_lightgbm.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,15 @@ def test_gpu(self):
4646
lgb_eval = lgb.Dataset(iris.data[100:], iris.target[100:], reference=lgb_train)
4747

4848
params = {
49-
'task': 'train',
5049
'boosting_type': 'gbdt',
5150
'objective': 'regression',
52-
'metric': {'l2', 'auc'},
51+
'metric': 'auc',
5352
'num_leaves': 31,
5453
'learning_rate': 0.05,
5554
'feature_fraction': 0.9,
5655
'bagging_fraction': 0.8,
5756
'bagging_freq': 5,
58-
'verbose': 0,
57+
'verbose': 1,
5958
'device': 'gpu'
6059
}
6160

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL