Skip to content

Commit

Permalink
install pytorch cpu build if no nvidia-smi command
Browse files Browse the repository at this point in the history
  • Loading branch information
henrysky committed Sep 3, 2024
1 parent b0d5666 commit f58abb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
sudo apt install graphviz
pip install -r requirements.txt
pip install -r requirements-dev.txt
pip install ${{ matrix.BACKEND }}~=${{ matrix.BACKEND_VER }}
if [ -x "$(command -v nvidia-smi)" ] || [ "${BACKEND}" == "tensorflow" ]; then pip install ${{ matrix.BACKEND }}~=${{ matrix.BACKEND_VER }}; else pip install torch~=${{ matrix.BACKEND_VER }} --index-url https://download.pytorch.org/whl/cpu; fi
pip install .
- name: Cache test data
uses: actions/cache@v4
Expand Down

0 comments on commit f58abb3

Please sign in to comment.