Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikerRUS authored Jan 19, 2025
1 parent a2d5f02 commit e0b7c4a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 19 deletions.
27 changes: 9 additions & 18 deletions .ci/setup.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
#!/bin/bash


echo 224
echo 100

ARCH=$(uname -m)


export SKBUILD_LOGGING_LEVEL="INFO"

brew install libomp # open-mpi
# brew install libomp # open-mpi
# export CXX=g++-14 CC=gcc-14

# sudo apt-get update
# sudo apt-get install --no-install-recommends -y \
# libboost1.74-dev \
# libboost-filesystem1.74-dev
# ocl-icd-opencl-dev
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
libboost1.74-dev \
libboost-filesystem1.74-dev \
ocl-icd-opencl-dev
# pocl-opencl-icd

# mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd
mkdir -p /etc/OpenCL/vendors && echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd

curl \
-sL \
Expand All @@ -35,16 +35,7 @@ pip install pytest numpy pandas scipy scikit-learn psutil cloudpickle scikit-bui
cd $GITHUB_WORKSPACE/.ci
git clone --recursive -b docs/install-py https://github.com/microsoft/LightGBM.git
cd LightGBM
sh ./build-python.sh bdist_wheel --no-isolation

cd ./dist
pip install \
--force-reinstall \
--no-cache-dir \
--no-deps \
--find-links=. \
lightgbm-4.5.0.99-py3-none-macosx_13_0_x86_64.whl
cd ../
sh ./build-python.sh install --gpu


pytest $GITHUB_WORKSPACE/tests/python_package_test || exit 1
2 changes: 1 addition & 1 deletion .github/workflows/python_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: false
matrix:
include:
- os: macos-13
- os: ubuntu-latest
task: regular
python_version: '3.10'

Expand Down
2 changes: 2 additions & 0 deletions examples/binary_classification/train.conf
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ machine_list_file = mlist.txt

# force splits
# forced_splits = forced_splits.json

device = gpu
2 changes: 2 additions & 0 deletions examples/binary_classification/train_linear.conf
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,5 @@ machine_list_file = mlist.txt

# force splits
# forced_splits = forced_splits.json

device = gpu
2 changes: 2 additions & 0 deletions examples/regression/train.conf
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,5 @@ local_listen_port = 12400

# machines list file for distributed training, alias: mlist
machine_list_file = mlist.txt

device = gpu

0 comments on commit e0b7c4a

Please sign in to comment.