Skip to content

Enable TF32 matmuls and expose full BA diagnostics - #4

Closed
kevintsq wants to merge 1 commit into
cvg:mainfrom
kevintsq:tf32-and-ba-diagnostics
Closed

Enable TF32 matmuls and expose full BA diagnostics#4
kevintsq wants to merge 1 commit into
cvg:mainfrom
kevintsq:tf32-and-ba-diagnostics

Conversation

@kevintsq

@kevintsq kevintsq commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Set torch.set_float32_matmul_precision("high") in the end-to-end entrypoint. The import has to come after load_mapping_runtime(): libtorch_cpu.so exports its own statically linked BLAS/LAPACK, and when torch is loaded first those symbols win global resolution for SuiteSparse/Ceres, so CHOLMOD reports "matrix not positive definite" and bundle adjustment fails.

Bind the rest of BundleAdjustmentDiagnostics. Every field is populated in PopulateResult, but only three were exposed, so the BA failure path in adjuster.py raised AttributeError on termination_type instead of logging the warning and restoring the last valid reconstruction.

Set torch.set_float32_matmul_precision("high") in the end-to-end entrypoint.
The import has to come after load_mapping_runtime(): libtorch_cpu.so exports its
own statically linked BLAS/LAPACK, and when torch is loaded first those symbols
win global resolution for SuiteSparse/Ceres, so CHOLMOD reports "matrix not
positive definite" and bundle adjustment fails.

Bind the rest of BundleAdjustmentDiagnostics. Every field is populated in
PopulateResult, but only three were exposed, so the BA failure path in
adjuster.py raised AttributeError on termination_type instead of logging the
warning and restoring the last valid reconstruction.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@kevintsq

kevintsq commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #5

@kevintsq kevintsq closed this Aug 9, 2026
@kevintsq
kevintsq deleted the tf32-and-ba-diagnostics branch August 9, 2026 03:12
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