You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cuda.bindings build time on Linux becomes ~2x slower #642
I can reproduce the 2x slowdown locally. But when I tried to chase after the root cause, I probably picked the wrong module to look at. cuda.bindings.cydriver compilation is slower with newer Cython, but its compilation/linking times are insignificant compared to the overall build time. Anyway I attach the .cpp file generated by Cython 3.0.12 (old) and 3.1.2 (new): cydriver.zip
Below is the commands generated by setuptools with pip install --no-build-isolation --no-deps -v .:
I can't tell what's changed, nor am I interested in digging, but it seems the slowness has been fixed lately. linux-aarch64 is still the slowest to build, but not too bad, and it might be runner-hardware-dependent. Perhaps Cython 3.1.4 emits better code now? Anyway, let's close this for now.
Activity
leofang commentedon May 19, 2025
Confirmed in #640 that the build time can be restored by pinning Cython<3.1.0
leofang commentedon Jun 23, 2025
I can reproduce the 2x slowdown locally. But when I tried to chase after the root cause, I probably picked the wrong module to look at.
cuda.bindings.cydrivercompilation is slower with newer Cython, but its compilation/linking times are insignificant compared to the overall build time. Anyway I attach the .cpp file generated by Cython 3.0.12 (old) and 3.1.2 (new): cydriver.zipBelow is the commands generated by setuptools with
pip install --no-build-isolation --no-deps -v .:leofang commentedon Oct 9, 2025
I can't tell what's changed, nor am I interested in digging, but it seems the slowness has been fixed lately. linux-aarch64 is still the slowest to build, but not too bad, and it might be runner-hardware-dependent. Perhaps Cython 3.1.4 emits better code now? Anyway, let's close this for now.
This is the most recent run (on the main branch): https://github.com/NVIDIA/cuda-python/actions/runs/18361252550
cc @cpcloud @mdboom for vis