Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 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
4 changes: 2 additions & 2 deletions .github/workflows/build-wheel-linux-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ jobs:

- name: Install Dependencies (Python)
run: |
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
# Add cmake and ninja to the PATH env var
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
echo $PYTHON_BINS >> $GITHUB_PATH
Expand Down Expand Up @@ -269,7 +269,7 @@ jobs:

- name: Install Dependencies (Python)
run: |
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
# Add cmake and ninja to the PATH env var
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
echo $PYTHON_BINS >> $GITHUB_PATH
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheel-linux-x86_64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ jobs:

- name: Install Dependencies (Python)
run: |
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
# Add cmake and ninja to the PATH env var
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
echo $PYTHON_BINS >> $GITHUB_PATH
Expand Down Expand Up @@ -291,7 +291,7 @@ jobs:

- name: Install Dependencies (Python)
run: |
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja
# Add cmake and ninja to the PATH env var
PYTHON_BINS=$(find /opt/_internal/cpython-${{ matrix.python_version }}.*/bin -maxdepth 1 -type d | tr '\n' ':' | sed 's/:$//')
echo $PYTHON_BINS >> $GITHUB_PATH
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-wheel-macos-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:

- name: Install Dependencies (Python)
run: |
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML cmake ninja
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML cmake ninja

- name: Build LLVM / MLIR
if: steps.cache-llvm-build.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
# LAPACKE reference implementation. TODO: Look into how to upgrade beyond this limit.
- name: Install Dependencies (Python)
run: |
python${{ matrix.python_version }} -m pip install numpy nanobind pybind11 PyYAML ninja delocate
python${{ matrix.python_version }} -m pip install numpy nanobind==2.9.2 pybind11 PyYAML ninja delocate
python${{ matrix.python_version }} -m pip install cmake'<4'

- name: Get Cached LLVM Source
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check-catalyst.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -y -q install ninja-build make cmake clang
python3 -m pip install nanobind pybind11
python3 -m pip install nanobind==2.9.2 pybind11

- name: Get Cached LLVM Source
id: cache-llvm-source
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
sudo apt-get install -y python3 python3-pip cmake ninja-build clang lld

python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
python3 -m pip install numpy pybind11 nanobind PyYAML
python3 -m pip install numpy pybind11 nanobind==2.9.2 PyYAML

- name: Build LLVM
if: steps.cache-llvm-build.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -343,7 +343,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y python3 python3-pip cmake ninja-build ccache clang lld
python3 --version | grep ${{ needs.constants.outputs.primary_python_version }}
python3 -m pip install numpy nanobind pybind11
python3 -m pip install numpy nanobind==2.9.2 pybind11

- name: Get Cached LLVM Source
id: cache-llvm-source
Expand Down Expand Up @@ -681,7 +681,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -y -q install cmake ninja-build
python3 -m pip install nanobind pybind11
python3 -m pip install nanobind==2.9.2 pybind11

- name: Download Catalyst-Runtime Artifact
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -714,7 +714,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -y -q install cmake ninja-build
python3 -m pip install nanobind pybind11
python3 -m pip install nanobind==2.9.2 pybind11

- name: Install lcov # Manually install lcov_1.15-1_all
run: |
Expand Down
4 changes: 4 additions & 0 deletions frontend/catalyst/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ set(WRAPPER_SRC_FILES
# Create the Python `wrapper` module
# Target the stable ABI for Python 3.12+, which reduces the number of binary wheels that must be
# built (`STABLE_ABI` does nothing on older Python versions).
#
# Also need NB_USE_SUBMODULE_DEPS flag to opt into nanobind's handling of tsl-robin-map dependency:
# https://github.com/wjakob/nanobind/pull/1212
#set(NB_USE_SUBMODULE_DEPS ON)
nanobind_add_module(wrapper STABLE_ABI ${WRAPPER_SRC_FILES})

# Add the NumPy include directory to the library's include paths
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pip>=22.3
# this bug was fixed in 2.0.1 (https://github.com/numpy/numpy/pull/26995)
numpy!=2.0.0
# llvm requires nanobind 2.9 or higher
nanobind>=2.9
nanobind==2.9.2
pybind11>=2.12.0
PyYAML

Expand Down
4 changes: 4 additions & 0 deletions runtime/lib/backend/openqasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ find_package(nanobind CONFIG REQUIRED)
# Create the Python `openqasm_python_module` module
# Target the stable ABI for Python 3.12+, which reduces the number of binary wheels that must be
# built (`STABLE_ABI` does nothing on older Python versions).
#
# Also need NB_USE_SUBMODULE_DEPS flag to opt into nanobind's handling of tsl-robin-map dependency:
# https://github.com/wjakob/nanobind/pull/1212
#set(NB_USE_SUBMODULE_DEPS ON)
nanobind_add_module(openqasm_python_module STABLE_ABI openqasm_python_module.cpp)

# Use a consistant suffix ".so" rather than, e.g. ".abi3.so" (when using the Stable ABI) or
Expand Down
4 changes: 4 additions & 0 deletions runtime/lib/registry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ set(REGISTRY_SRC_FILES
# Create the Python `catalyst_callback_registry` module
# Target the stable ABI for Python 3.12+, which reduces the number of binary wheels that must be
# built (`STABLE_ABI` does nothing on older Python versions).
#
# Also need NB_USE_SUBMODULE_DEPS flag to opt into nanobind's handling of tsl-robin-map dependency:
# https://github.com/wjakob/nanobind/pull/1212
#set(NB_USE_SUBMODULE_DEPS ON)
nanobind_add_module(catalyst_callback_registry STABLE_ABI ${REGISTRY_SRC_FILES})

# Use a consistant suffix ".so" rather than, e.g. ".abi3.so" (when using the Stable ABI) or
Expand Down
Loading