Skip to content

Commit

Permalink
Change Torch version for GPU tests (#4080)
Browse files Browse the repository at this point in the history
* Change gpu version

* Trigger CI

* Try remove 3.9 3.10

* Update cuda and add back 3.9 and 3.10

* pip install lit first

* lit no cache pip

* Setup tools

* Paths update

* Clean up

* Update

* Missing closure

* No cache dir

* Purge cache

* Formatting
  • Loading branch information
rmoyard authored May 3, 2023
1 parent 9dd3048 commit c3206fc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/tests-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

env:
TORCH_VERSION: 1.13.0
TORCH_VERSION: 2.0.0

jobs:
gpu-tests:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Setup Python virtual environment
id: setup_venv
env:
VENV_NAME: venv_${{ steps.setup_python.outputs.python-version }}_${{ github.sha }}
VENV_NAME: ${{ github.workspace }}/venv_${{ steps.setup_python.outputs.python-version }}_${{ github.sha }}
run: |
# Clear any pre-existing venvs
rm -rf venv_*
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Install Torch
run: |
python -m pip install torch==${{ env.TORCH_VERSION }} -f https://download.pytorch.org/whl/cu113/torch_stable.html
python -m pip install --no-cache-dir torch==${{ env.TORCH_VERSION }} -f https://download.pytorch.org/whl/cu118/torch_stable.html
- name: Install PennyLane
run: |
Expand All @@ -120,3 +120,4 @@ jobs:
rm -rf .git
rm -rf .gitignore
rm -rf .github
pip cache purge

0 comments on commit c3206fc

Please sign in to comment.