Skip to content

feat: add CUDA SAMVG renderer - #141

Merged
rasros merged 6 commits into
mainfrom
codex/samvg-cuda-renderer
Aug 24, 2026
Merged

feat: add CUDA SAMVG renderer#141
rasros merged 6 commits into
mainfrom
codex/samvg-cuda-renderer

Conversation

@rasros

@rasros rasros commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • add optional packaged CUDA winding renderer for fixed 16-cubic SAMVG contours with differentiable backward and Torch fallback
  • add vectrify[samvg], CUDA wheel build configuration, and a steady-step benchmark utility
  • preserve SAMVG seed processing and add native numerical, Cairo coverage, and fallback tests

Validation

  • uv run ruff check pyproject.toml setup.py scripts/bench_samvg_renderer.py src/vectrify/refine/cuda_renderer.py src/vectrify/refine/paths.py src/vectrify/refine/samvg.py tests/refine/test_filled_paths.py tests/refine/test_samvg.py
  • uv run pytest -q -k "not graphviz"
  • built a CUDA wheel with VECTRIFY_BUILD_SAMVG_CUDA=1 uv build --wheel --no-build-isolation; verified it contains vectrify._samvg_cuda

The unfiltered full suite has five Graphviz failures because the optional Python graphviz package is absent in this environment.

@rasros
rasros force-pushed the codex/samvg-cuda-renderer branch from f5744c8 to e083cad Compare August 24, 2026 08:38
@rasros
rasros merged commit 81816cb into main Aug 24, 2026
1 check passed
@rasros
rasros deleted the codex/samvg-cuda-renderer branch August 24, 2026 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant