Temporary view of equality constarint changes#47
Closed
pelesh wants to merge 3 commits intokasia/branch-off-equalityfrom
Closed
Temporary view of equality constarint changes#47pelesh wants to merge 3 commits intokasia/branch-off-equalityfrom
pelesh wants to merge 3 commits intokasia/branch-off-equalityfrom
Conversation
Replace the PETSc-based equality constraint Jacobian computation in the PBPOLRAJAHIOPSPARSE model with direct GPU kernels using RAJA, eliminating the D2H-compute-H2D round trip. The sparsity pattern is now computed on the host during setup and the values are computed entirely on device. Key changes: - Add ComputeEqJacValuesGPU_PBPOLRAJAHIOPSPARSE in new gpu.cpp/hpp files - Add device arrays for flat-array indices (bus eqjacsp_selfidx, line eqjacsp_idx/eqjacsp_diag_idx/isdcline, gen xpdevidx/xpsetidx) - Fix nnz counting bugs (missing gen/load entries, off-by-one in line loop) and populate flat-array indices during model setup - Replace PETSc MatGetRow extraction in sparsity and values phases - Handle parallel lines by sharing off-diagonal positions with atomicAdd - Use pre-computed nnz in get_sparse_blocks_info instead of PETSc query - Add correctness test (test_eqjac_compare) and performance benchmark (test_eqjac_perf) Made-with: Cursor
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.
Merge request type
Relates to
This MR updates
Summary
For changes preview only