-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (60 loc) · 2.47 KB
/
win-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Win Test
on: push
jobs:
build-wheels:
name: Build Wheels
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
pytorch-version: [1.9, '1.10', 1.11, 1.12]
cuda-version: [10.2, 11.3, 11.6]
include:
- cuda-version: 10.2
cuda-minor-version: 89 #https://developer.download.nvidia.com/compute/cuda/10.2/Prod/network_installers/cuda_10.2.89_win10_network.exe
cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5+PTX"
gcc-version: 8
- cuda-version: 11.3
cuda-minor-version: 0 #https://developer.download.nvidia.com/compute/cuda/11.3.0/network_installers/cuda_11.3.0_win10_network.exe
cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX"
gcc-version: 10
- cuda-version: 11.6
cuda-minor-version: 0 #https://developer.download.nvidia.com/compute/cuda/11.6.0/network_installers/cuda_11.6.0_windows_network.exe
cuda-arch-list: "3.7 5.0 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6+PTX"
gcc-version: 10
exclude:
- python-version: 3.6
pytorch-version: 1.11
- python-version: 3.6
pytorch-version: 1.12
- pytorch-version: 1.9
cuda-version: 11.3
- pytorch-version: 1.9
cuda-version: 11.6
- pytorch-version: '1.10'
cuda-version: 11.6
- pytorch-version: 1.11
cuda-version: 11.6
steps:
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Install Cuda
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '${{ matrix.cuda-version }}.${{ matrix.cuda-minor-version }}'
- name: Install Pytorch
run: |
FULL_PYTORCH_VERSION=$(python -m pip index versions torch -f https://download.pytorch.org/whl/torch_stable.html | grep -o ${PYTORCH_VERSION}.[0-9]+cu${CUDA_VERSION//.} | head -n 1); \
python -m pip install torch==${FULL_PYTORCH_VERSION} -f https://download.pytorch.org/whl/torch_stable.html;
python -m pip install numpy wheel ninja
- name: Checkout Repository
uses: actions/checkout@v2
- name: Build Wheels
working-directory: test_extension
run: python setup.py install