Add pycurv-gpu dispatcher in curvature.run_pycurv.#61
Draft
hemanthkapa wants to merge 8 commits into
Draft
Conversation
Introduce run_pycurv_gpu() as a thin wrapper around core.api.run_pipeline so surface_morphometrics can opt into the GPU backend without changing the default CPU path. Co-authored-by: Cursor <cursoragent@cursor.com>
Read curvature_measurements.use_gpu / gpu_device / gpu_batch_size from config, let --gpu override, fail fast if the GPU backend is missing, and pass the flags through to curvature.run_pycurv(). Co-authored-by: Cursor <cursoragent@cursor.com>
hemanthkapa
force-pushed
the
feature/pycurv-gpu-backend
branch
from
July 9, 2026 21:36
55733ec to
d679aee
Compare
Add use_gpu, gpu_device, and gpu_batch_size under curvature_measurements so new configs expose the optional pycurv-gpu backend. Co-authored-by: Cursor <cursoragent@cursor.com>
Read curvature_measurements GPU settings in refine_mesh, forward them into the pycurv subprocess, and delete stale .gpu_normals.npz alongside existing .gt/.vtp caches after vertex displacement. Co-authored-by: Cursor <cursoragent@cursor.com>
Add pycurv-gpu next to pycurv in environment.yml / environment-ubuntu.yml so GPU curvature is available by default; update install error messages accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
Cover use_gpu routing, write_gt=True on the GPU path, CLI --gpu / config use_gpu wiring, and keep DEFAULTS in sync with the template. Co-authored-by: Cursor <cursoragent@cursor.com>
Add a short pycurv-gpu section covering use_gpu / --gpu, install notes for CUDA torch, and troubleshooting for missing GPU backends. Co-authored-by: Cursor <cursoragent@cursor.com>
Member
Author
Summary
Default behavior is unchanged: Test plan
|
hemanthkapa
marked this pull request as ready for review
July 9, 2026 22:47
hemanthkapa
marked this pull request as draft
July 17, 2026 20:37
Reject CPU and MPS devices so enabling the GPU backend never silently falls back to torch on CPU.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce run_pycurv_gpu() as a thin wrapper around core.api.run_pipeline so surface_morphometrics can opt into the GPU backend without changing the default CPU path.