Uh oh!
There was an error while loading. Please reload this page.
reg_field: add field_matvec_rls/diag_rls/relax_rls device dispatch + bump pins - #39
Merged
Merged
Conversation
…bump pins Wires the reweighted-least-squares (RLS/JRLS) field regulariser API through the device-dispatch boundary: inspects the tensor's device and forwards to FF_CUDA:: (guarded by FF_WITH_CUDA) or FF_CPU::, mirroring the existing field_matvec/field_diag/field_relax dispatch. Declared in reg_field.h with the same signature as the CPU/CUDA libraries (an additional `wgt` tensor threaded alongside out/inp or sol/hes/grd). Bump submodule pins to the commits that add the RLS/JRLS dispatch on each backend: cpu -> fastfields-cpu-lib#40, cuda -> fastfields-cuda-lib#25. Same bending-order correctness caveat as the backend dispatch layers applies (tracked in fastfields-kernels#34) -- absolute/membrane are the verified-symmetric paths; documented in the field_matvec_rls docstring. Verified: `make all CXX=clang++` builds libfastfields-cpu.so and libfastfields.so clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016AjQcY78NgbagPSbPJRr6Z
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 freeto 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.
Summary
Wires the reweighted-least-squares (RLS/JRLS) field regulariser API through the device-dispatch boundary: inspects the tensor's device and forwards to
FF_CUDA::(guarded byFF_WITH_CUDA) orFF_CPU::, mirroring the existingfield_matvec/field_diag/field_relaxdispatch.reg_field.hwith the same signature as the CPU/CUDA libraries (an additionalwgttensor threaded alongsideout/inporsol/hes/grd).cpu→ fastfields-cpu-lib#40,cuda→ fastfields-cuda-lib#25.This completes the field RLS/JRLS cascade through the native C++/CUDA stack (kernels → cpu-impl/cuda-impl → cpu-lib/cuda-lib → lib). Same
bending-order correctness caveat as the backend dispatch layers applies (tracked in fastfields-kernels#34) —absolute/membraneare the verified-symmetric paths; documented in thefield_matvec_rlsdocstring.Testing
make all CXX=clang++buildslibfastfields-cpu.soandlibfastfields.soclean.🤖 Generated with Claude Code
Generated by Claude Code