This repository was archived by the owner on Jun 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 52
52
echo "VERSION=$version" >> $GITHUB_ENV
53
53
echo "version=$version" >> $GITHUB_OUTPUT
54
54
id: get_version
55
+
56
+ - name : Set torch and cuda version value
57
+ id : set_torch_and_cuda_version
58
+ run : |
59
+ IFS='.' read -r major minor <<< "${{ matrix.torch }}"
60
+ version_value=$((major * 100 + minor))
61
+ echo "TORCH_VERSION=$version_value" >> $GITHUB_OUTPUT
62
+ IFS='.' read -r major minor <<< "${{ matrix.cuda }}"
63
+ version_value=$((major * 100 + minor))
64
+ echo "CUDA_VERSION=$version_value" >> $GITHUB_OUTPUT
65
+
55
66
- name : Build wheel
67
+ env :
68
+ TORCH_VERSION : ${{ steps.set_torch_and_cuda_version.outputs.TORCH_VERSION }}
69
+ CUDA_VERSION : ${{ steps.set_torch_and_cuda_version.outputs.CUDA_VERSION }}
70
+ 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 }}
56
71
run : |
57
72
pushd flashinfer
58
73
docker run --rm -t \
65
80
-e TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST" \
66
81
-e MAX_JOBS=192 \
67
82
--user $(id -u):$(id -g) \
68
- pytorch/manylinux-builder:cuda${{ matrix.cuda }} \
83
+ $BUILDER_IMAGE \
69
84
bash /app/scripts/run-ci-build-wheel.sh
70
85
popd
71
86
timeout-minutes : 30
You can’t perform that action at this time.
0 commit comments