<div dir="ltr"><div>syevjBatched from cuSolver is quite good once it's configured fine. It's a direct solve for all eigenpairs, works for batches of small matrices with sizes up to (I believe) 32x32. The default CUDA example using it works except if you have "too many" small matrices, in which case you'll overload the GPU memory and need to further batch the calls. I found it to be fast enough for my needs. <br></div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div><div><div>Regards,<br></div><div><span style="color:rgb(12,52,61)"><font size="4"><i>Adam Denchfield</i></font></span><br></div><i><span style="color:rgb(0,0,255)"><font size="4"><span style="background-color:rgb(0,0,255)"></span></font></span></i></div></div><div><b>Ph.D Student, Physics<br></b></div><div>University of Illinois in Chicago<br></div></div>B.S. Applied Physics (2018)<br>Illinois Institute of Technology</div>Email: <a href="mailto:adenchfi@hawk.iit.edu" target="_blank">adenchfi@hawk.iit.edu</a><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 7, 2021 at 2:31 AM Jose E. Roman <<a href="mailto:jroman@dsic.upv.es">jroman@dsic.upv.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">cuSolver has syevjBatched, which seems to fit your purpose. But I have never used it.<br>
<br>
Lanczos is not competitive for such small matrices.<br>
<br>
Jose<br>
<br>
<br>
> El 6 jul 2021, a las 21:56, Jed Brown <<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>> escribió:<br>
> <br>
> Have you tried just calling LAPACK directly? (You could try dsyevx to see if there's something to gain by computing less than all the eigenvalues.) I'm not aware of a batched interface at this time, but that's what you'd want for performance.<br>
> <br>
> Jacob Faibussowitsch <<a href="mailto:jacob.fai@gmail.com" target="_blank">jacob.fai@gmail.com</a>> writes:<br>
> <br>
>> Hello PETSc/SLEPc users,<br>
>> <br>
>> Similar to a recent question I am looking for an algorithm to compute the smallest eigenvalue and eigenvector for a bunch of matrices however I have a few extra “restrictions”. All matrices have the following properties:<br>
>> <br>
>> - All matrices are the same size<br>
>> - All matrices are small (perhaps no larger than 12x12)<br>
>> - All matrices are SPD<br>
>> - I only need the smallest eigenpair<br>
>> <br>
>> So far my best bet seems to be Lanczos but I’m wondering if there is some wunder method I’ve overlooked.<br>
>> <br>
>> Best regards,<br>
>> <br>
>> Jacob Faibussowitsch<br>
>> (Jacob Fai - booss - oh - vitch)<br>
<br>
</blockquote></div>