File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 49
49
matrix :
50
50
os : ['ubuntu-20.04']
51
51
python-version : ['3.8', '3.9', '3.10', '3.11']
52
+ pytorch-version : ['2.0.1']
52
53
cuda-version : ['11.8'] # Github runner can't build anything older than 11.8
53
54
54
55
steps :
69
70
run : |
70
71
bash -x .github/workflows/scripts/cuda-install.sh ${{ matrix.cuda-version }} ${{ matrix.os }}
71
72
72
- - name : Install PyTorch-cu ${{ matrix.cuda-version }}
73
+ - name : Install PyTorch ${{ matrix.pytorch-version }} with CUDA ${{ matrix.cuda-version }}
73
74
run : |
74
- bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
75
+ bash -x .github/workflows/scripts/pytorch-install.sh ${{ matrix.python-version }} ${{ matrix.pytorch-version }} ${{ matrix. cuda-version }}
75
76
76
77
- name : Build wheel
77
78
shell : bash
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
python_executable=python$1
4
- cuda_version=$2
4
+ pytorch_version=$2
5
+ cuda_version=$3
5
6
6
7
# Install torch
7
8
$python_executable -m pip install numpy pyyaml scipy ipython mkl mkl-include ninja cython typing pandas typing-extensions dataclasses setuptools && conda clean -ya
8
- $python_executable -m pip install torch -f https://download.pytorch.org/whl/cu${cuda_version// ./ } /torch_stable.html
9
+ $python_executable -m pip install torch== ${pytorch_version} +cu ${cuda_version // . / } --index-url https://download.pytorch.org/whl/cu${cuda_version// ./ }
9
10
10
11
# Print version information
11
12
$python_executable --version
You can’t perform that action at this time.
0 commit comments