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
CI: run cuda.bindings examples on Linux and Windows (#1517)
* ci: run cuda.bindings examples on Linux
* ci: run cuda.bindings examples on Windows
* ci: run bindings examples via pytest entrypoint
Analysis:
- examples were invoked via `python -m pytest` from within `cuda_bindings`
so the repo checkout was on sys.path and imports resolved to the source tree
- `setuptools_scm` generates `cuda/bindings/_version.py` only in the built wheel,
so the source tree lacks this file and `from cuda.bindings._version import __version__`
fails during example collection
- running `pytest` via the installed entrypoint avoids CWD precedence and keeps
imports coming from the installed wheel, which includes the generated version file
Change:
- switch Linux and Windows example steps to call `pytest` entrypoint
* use pathfinder.find_nvidia_header_directory() in cuda_bindings examples KernelHelper
* Remove pytest_skipif_cuda_include_not_found() and get_cuda_home() entirely under cuda_bindings/examples/
* Replace py3.13 2-GPU job with 3.14t 2-GPU job
* Fix kernel arg lifetimes in isoFDModelling example
Keep pointer arrays alive through launches to avoid free-threaded Python
misaligned-address failures caused by temporary argument buffers.
---------
Co-authored-by: Leo Fang <leof@nvidia.com>
0 commit comments