Skip to content

Commit

Permalink
Test commenting out blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharras committed Jan 12, 2024
1 parent bff67b4 commit e7bfb6b
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/test_cpu_benchmarks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,44 +104,44 @@ jobs:
retention-days: 14


run_benchmarks_on_cpu:
name: Run benchmarks
needs: [build_scikit_learn, build_kmeans_dpcpp]
runs-on: ubuntu-latest
container: jjerphan/numba_dpex_dev:latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: download scikit-learn wheel
uses: actions/download-artifact@v3
with:
name: binaries

# TODO: instead of installing all dependencies of all solvers in the same
# environment, might be more cautious to have one solver per environment ?
- name: install all dependencies
run: |
git clone https://github.com/soda-inria/sklearn-numba-dpex.git -b main
cd sklearn-numba-dpex
git checkout $_SKLEARN_NUMBA_DPEX_COMMIT
cd ../
git clone https://github.com/soda-inria/sklearn-pytorch-engine.git -b main
cd sklearn-pytorch-engine
git checkout $_SKLEARN_PYTORCH_ENGINE_COMMIT
cd ../
# TODO: it seems that non-editable install of sklearn-numba-dpex doesn't work ?
# Fix and update the install command here to avoid having to git clone manually
pip install ./scikit-learn/dist/*.whl scikit-learn-intelex -e ./sklearn-numba-dpex/ -e ./sklearn-pytorch-engine benchopt${_BENCHOPT_VERSION}
pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Check oneapi default device
run: python -c "import dpctl; dpctl.select_default_device().print_device_info()"

- name: Run benchmarks
run: |
cd benchmarks/kmeans
PYTHONPATH=$PYTHONPATH:$(realpath ../../kmeans_dpcpp/) benchopt run --no-plot -l -d Simulated_correlated_data[n_samples=1000,n_features=14]
cd ../pca
benchopt run --no-plot -l -d Simulated_correlated_data[n_samples=100,n_features=100]
# run_benchmarks_on_cpu:
# name: Run benchmarks
# needs: [build_scikit_learn, build_kmeans_dpcpp]
# runs-on: ubuntu-latest
# container: jjerphan/numba_dpex_dev:latest

# steps:
# - name: Checkout code
# uses: actions/checkout@v3

# - name: download scikit-learn wheel
# uses: actions/download-artifact@v3
# with:
# name: binaries

# # TODO: instead of installing all dependencies of all solvers in the same
# # environment, might be more cautious to have one solver per environment ?
# - name: install all dependencies
# run: |
# git clone https://github.com/soda-inria/sklearn-numba-dpex.git -b main
# cd sklearn-numba-dpex
# git checkout $_SKLEARN_NUMBA_DPEX_COMMIT
# cd ../
# git clone https://github.com/soda-inria/sklearn-pytorch-engine.git -b main
# cd sklearn-pytorch-engine
# git checkout $_SKLEARN_PYTORCH_ENGINE_COMMIT
# cd ../
# # TODO: it seems that non-editable install of sklearn-numba-dpex doesn't work ?
# # Fix and update the install command here to avoid having to git clone manually
# pip install ./scikit-learn/dist/*.whl scikit-learn-intelex -e ./sklearn-numba-dpex/ -e ./sklearn-pytorch-engine benchopt${_BENCHOPT_VERSION}
# pip install torch --index-url https://download.pytorch.org/whl/cpu

# - name: Check oneapi default device
# run: python -c "import dpctl; dpctl.select_default_device().print_device_info()"

# - name: Run benchmarks
# run: |
# cd benchmarks/kmeans
# PYTHONPATH=$PYTHONPATH:$(realpath ../../kmeans_dpcpp/) benchopt run --no-plot -l -d Simulated_correlated_data[n_samples=1000,n_features=14]
# cd ../pca
# benchopt run --no-plot -l -d Simulated_correlated_data[n_samples=100,n_features=100]

0 comments on commit e7bfb6b

Please sign in to comment.