Skip to content
This repository was archived by the owner on Jun 8, 2025. It is now read-only.

Commit 7a7816a

Browse files
committed
upd
1 parent ecff7c0 commit 7a7816a

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/nightly-release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,22 @@ jobs:
5252
echo "VERSION=$version" >> $GITHUB_ENV
5353
echo "version=$version" >> $GITHUB_OUTPUT
5454
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+
5566
- 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 }}
5671
run: |
5772
pushd flashinfer
5873
docker run --rm -t \
@@ -65,7 +80,7 @@ jobs:
6580
-e TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST" \
6681
-e MAX_JOBS=192 \
6782
--user $(id -u):$(id -g) \
68-
pytorch/manylinux-builder:cuda${{ matrix.cuda }} \
83+
$BUILDER_IMAGE \
6984
bash /app/scripts/run-ci-build-wheel.sh
7085
popd
7186
timeout-minutes: 30

0 commit comments

Comments
 (0)