Skip to content

Commit 5b6e9a7

Browse files
committed
All all_libs.yaml wrt torch
1 parent a735a2b commit 5b6e9a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/all_libs.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ jobs:
106106
LD_LIBRARY_PATH: ${{ env.MPI_PATH }}/lib:${{ env.LD_LIBRARY_PATH }}
107107
shell: bash
108108
run: |
109-
pip install numpy pytest cupy-cuda${{ steps.config.outputs.cuda_major }}x cuquantum-cu${{ steps.config.outputs.cuda_major }} torch lightning ml_collections mpi4py transformers quimb opt_einsum torch nvidia-cublas cuquantum-python-cu${{ steps.config.outputs.cuda_major }}==25.09
109+
# Install the correct torch first.
110+
cuda_no_dot=$(echo ${{ matrix.cuda_version }} | sed 's/\.//')
111+
pip install torch==2.9.0 --index-url https://download.pytorch.org/whl/cu${cuda_no_dot}
112+
pip install numpy pytest cupy-cuda${{ steps.config.outputs.cuda_major }}x cuquantum-cu${{ steps.config.outputs.cuda_major }} lightning ml_collections mpi4py transformers quimb opt_einsum nvidia-cublas cuquantum-python-cu${{ steps.config.outputs.cuda_major }}==25.09
110113
# The following tests are needed for docs/sphinx/examples/qec/python/tensor_network_decoder.py.
111114
if [ "$(uname -m)" == "x86_64" ]; then
112115
# Stim is not currently available on manylinux ARM wheels, so only

0 commit comments

Comments
 (0)