Skip to content

Conversation

yhmtsai
Copy link
Member

@yhmtsai yhmtsai commented Oct 8, 2024

We use compute_norm2 to compute the residual norm but miss the workspace.
In large matrix, we will repeatedly allocate and free for residual norm check.

@yhmtsai yhmtsai added 1:ST:ready-for-review This PR is ready for review is:affects-performance This is related to something which affects performance. labels Oct 8, 2024
@yhmtsai yhmtsai requested review from a team and pratikvn October 8, 2024 13:35
@yhmtsai yhmtsai self-assigned this Oct 8, 2024
@ginkgo-bot ginkgo-bot added mod:core This is related to the core module. type:stopping-criteria This is related to the stopping criteria labels Oct 8, 2024
@yhmtsai yhmtsai force-pushed the residual_workspace branch from e47918d to 1ed76a7 Compare October 8, 2024 13:40
@yhmtsai yhmtsai added 1:ST:ready-to-merge This PR is ready to merge. and removed 1:ST:ready-for-review This PR is ready for review labels Oct 9, 2024
@yhmtsai yhmtsai merged commit 2dbe389 into develop Oct 9, 2024
10 of 14 checks passed
@yhmtsai yhmtsai deleted the residual_workspace branch October 9, 2024 09:34
MarcelKoch pushed a commit to MarcelKoch/ginkgo that referenced this pull request Dec 2, 2024
add workspace for reduction in residual norm, which avoid alloc/dealloc in the repeated call.

Related PR: ginkgo-project#1687
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:ready-to-merge This PR is ready to merge. is:affects-performance This is related to something which affects performance. mod:core This is related to the core module. type:stopping-criteria This is related to the stopping criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants