Skip to content
Discussion options

You must be logged in to vote

Hello,

I have found the problem in the code.

from the example code I have replaced

x->compute_dot(tmp, g); auto g_val = clone(this_exec, g) ->get_values() [0];

with

precision g_val{0.0}; for (gko::size_type j = 0; j < x->get_size()[0]; ++j) { g_val += std::conj(x->get_values()[j]) * tmp->get_values()[j]; }

Which then gives the expected output

This is Ginkgo 1.10.0 (develop) running with core module 1.10.0 (develop) the reference module is 1.10.0 (develop) the OpenMP module is 1.10.0 (develop) the CUDA module is 1.10.0 (develop) the HIP module is not compiled the DPCPP module is not compiled

{ "system_residual": +1.59471978e-14, "eigenvalue": (+2.03741410e+01,+3.52582546e-16), "residual":…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@nbeams
Comment options

nbeams Jun 13, 2025
Collaborator

@nbeams
Comment options

nbeams Jul 3, 2025
Collaborator

Answer selected by NickChlanda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
is:bug Something looks wrong. reg:example This is related to the examples.
2 participants