Skip to content

Commit 289b048

Browse files
committed
Fix numba-cuda: upgrade alongside numba for NumPy 2.4 compat
The base image's numba-cuda uses np.trapz which was removed in NumPy 2.4. The latest numba-cuda (v0.30.0) has a fix that conditionally registers np.trapz only for NumPy < 2.4, and uses np.trapezoid for NumPy >= 2.0. This fixes both test_numba.test_cuda_jit and test_tsfresh (via stumpy).
1 parent 5e26e26 commit 289b048

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ RUN uv pip install --no-build-isolation --no-cache --system "git+https://github.
2828
# b/468367647: Unpin protobuf, version greater than v5.29.5 causes issues with numerous packages
2929
RUN uv pip install --system --force-reinstall --no-cache --no-deps torchtune
3030
RUN uv pip install --system --force-reinstall --no-cache "protobuf==5.29.5"
31-
# b/493600019: Colab base image ships numba that does not support NumPy 2.4; upgrade to latest.
32-
RUN uv pip install --system --force-reinstall --no-cache numba
31+
# b/493600019: Colab base image ships numba/numba-cuda that do not support NumPy 2.4; upgrade both.
32+
RUN uv pip install --system --force-reinstall --no-cache numba numba-cuda
3333

3434
# Adding non-package dependencies:
3535
ADD clean-layer.sh /tmp/clean-layer.sh

0 commit comments

Comments
 (0)