Skip to content

Fix stride for GCR initialization#1656

Merged
upsj merged 1 commit into
developfrom
gcr_stride
Jul 30, 2024
Merged

Fix stride for GCR initialization#1656
upsj merged 1 commit into
developfrom
gcr_stride

Conversation

@upsj

@upsj upsj commented Jul 30, 2024

Copy link
Copy Markdown
Member

Noticed by @nbeams, the GCR initialization kernel uses an incorrect stride. This fixes it and adds a test for the behavior.

@upsj upsj added the 1:ST:ready-for-review This PR is ready for review label Jul 30, 2024
@upsj upsj requested a review from a team July 30, 2024 07:54
@upsj upsj self-assigned this Jul 30, 2024
@ginkgo-bot ginkgo-bot added mod:cuda This is related to the CUDA module. type:solver This is related to the solvers mod:hip This is related to the HIP module. labels Jul 30, 2024

@yhmtsai yhmtsai left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nbeams good catch!
Just to be clear, assuming that b and residual have the same stride leads the issue, right?

@upsj

upsj commented Jul 30, 2024

Copy link
Copy Markdown
Member Author

@yhmtsai exactly, the residual uses the default stride, while b can have an arbitrary stride

@upsj upsj 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 Jul 30, 2024
@upsj upsj merged commit a4f1335 into develop Jul 30, 2024
@upsj upsj deleted the gcr_stride branch July 30, 2024 20:14
@ginkgo-bot

Copy link
Copy Markdown
Member

Error: PR already merged!

MarcelKoch pushed a commit to MarcelKoch/ginkgo that referenced this pull request Dec 2, 2024
This fixes a stride-related bug in GCR kernels.

Related PR: ginkgo-project#1656
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. mod:cuda This is related to the CUDA module. mod:hip This is related to the HIP module. type:solver This is related to the solvers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants