updated all ver to 2.4.0, tweaked CHANGELOG #140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build cufinufft Python wheels | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build cufinufft wheels on ${{ matrix.buildplat[1] }} | |
runs-on: ${{ matrix.buildplat[0] }} | |
strategy: | |
fail-fast: false | |
matrix: | |
buildplat: | |
- [ ubuntu-22.04, manylinux_x86_64 ] | |
- [ windows-2019, win_amd64 ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Setup CUDA | |
if: ${{ matrix.buildplat[0] == 'windows-2019' }} | |
uses: Jimver/[email protected] | |
with: | |
cuda: '12.4.0' | |
- name: Build ${{ matrix.buildplat[1] }} wheels | |
uses: pypa/[email protected] | |
with: | |
package-dir: 'python/cufinufft' | |
env: | |
CIBW_BUILD: '*-${{ matrix.buildplat[1] }}' | |
CIBW_TEST_COMMAND: "echo 'Wheel installed'" | |
CIBW_BUILD_FRONTEND: "pip; args: --no-deps" | |
CIBW_BEFORE_ALL_LINUX: | | |
if command -v yum &> /dev/null; then | |
yum install -y epel-release | |
yum-config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-rhel7.repo | |
yum install -y cuda-12-4 | |
else | |
echo "Unsupported package manager. Exiting." | |
exit 1 | |
fi | |
CIBW_ENVIRONMENT_LINUX: PATH=$PATH:/usr/local/cuda/bin LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64 | |
CIBW_ARCHS_LINUX: x86_64 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: cufinufft-wheels-${{ matrix.buildplat[1] }} | |
path: ./wheelhouse/*.whl |