cusolverDnXsyevBatched occasionally reports non-convergence (info > 0) although cusolverDnXsyevd succeeds and residual is small

Hi all,

We have observed what looks like potentially undesired behavior in cusolverDnXsyevBatched.

Occasionally the routine returns info > 0 for matrices arising in our quantum chemistry workloads. The behavior appears sensitive to tiny numerical perturbations of the input (that is, it fails occasionally when repeating the same calculation), although a given failing matrix reproduces the issue consistently.

What prompted this report is that the same matrix can be diagonalized successfully using the non-batched cusolverDnXsyevd routine, and the resulting eigensolution show small residual error (~1e-16).

Because of this, I am unsure whether the reported non-convergence reflects a genuine failure, or whether it may be related to the internal convergence criterion used by the batched solver.

If the behavior is expected and tolerance-related, it would be very useful to have a user-visible control for the convergence threshold. As a workaround we can verify eigenpair residuals ourselves, but that adds an additional validation step and cost.

For context, we have not observed similar failures in more than two years of production use of cusolverDnXsyevd.

So far I have reproduced the issue on a specific system for matrices of size 694×694, for both real and complex batches.

Attached are a binary dump containing a failing case and a small reproducer. The reproducer was compiled and tested with CUDA Toolkit 13.3.0 and 13.4.1.

The batched eigensolver is a very important component for us. Any feedback from NVIDIA folks or the community is greatly appreciated.

Gabriele

cusolver_xsyev_batched_failure_18e30478f7dc37ca_0_batch_7.zip (28.1 MB)

At further inspection, we see multiple cases where the residual is relatively large for the batched call (therefore a true positive), while the non-batched cusolverDn solver successfully handles all of the observed cases. Could this indicate a robustness issue in the batched implementation?

Hi @gpenazzi , thank you for reporting this and for the reproducer. We are looking into this discrepancy.