File tree 2 files changed +36
-2
lines changed
2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change 46
46
with :
47
47
submodules : true
48
48
49
+ - name : Set torch and cuda version value
50
+ id : set_torch_and_cuda_version
51
+ run : |
52
+ IFS='.' read -r major minor <<< "${{ matrix.torch }}"
53
+ version_value=$((major * 100 + minor))
54
+ echo "TORCH_VERSION=$version_value" >> $GITHUB_OUTPUT
55
+ IFS='.' read -r major minor <<< "${{ matrix.cuda }}"
56
+ version_value=$((major * 100 + minor))
57
+ echo "CUDA_VERSION=$version_value" >> $GITHUB_OUTPUT
58
+
49
59
- name : Build wheel
60
+ env :
61
+ TORCH_VERSION : ${{ steps.set_torch_and_cuda_version.outputs.TORCH_VERSION }}
62
+ CUDA_VERSION : ${{ steps.set_torch_and_cuda_version.outputs.CUDA_VERSION }}
63
+ BUILDER_IMAGE : ${{ ((steps.set_torch_and_cuda_version.outputs.TORCH_VERSION == 206 && steps.set_torch_and_cuda_version.outputs.CUDA_VERSION >= 1206) || steps.set_torch_and_cuda_version.outputs.TORCH_VERSION > 206) && 'pytorch/manylinux2_28-builder:cuda' || 'pytorch/manylinux-builder:cuda' }}${{ matrix.cuda }}
50
64
run : |
65
+ echo "TORCH_VERSION: $TORCH_VERSION"
66
+ echo "CUDA_VERSION: $CUDA_VERSION"
67
+ echo "BUILDER_IMAGE: $BUILDER_IMAGE"
51
68
chown -R $CI_UID:$CI_GID "$GITHUB_WORKSPACE"
52
69
docker run --rm -t \
53
70
-v "$CI_RUNNER_CACHE_DIR":/ci-cache \
59
76
-e TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST" \
60
77
-e MAX_JOBS=128 \
61
78
--user $CI_UID:$CI_GID \
62
- pytorch/manylinux-builder:cuda${{ matrix.cuda }} \
79
+ $BUILDER_IMAGE \
63
80
bash /app/scripts/run-ci-build-wheel.sh
64
81
timeout-minutes : 120
65
82
- run : du -h dist/*
Original file line number Diff line number Diff line change 31
31
with :
32
32
submodules : true
33
33
34
+ - name : Set torch and cuda version value
35
+ id : set_torch_and_cuda_version
36
+ run : |
37
+ IFS='.' read -r major minor <<< "${{ matrix.torch }}"
38
+ version_value=$((major * 100 + minor))
39
+ echo "TORCH_VERSION=$version_value" >> $GITHUB_OUTPUT
40
+ IFS='.' read -r major minor <<< "${{ matrix.cuda }}"
41
+ version_value=$((major * 100 + minor))
42
+ echo "CUDA_VERSION=$version_value" >> $GITHUB_OUTPUT
43
+
34
44
- name : Build wheel
45
+ env :
46
+ TORCH_VERSION : ${{ steps.set_torch_and_cuda_version.outputs.TORCH_VERSION }}
47
+ CUDA_VERSION : ${{ steps.set_torch_and_cuda_version.outputs.CUDA_VERSION }}
48
+ BUILDER_IMAGE : ${{ ((steps.set_torch_and_cuda_version.outputs.TORCH_VERSION == 206 && steps.set_torch_and_cuda_version.outputs.CUDA_VERSION >= 1206) || steps.set_torch_and_cuda_version.outputs.TORCH_VERSION > 206) && 'pytorch/manylinux2_28-builder:cuda' || 'pytorch/manylinux-builder:cuda' }}${{ matrix.cuda }}
35
49
run : |
50
+ echo "TORCH_VERSION: $TORCH_VERSION"
51
+ echo "CUDA_VERSION: $CUDA_VERSION"
52
+ echo "BUILDER_IMAGE: $BUILDER_IMAGE"
36
53
chown -R $CI_UID:$CI_GID "$GITHUB_WORKSPACE"
37
54
docker run --rm -t \
38
55
-v "$CI_RUNNER_CACHE_DIR":/ci-cache \
45
62
-e TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST" \
46
63
-e MAX_JOBS=128 \
47
64
--user $CI_UID:$CI_GID \
48
- pytorch/manylinux-builder:cuda${{ matrix.cuda }} \
65
+ $BUILDER_IMAGE \
49
66
bash /app/scripts/run-ci-build-wheel.sh
50
67
timeout-minutes : 120
51
68
- run : du -h dist/*
You can’t perform that action at this time.
0 commit comments