Skip to content

Conversation

MarcelKoch
Copy link
Member

This PR allows parsing an object of type matrix::Identity. This is helpful for configuring the preconditioner benchmark with no preconditioner.

@MarcelKoch MarcelKoch self-assigned this Aug 19, 2025
@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. type:matrix-format This is related to the Matrix formats labels Aug 19, 2025
@yhmtsai
Copy link
Member

yhmtsai commented Aug 20, 2025

Doesn't null work?
By the way, maybe we should have preconditioner::Identity to make clear?

Copy link
Member

@yhmtsai yhmtsai left a comment

Choose a reason for hiding this comment

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

just realize we already have matrix Identity, so no need for preconditioner::Identity

Copy link
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.

lgtm

@MarcelKoch MarcelKoch force-pushed the 1912/0-identity-config branch from a0d77bd to 02b84db Compare September 29, 2025 10:35
@MarcelKoch MarcelKoch requested a review from yhmtsai September 29, 2025 10:35
@ginkgo-bot
Copy link
Member

Error: The following files need to be formatted:

cuda/base/exception.cpp
dpcpp/factorization/par_ilut_select_kernel.dp.cpp
include/ginkgo/extensions/kokkos/spaces.hpp

You can find a formatting patch under Artifacts here or run format! if you have write access to Ginkgo

Copy link
Member

@upsj upsj left a comment

Choose a reason for hiding this comment

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

LGTM!

Pgm,
Schwarz
Schwarz,
Identity
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Identity
Identity,

I think C++ allows trailing commas, that makes the diffs nicer

Copy link
Member

@yhmtsai yhmtsai left a comment

Choose a reason for hiding this comment

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

one extra header

#include <ginkgo/core/config/config.hpp>
#include <ginkgo/core/matrix/identity.hpp>

#include "cmake-build-debug/_deps/googletest-src/googletest/include/gtest/gtest-typed-test.h"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
#include "cmake-build-debug/_deps/googletest-src/googletest/include/gtest/gtest-typed-test.h"

do you need this?

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

Labels

mod:core This is related to the core module. reg:build This is related to the build system. reg:testing This is related to testing. type:matrix-format This is related to the Matrix formats

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants