Skip to content

Commit

Permalink
update pybind11 for numpy 2.0 support (#222)
Browse files Browse the repository at this point in the history
update pybind11 for numpy 2.0 support
  • Loading branch information
sameeul committed Jun 23, 2024
1 parent c2d9431 commit 86bb2d3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_cuda11_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-20.04]
os: [windows-2019, ubuntu-20.04]
cibw_archs: ["auto64"]
cibw_build: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]

Expand All @@ -27,7 +27,7 @@ jobs:
if: runner.os == 'Windows'
env:
cuda: "11.8.0"
visual_studio: "Visual Studio 17 2022"
visual_studio: "Visual Studio 16 2019"
shell: powershell
run: .\ci-utils\install_cuda_windows.ps1

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_cuda12_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-20.04]
os: [windows-2019, ubuntu-20.04]
cibw_archs: ["auto64"]
cibw_build: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]

Expand All @@ -27,7 +27,7 @@ jobs:
if: runner.os == 'Windows'
env:
cuda: "12.0.0"
visual_studio: "Visual Studio 17 2022"
visual_studio: "Visual Studio 16 2019"
shell: powershell
run: .\ci-utils\install_cuda_windows.ps1

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_cuda11_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-20.04]
os: [windows-2019, ubuntu-20.04]
cibw_archs: ["auto64"]
cibw_build: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]

Expand All @@ -29,7 +29,7 @@ jobs:
if: runner.os == 'Windows'
env:
cuda: "11.8.0"
visual_studio: "Visual Studio 17 2022"
visual_studio: "Visual Studio 16 2019"
shell: powershell
run: .\ci-utils\install_cuda_windows.ps1

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_cuda12_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-20.04]
os: [windows-2019, ubuntu-20.04]
cibw_archs: ["auto64"]
cibw_build: ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]

Expand All @@ -29,7 +29,7 @@ jobs:
if: runner.os == 'Windows'
env:
cuda: "12.0.0"
visual_studio: "Visual Studio 17 2022"
visual_studio: "Visual Studio 16 2019"
shell: powershell
run: .\ci-utils\install_cuda_windows.ps1

Expand Down
6 changes: 3 additions & 3 deletions ci-utils/install_prereq_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ fi
mkdir -p "$LOCAL_INSTALL_DIR"
mkdir -p "$LOCAL_INSTALL_DIR"/include

curl -L https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.zip -o v2.11.1.zip
unzip v2.11.1.zip
cd pybind11-2.11.1
curl -L https://github.com/pybind/pybind11/archive/refs/tags/v2.12.0.zip -o v2.12.0.zip
unzip v2.12.0.zip
cd pybind11-2.12.0
mkdir build_man
cd build_man
cmake -DCMAKE_INSTALL_PREFIX=../../"$LOCAL_INSTALL_DIR"/ -DPYBIND11_TEST=OFF ..
Expand Down
8 changes: 4 additions & 4 deletions ci-utils/install_prereq_win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ SETLOCAL DisableDelayedExpansion
mkdir local_install
mkdir local_install\include

curl -L https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.zip -o v2.11.1.zip
tar -xvf v2.11.1.zip
pushd pybind11-2.11.1
curl -L https://github.com/pybind/pybind11/archive/refs/tags/v2.12.0.zip -o v2.12.0.zip
tar -xvf v2.12.0.zip
pushd pybind11-2.12.0
mkdir build_man
pushd build_man
cmake -DCMAKE_INSTALL_PREFIX=../../local_install/ -DPYBIND11_TEST=OFF ..
Expand Down Expand Up @@ -127,7 +127,7 @@ if "%BUILD_ARROW%" == "1" (
pushd cpp
mkdir build
pushd build
cmake .. -G "Visual Studio 17 2022" -A x64 -DCMAKE_INSTALL_PREFIX=../../../local_install/ -DCMAKE_PREFIX_PATH=../../../local_install/ -DARROW_PARQUET=ON -DARROW_WITH_SNAPPY=ON -DBOOST_ROOT=%_ROOTDIR%/boost_1_79_0
cmake .. -A x64 -DCMAKE_INSTALL_PREFIX=../../../local_install/ -DCMAKE_PREFIX_PATH=../../../local_install/ -DARROW_PARQUET=ON -DARROW_WITH_SNAPPY=ON -DBOOST_ROOT=%_ROOTDIR%/boost_1_79_0
cmake --build . --config Release --target install --parallel 4
popd
popd
Expand Down

0 comments on commit 86bb2d3

Please sign in to comment.