Skip to content

Commit a52f90e

Browse files
committed
fix syntax
1 parent cb4f3da commit a52f90e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/release-flashinfer-aot-modules-wheel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,17 @@ jobs:
7979
- name: Build wheel in container
8080
env:
8181
DOCKER_IMAGE: ${{ matrix.arch == 'aarch64' && format('pytorch/manylinux2_28_aarch64-builder:cuda{0}', matrix.cuda) || format('pytorch/manylinux2_28-builder:cuda{0}', matrix.cuda) }}
82+
CUDA_MAJOR: ${{ matrix.cuda.split('.')[0] }}
83+
CUDA_MINOR: ${{ matrix.cuda.split('.')[1] }}
8284
run: |
8385
chown -R $CI_UID:$CI_GID ${{ github.workspace }}
8486
8587
# Run the build script inside the container with proper mounts
8688
docker run --rm \
8789
-v ${{ github.workspace }}:/workspace \
8890
-e CUDA_VERSION="${{ matrix.cuda }}" \
91+
-e CUDA_MAJOR="${{ matrix.cuda.split('.')[0] }}" \
92+
-e CUDA_MINOR="${{ matrix.cuda.split('.')[1] }}" \
8993
-e ARCH="${{ matrix.arch }}" \
9094
-e FLASHINFER_CUDA_ARCH_LIST="${FLASHINFER_CUDA_ARCH_LIST}" \
9195
--user $CI_UID:$CI_GID \

scripts/build_flashinfer_aot_modules_whl.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ echo "=========================================="
1010

1111
# Display build environment info
1212
echo "CUDA Version: ${CUDA_VERSION}"
13-
echo "Architecture: ${ARCH}"
13+
echo "CPU Architecture: ${ARCH}"
14+
echo "CUDA Major: ${CUDA_MAJOR}"
15+
echo "CUDA Minor: ${CUDA_MINOR}"
1416
echo "CUDA Architectures: ${FLASHINFER_CUDA_ARCH_LIST}"
1517
echo "Working directory: $(pwd)"
1618
echo ""
@@ -32,6 +34,15 @@ echo ""
3234
echo "Built wheels:"
3335
ls -lh dist/
3436

37+
echo "::group::Install PyTorch"
38+
pip install torch==2.8 --index-url "https://download.pytorch.org/whl/cu${CUDA_MAJOR}${CUDA_MINOR}"
39+
echo "::endgroup::"
40+
41+
echo "::group::Install build system"
42+
pip install ninja numpy
43+
pip install --upgrade setuptools packaging wheel build
44+
echo "::endgroup::"
45+
3546
# Copy wheels to output directory if specified
3647
if [ -n "${OUTPUT_DIR}" ]; then
3748
echo ""

0 commit comments

Comments
 (0)