Skip to content

RS-coarsening reference implementation#1985

Open
gojakuch wants to merge 13 commits into
developfrom
feat/rs-coarsening
Open

RS-coarsening reference implementation#1985
gojakuch wants to merge 13 commits into
developfrom
feat/rs-coarsening

Conversation

@gojakuch
Copy link
Copy Markdown
Collaborator

@gojakuch gojakuch commented Feb 24, 2026

This PR provides the reference implementation for RS-coarsening

@ginkgo-bot ginkgo-bot added reg:build This is related to the build system. reg:testing This is related to testing. mod:core This is related to the core module. mod:cuda This is related to the CUDA module. mod:reference This is related to the reference module. mod:hip This is related to the HIP module. type:multigrid This is related to multigrid labels Feb 24, 2026
@upsj
Copy link
Copy Markdown
Member

upsj commented Mar 4, 2026

FYI, #1978 will likely require some changes in your kernel function signatures to match the changes there

@gojakuch gojakuch force-pushed the feat/rs-coarsening branch from ab79a98 to e5e08d3 Compare March 9, 2026 09:55
@ginkgo-project ginkgo-project deleted a comment from ginkgo-bot Mar 17, 2026
@gojakuch gojakuch force-pushed the feat/rs-coarsening branch from 33ac013 to 5010a34 Compare March 17, 2026 12:21
@gojakuch
Copy link
Copy Markdown
Collaborator Author

now that #1978 is merged, I know I need to adapt the kernels. I'll do that. for now, committing what I've got so far and rebasing

@gojakuch gojakuch changed the title RS-coarsening RS-coarsening reference implementation Mar 17, 2026
Copy link
Copy Markdown
Member

@pratikvn pratikvn left a comment

Choose a reason for hiding this comment

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

Nice work! For the most part, I think the sturucture looks good! I think some kernels can be merged.

Comment thread core/multigrid/rs.cpp Outdated
Comment thread core/multigrid/rs.cpp Outdated
Comment thread core/multigrid/rs.cpp
Comment thread reference/test/multigrid/rs_kernels.cpp Outdated
@gojakuch gojakuch force-pushed the feat/rs-coarsening branch 2 times, most recently from 6c62180 to 79522c4 Compare April 24, 2026 20:42
@gojakuch gojakuch marked this pull request as ready for review April 24, 2026 20:43
@gojakuch gojakuch requested a review from pratikvn April 25, 2026 09:12
@gojakuch gojakuch force-pushed the feat/rs-coarsening branch from 79522c4 to 8df1133 Compare April 28, 2026 20:29
@gojakuch gojakuch force-pushed the feat/rs-coarsening branch from 8df1133 to a813399 Compare May 5, 2026 13:00
Comment thread core/multigrid/rs.cpp Outdated
Comment thread reference/multigrid/rs_kernels.cpp Outdated
Comment thread reference/multigrid/rs_kernels.cpp Outdated
Comment thread reference/test/multigrid/rs_kernels.cpp Outdated
Comment thread test/multigrid/rs_kernels.cpp Outdated
Comment thread include/ginkgo/core/multigrid/rs.hpp Outdated
@gojakuch gojakuch requested a review from pratikvn May 9, 2026 13:29
Copy link
Copy Markdown
Member

@pratikvn pratikvn left a comment

Choose a reason for hiding this comment

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

Just missing core tests. Otherwise looks good!

strength_threshold, 0.25);

bool GKO_FACTORY_PARAMETER_SCALAR(skip_sorting, false);

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.

Add a short documentation string for this parameter

Comment on lines +72 to +78
GKO_CREATE_FACTORY_PARAMETERS(parameters, Factory)
{
/**
* Strength-of-connection threshold, theta
*/
remove_complex<value_type> GKO_FACTORY_PARAMETER_SCALAR(
strength_threshold, 0.25);
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.

The core tests seem to be missing. Can you add them ? See core/test/multigrid/pgm.cpp as an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1:ST:run-full-test mod:core This is related to the core module. mod:cuda This is related to the CUDA module. mod:hip This is related to the HIP module. mod:reference This is related to the reference module. reg:build This is related to the build system. reg:testing This is related to testing. type:multigrid This is related to multigrid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants