How to use MAGNA in a c++ program ?
Posted: Tue Feb 12, 2013 6:02 am
Hello,
I'm trying to compute eigenvalues and eigenvectors of a square matrix in a c++ program.
I've got a matrix called Hamiltonian:
where size is the order of the matrix.
An element of this matrix is Hamiltonian[i * size + j]: line i_th, column j_th.
I guess I should use magma_zheevd or magma_zheevd_gpu, but 1/ I don't know the difference between those functions, 2/ I don't understand how it works, neither which files to include nor how to compile the program.
I used intel compiler, mkl and cuda in the make.inc. The folder is /home/clement/magma-1.3.0.
Thanks in advance for your help :)
I'm trying to compute eigenvalues and eigenvectors of a square matrix in a c++ program.
I've got a matrix called Hamiltonian:
Code: Select all
double * Hamiltonian = new double [size*size];An element of this matrix is Hamiltonian[i * size + j]: line i_th, column j_th.
I guess I should use magma_zheevd or magma_zheevd_gpu, but 1/ I don't know the difference between those functions, 2/ I don't understand how it works, neither which files to include nor how to compile the program.
I used intel compiler, mkl and cuda in the make.inc. The folder is /home/clement/magma-1.3.0.
Thanks in advance for your help :)