Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,13 @@ jobs:
run: |
# Build inside NVIDIA's manylinux-compatible CUDA container
# Rocky Linux 8 is manylinux_2_28 compatible
# Use --user to match host UID/GID for proper file ownership
docker run --rm \
-v "${{ github.workspace }}:/workspace" \
-w /workspace \
-e CFD_STATIC_LINK=ON \
-e CFD_USE_STABLE_ABI=ON \
-e HOME=/tmp \
nvidia/cuda:12.4.0-devel-rockylinux8 \
bash -c "
set -e
Expand All @@ -180,6 +182,9 @@ jobs:
# Install patchelf via pip (EPEL version is too old for auditwheel)
python3.11 -m pip install patchelf

# Clean any previous build artifacts
rm -rf cfd/build build dist dist_raw

# Build CFD C library with CUDA
# 75=Turing, 80=Ampere, 86=Ampere, 89=Ada, 90=Hopper
cmake -S cfd -B cfd/build \
Expand All @@ -198,6 +203,9 @@ jobs:
# Repair wheel for manylinux compatibility
python3.11 -m pip install auditwheel
auditwheel repair dist_raw/*.whl --plat manylinux_2_28_x86_64 -w dist/

# Fix permissions for host user
chmod -R 777 dist/
"
echo "=== Wheel built (CUDA manylinux) ==="
ls -la dist/
Expand Down
Loading