Poor MAGMA GPU performance for the generalized eigenvalue

Open discussion regarding features, bugs, issues, vendors, etc.

Poor MAGMA GPU performance for the generalized eigenvalue

Postby emilio » Fri Mar 16, 2012 2:45 pm

In some code we need to get auto vectors and auto values for the generalized eigenvalue problem with symmetric real matrices (Ax=lamba Bx). This code uses DSPGVX from LACPACK. We wanted to speed it up on GPU using a MAGMA function. We asked on this forum and got the answer about this


The size of our matrices (N) goes from 100 to 50000 and even more, related to the number of atoms in a molecule. We observe:

a) for N bigger than 2500 (approx), MAGMA just does not work
b) MAGMA runs always slower than LAPACK sequential

Is this behavior normal and could we overcome it? Can anybody report any reference where anybody working on this similar problems gets a decent speedup?

Posts: 2
Joined: Fri Feb 24, 2012 7:18 am

Re: Poor MAGMA GPU performance for the generalized eigenvalu

Postby Julien Langou » Fri Mar 16, 2012 5:09 pm

For problem from size 100 to 2500, I am not too surprise to see that MAGMA does not offer any speed up over a pure CPU code. The time to transfer the data a few times from CPU to GPU and the LAPACK code is already done. For sizes like 20K, you should start seeing some considerable speedup using MAGMA. It's a pity, it is not working, I have no idea why. You probably want to post on the MAGMA users' forum about your problem. One comment: I see that you often mention DSPGVX, the routine DSYGVX albeit using twice more space the matrix A (which is not negligible when A is 50K, granted!) should be much faster than DSPGVX. Julien.
Julien Langou
Posts: 827
Joined: Thu Dec 09, 2004 12:32 pm
Location: Denver, CO, USA

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 10 guests